Multiple BGP Sessions with Controller

asked 2015-01-14 15:09:21 -0700

anonymous user

Anonymous

I have the controller talking to two different devices and each session is polling a different topology. The only modification i did to 41-bgp-example.xml was adding the peer addresses as below. When i poll i get the below response and don't see any topology info:

http://localhost :8181/restconf/operational/network-topology:network-topology/topology/example-linkstate-topology

<topology xmlns="urn:TBD:params:xml:ns:yang:network-topology"> <topology-id>example-linkstate-topology</topology-id> <topology-types> <server-provided>true</server-provided> </topology-types></topology>

41-bgp-example.xml :

<module> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type> <name>example-bgp-peer</name> <host>1.1.1.1</host> <holdtimer>180</holdtimer> <rib> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type> <name>example-bgp-rib</name> </rib> <peer-registry> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type> <name>global-bgp-peer-registry</name> </peer-registry> <advertized-table> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type> <name>ipv4-unicast</name> </advertized-table> <advertized-table> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type> <name>ipv6-unicast</name> </advertized-table> <advertized-table> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type> <name>linkstate</name> </advertized-table> </module>

            <module>
                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
                <name>example-bgp-peer1</name>
                <host>2.2.2.1</host>
                <holdtimer>180</holdtimer>
                <rib>
                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
                    <name>example-bgp-rib</name>
                </rib>
                <peer-registry>
                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
                    <name>global-bgp-peer-registry</name>
                </peer-registry>
                <advertized-table>
                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
                    <name>ipv4-unicast</name>
                </advertized-table>
                <advertized-table>
                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
                    <name>ipv6-unicast</name>
                </advertized-table>
                <advertized-table>
                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
                    <name>linkstate</name>
                </advertized-table>
            </module>
edit retag flag offensive close merge delete

Comments

Can you check karaf.log file if BGP connection was established successfully?

Dana ( 2015-01-15 06:51:42 -0700 )edit

Yes, from the i log i see both the sessions came up and i also looked at the devices to confirm if the sessions are up. I forgot to mention that i am using helium snapshot helium-0.2.2-snapshot.

mnanduri ( 2015-01-15 06:53:37 -0700 )edit

Great, so can you check ipv4 topology if it's empty as well? http://localhost :8181/restconf/operational/network-topology:network-topology/topology . Also check in logs for this: 'Ignoring unrecognized attribute type'

Dana ( 2015-01-15 06:59:55 -0700 )edit

Now i cant get the two sessions up, it will always bring the second peer in the config, skips the first peer config.

mnanduri ( 2015-01-15 11:58:14 -0700 )edit

Well what did you change in config files from the previous run? Is the name of the peer unique?

Dana ( 2015-01-16 00:28:14 -0700 )edit