[Xorp-users] update ospf database after policy change

Mykola Dzham i at levsha.org.ua
Sat Jun 23 05:54:37 PDT 2007


When i change ospf export policy to "network, that rejected previously,
now allow", then changes affect to ospf database immediately. But whe
in change policy to "network, that accepted previously, now reject",
then changes not affect to ospf database. Is it bug? Is it possible to
apply changes without restarting xorp?

xorp-1.4 , FreeBSD 6.2-RELEASE

Here is a test:

Start state:

levsha at workstation.levsha.org.ua# run show route table ipv4 unicast final | match 192.168.15[56]  
192.168.155.0/24        [connected(0)/0]
192.168.156.0/24        [connected(0)/0]
levsha at workstation.levsha.org.ua# run show ospf4 database | match 192.168.15[56]  
ASExt-2 *192.168.156.0    192.168.0.50     0x80000001    69  0x2  0x3df3  36
levsha at workstation.levsha.org.ua# show protocols ospf4 export   
    export: "to-ospf"

[edit]
levsha at workstation.levsha.org.ua# show policy policy-statement to-ospf   
    term testnet {
        from {
            protocol: "connected"
            network4: 192.168.155.0/24
        }
        then {
            reject {
            }
        }
    }
    term other {
        from {
            protocol: "connected"
        }
        then {
            accept {
            }
        }
    }

[edit]

change "network, that rejected previously,now allow":

levsha at workstation.levsha.org.ua# delete policy policy-statement to-ospf term testnet   
Deleting: 
    testnet {
        from {
            protocol: "connected"
            network4: 192.168.155.0/24
        }
        then {
            reject {
            }
        }
    }

OK
[edit]
levsha at workstation.levsha.org.ua# commit  
OK
[edit]
levsha at workstation.levsha.org.ua# run show ospf4 database | match 192.168.15[56]  
ASExt-2 *192.168.155.0    192.168.0.50     0x80000001    30  0x2  0x48e9  36
ASExt-2 *192.168.156.0    192.168.0.50     0x80000001    30  0x2  0x3df3  36

change "network, that accepted previously, now reject":

levsha at workstation.levsha.org.ua# delete policy policy-statement to-ospf term other  
Deleting: 
    other {
        from {
            protocol: "connected"
        }
        then {
            accept {
            }
        }
    }

OK
[edit]
levsha at workstation.levsha.org.ua# set policy policy-statement to-ospf term rej {  
    >     from protocol connected   
    >     from network4 192.168.155.0/24  
    >     then reject   
    >     }  
[edit]
evsha at workstation.levsha.org.ua# set policy policy-statement to-ospf term acc {  
    >     from protocol connected  
    >     then accept   
    >     }  
[edit]
levsha at workstation.levsha.org.ua# commit  
OK
[edit]
levsha at workstation.levsha.org.ua# run show ospf4 database | match 192.168.15[56]  
ASExt-2 *192.168.155.0    192.168.0.50     0x80000001  1769  0x2  0x48e9  36
ASExt-2 *192.168.156.0    192.168.0.50     0x80000001  1769  0x2  0x3df3  36

--  
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: levsha at jabber.net.ua



More information about the Xorp-users mailing list