Regarding BGP session establishment with router


Sameer Muhammed
 

Hi All,

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.

 

 

    <name>bgp-example</name>

    <identifier xmlns:x="http://openconfig.net/yang/policy-types">x:BGP</identifier>

    <bgp xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">

        <global>

            <config>

                <router-id>20.20.20.2</router-id>

                <as>65530</as>

            </config>

        </global>

    </bgp>

</protocol>

 

 

 

Method: PUT

Content-Type: application/xml

Request Body:

 

<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

 

Method: POST

Content-Type: application/xml

Request Body:

 

<neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">

    <neighbor-address>10.10.10.2</neighbor-address>

    <timers>

        <config>

            <hold-time>90</hold-time>

            <connect-retry>10</connect-retry>

        </config>

    </timers>

    <transport>

        <config>

            <remote-port>179</remote-port>

            <passive-mode>false</passive-mode>

        </config>

    </transport>

    <config>

        <peer-type>INTERNAL</peer-type>

    </config>

</neighbor>

 

 

 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 

 

Thanks and kind regards,

Sameer Muhammed

 



Sameer Muhammed
 

 

Hi All,

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.

 

 

    <name>bgp-example</name>

    <identifier xmlns:x="http://openconfig.net/yang/policy-types">x:BGP</identifier>

    <bgp xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">

        <global>

            <config>

                <router-id>20.20.20.2</router-id>

                <as>65530</as>

            </config>

        </global>

    </bgp>

</protocol>

 

 

 

Method: PUT

Content-Type: application/xml

Request Body:

 

<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

 

Method: POST

Content-Type: application/xml

Request Body:

 

<neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">

    <neighbor-address>10.10.10.2</neighbor-address>

    <timers>

        <config>

            <hold-time>90</hold-time>

            <connect-retry>10</connect-retry>

        </config>

    </timers>

    <transport>

        <config>

            <remote-port>179</remote-port>

            <passive-mode>false</passive-mode>

        </config>

    </transport>

    <config>

        <peer-type>INTERNAL</peer-type>

    </config>

</neighbor>

 

 

 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 

 

Thanks and kind regards,

Sameer Muhammed