Details
Description
Configured controller and one virtual cisco router c7200
Added neighbor from both side to each other using following configuration.
on controller added peer using following api
having xml body :
<neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
<neighbor-address>192.168.10.2</neighbor-address>
<timers>
<config>
<hold-time>180</hold-time>
<connect-retry>10</connect-retry>
</config>
</timers>
<transport>
<config>
<remote-port>179</remote-port>
</config>
</transport>
<config>
<peer-type>EXTERNAL</peer-type>
<peer-as>100</peer-as>
</config>
<afi-safis>
<afi-safi>
<afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
</afi-safi>
<afi-safi>
<afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
</afi-safi>
<afi-safi>
<afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
</afi-safi>
</afi-safis>
</neighbor>
on cisco router configuration is :
router bgp 100
no bgp enforce-first-as
neighbor 192.168.10.1 remote-as 500
neighbor 192.168.10.1 update-source gig0/0
!
!
address-family ipv4 unicast
neighbor 192.168.10.1 activate
neighbor 192.168.10.1 next-hop-self
neighbor 192.168.10.1 send-label
after that i was able to see they are connected to each other
then I advertised route from cisco router using command :
network 192.168.100.0 mask 255.255.255.0
which immediately updated in controller and I able to see the route in adj-rib-in effective-rib-in and loc-rib under "labeled-unicast-route"
after that I withdrawn route from the cisco router using following command :
no network 192.168.100.0 mask 255.255.255.0
as soon as I entered the command I seen update message for withdrawn route in karaf.log file but the route was not removed from adj-rib-in, effective-rib-in and loc-rib.
Attachments
Gerrit Reviews
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 93126,4 | Update Labeled Unicast parser | master | bgpcep | Status: NEW | 0 | +1 |