I need to establish a bgp session with route reflector running with odl and my router and so far, i have done the following.
1) Installed odl(karaf-0.7.1) - nitrogen version.
2) solved j dependencies (setting java home) and made odl up and running. Installed advanced rest client in browser, also installed rest,bgp
features (feature:install odl-restconf odl-bgpcep-bgp) in ODL.
<bgp xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
<router-id>20.20.20.2</router-id>
Content-Type: application/xml
<bgp-peer-acceptor-config xmlns="urn:opendaylight:params:xml:ns:yang:odl-bgp-peer-acceptor-config">
<config-name>default</config-name>
<binding-address>0.0.0.0</binding-address>
<binding-port>179</binding-port>
</bgp-peer-acceptor-config>
5) Finally configured peer using below url
Content-Type: application/xml
<neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
<neighbor-address>10.10.10.2</neighbor-address>
<hold-time>90</hold-time>
<connect-retry>10</connect-retry>
<remote-port>179</remote-port>
<passive-mode>false</passive-mode>
<peer-type>INTERNAL</peer-type>
Router configuration - (Router id - 30.30.30.2, interface ip- 10.10.10.2,as- 65530,peer as -65530,holdtime 90,keep-alive 30)
After these steps , i restarted odl and tried to establish bgp session,But i failed .In wireshark i saw that router is sending open packets
and odl is rejecting the configuration with a notification packet(see attachment) . Also checked the karaf logs which is provided below.
enabled the debug option and checked karaf log which says .
(org.opendaylight.protocol.bgp.parser.BGPDocumentedException: BGP peer with ip: IpAddress [_ipv4Address=Ipv4Address [_value=10.10.10.2]]
not configured, check configured peers in : StrictBGPPeerRegistry{peers=[]} at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.startNegotiation(AbstractBGPSessionNegotiator.java:103)[117:org.opendaylight.bgpcep.bgp-rib-impl:0.8.1]
at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelActive(AbstractBGPSessionNegotiator.java:278)[117:org.opendaylight.bgpcep.bgp-rib-impl:0.8.1] 2018-01-04 16:46:44,191 | DEBUG | ntLoopGroup-10-3
| AbstractBGPSessionNegotiator | 117 - org.opendaylight.bgpcep.bgp-rib-impl - 0.8.1 | Starting session negotiation on channel [id: 0xc90a1a8a, L:/10.10.10.1:179 -
R:/10.10.10.2:51732] 2018-01-04 16:46:44,191 | ERROR | ntLoopGroup-10-3 | BGPDocumentedException | 111 - org.opendaylight.bgpcep.bgp-parser-api - 0.8.1 | Error =
CONNECTION_REJECTED.
Did i miss anything ? Any inputs on this is really appreciated.Kindly help