[Xorp-users] adding/removing interfaces with xorp-cli

Atanu Ghosh atanu at ICSI.Berkeley.EDU
Thu Sep 20 12:48:51 PDT 2007


Hi,

The first error seems to be an OSPF bug, it is supposed to be possible
to configure OSPF with and an interface and vif that are not configured
in the interfaces section. When the interface and vif are configured in
the interfaces OSPF should respond to the update. Unfortunately OSPF is
attempting to get the prefix length of the interface and vif before
checking if it is configured. A work around would be to commit the
changes to the interfaces section before committing the OSPF changes.

     Atanu.

>>>>> "Pavlin" == Pavlin Radoslavov <pavlin at icir.org> writes:

    Pavlin> Ben Greear <greearb at candelatech.com> wrote:
    Pavlin> The errors seem to be coming from OSPF (or at least from the
    Pavlin> FEA-OSPF interaction).
    Pavlin> Please try deleting/adding addresses when running the FEA only as in
    Pavlin> my sample configuration.

    Pavlin> Pavlin

    >> I tried these commands:
    >> 
    >> delete interfaces interface rddVR44 vif rddVR44 address 10.4.0.1
    >> delete protocols ospf4 area 0.0.0.0 interface rddVR44 vif rddVR44 address 10.4.0.1
    >> set protocols ospf4 area 0.0.0.0 interface rddVR44 vif rddVR44 address 10.4.0.10
    >> set interfaces interface rddVR44 vif rddVR44 address 10.4.0.10 prefix-length 24
    >> commit
    >> 
    >> I get this error on commit:
    >> 
    >> root at lanforge-33-46# commit Commit Failed
    >> 102 Command failed BadPeer from line 479 of peer_manager.cc: Unable to get prefix length for rddVR44/rddVR44/10.4.0.10[edit]
    >> 
    >> I also tried this:
    >> delete interfaces interface rddVR44 vif rddVR44 address 10.4.0.1
    >> delete protocols ospf4 area 0.0.0.0 interface rddVR44 vif rddVR44 address 10.4.0.1
    >> commit
    >> 
    >> This failed with:
    >> root at lanforge-33-46# commit
    >> Commit Failed
    >> 102 Command failed Failed executing: "RemoveAddr4: rddVR44 rddVR44 10.4.0.1"[edit]
    >> 
    >> And, I tried removing just the ospf portion:
    >> root at lanforge-33-46> configure Entering configuration mode.
    >> There are no other users in configuration mode.
    >> [edit]
    >> root at lanforge-33-46# delete protocols ospf4 area 0.0.0.0 interface rddVR44 vif rddVR44 address 10.4.0.1
    >> Deleting:
    >> 10.4.0.1 {
    >> }
    >> 
    >> OK
    >> [edit]
    >> root at lanforge-33-46# commit
    >> Commit Failed
    >> 102 Command failed BadPeer from line 392 of peer_manager.cc: No mapping for rddVR44/rddVR44 exists[edit]
    >> 
    >> 
    >> I tried just changing the interface info:
    >> 
    >> root at lanforge-33-46> configure Entering configuration mode.
    >> There are no other users in configuration mode.
    >> [edit]
    >> root at lanforge-33-46# delete interfaces interface rddVR44 vif rddVR44 address 10.4.0.1
    >> Deleting:
    >> 10.4.0.1 {
    >> prefix-length: 24
    >> }
    >> 
    >> OK
    >> [edit]
    >> root at lanforge-33-46# set interfaces interface rddVR44 vif rddVR44 address 10.4.0.10 prefix-length 24
    >> [edit]
    >> root at lanforge-33-46# commit
    >> Commit Failed
    >> 102 Command failed Failed executing: "RemoveAddr4: rddVR44 rddVR44 10.4.0.1"[edit]
    >> root at lanforge-33-46#
    >> 
    >> 
    >> Any ideas?
    >> 
    >> Thanks,
    >> Ben
    >> 
    >> -- 
    >> Ben Greear <greearb at candelatech.com>
    >> Candela Technologies Inc  http://www.candelatech.com
    >> 
    >> _______________________________________________
    >> Xorp-users mailing list
    >> Xorp-users at xorp.org
    >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users

    Pavlin> _______________________________________________
    Pavlin> Xorp-users mailing list
    Pavlin> Xorp-users at xorp.org
    Pavlin> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list