-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi
I am trying to build BGP-LS topology of a bunch of vMx's using ODL Nitrogen release as Controller
ODL and Pathman are in the same localhost
I am able to get the BGP-LS Raw topology with below URL
/restconf/operational/network-topology:network-topology/topology/bgp-example-linkstate-topology
Also, able to see the Link state routes with the below URL
192.168.1.16:8181/restconf/operational/bgp-rib:bgp-rib/rib/bgp-example/loc-rib/tables/bgp-linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-address-family/linkstate-routes
My RIB-ID is 'bgp-example' and Topology is 'bgp-example-linkstate-topology' . Changed this in
pathman_sr.py and pathman_ini.py file
Modified URL in pathman_ini.py
url = '{}://{}:{}/restconf/operational/bgp-rib:bgp-rib/rib/bgp-example/loc-rib/tables/bgp-linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-address-family/linkstate-routes'
Modified URL in pathman_sr.py and netconf.py
get_topo = 'http://%s:%s/restconf/operational/network-topology:network-topology/topology/bgp-example-linkstate-topology' %(odl_ip, odl_port)
When Pathman is launched, it shows
GET_TOPOLOGY_INVALID - Couldn't read the topology
Attaching BGP-LS Routes and BGP-LS Raw topology for your information
Pathman Error Log Messages
durai@ODL:~$ vi /tmp/pathman.log
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0002', id=u'0192.0168.0002', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.2/32'], sid='')
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0003', id=u'0192.0168.0003', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.3/32'], sid='')
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0007.02', id=u'0192.0168.0007.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0005.02', id=u'0192.0168.0005.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0006.02', id=u'0192.0168.0006.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.366 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0007.03', id=u'0192.0168.0007.03', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.367 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0007.04', id=u'0192.0168.0007.04', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.367 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0005.03', id=u'0192.0168.0005.03', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.367 UTC root:add_node INFO: New node: Node(name=u'0192.0168.0003.02', id=u'0192.0168.0003.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')
26539 2019-06-25 03:41:51.367 UTC root:node_structure INFO: [Node(name=u'0192.0168.0006', id=u'0192.0168.0006', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.6/32'], sid=''), Node(name=u'0192.0168.0007', id=u'0192.0168.0007', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.7/32'], sid=''), Node(name=u'0192.0168.0004', id=u'0192.0168.0004', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.4/32'], sid=''), Node(name=u'0192.0168.0005', id=u'0192.0168.0005', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.5/32'], sid=''), Node(name=u'0192.0168.0002', id=u'0192.0168.0002', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.2/32'], sid=''), Node(name=u'0192.0168.0003', id=u'0192.0168.0003', loopback='', portlist=[], pcc='', pcep_type='', prefix=[u'192.168.0.3/32'], sid=''), Node(name=u'0192.0168.0007.02', id=u'0192.0168.0007.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0005.02', id=u'0192.0168.0005.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0006.02', id=u'0192.0168.0006.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0007.03', id=u'0192.0168.0007.03', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0007.04', id=u'0192.0168.0007.04', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0005.03', id=u'0192.0168.0005.03', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid=''), Node(name=u'0192.0168.0003.02', id=u'0192.0168.0003.02', loopback='', portlist=[], pcc='', pcep_type='', prefix=[], sid='')]
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0007.02 is: 0192.0168.0007
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0005.02 is: 0192.0168.0005
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0006.02 is: 0192.0168.0006
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0007.03 is: 0192.0168.0007
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0007.04 is: 0192.0168.0007
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0005.03 is: 0192.0168.0005
26539 2019-06-25 03:41:51.367 UTC root:pseudo_net_build INFO: Owner of Pseduo: 0192.0168.0003.02 is: 0192.0168.0003
26539 2019-06-25 03:41:51.368 UTC root:pseudo_net_build INFO: []
26539 2019-06-25 03:41:51.390 UTC root:_get_url INFO: status code: 200
26539 2019-06-25 03:41:51.390 UTC root:build_odl_topology ERROR: <type 'exceptions.KeyError'>
26539 2019-06-25 03:41:51.390 UTC root:getTopo INFO: Failed to get topo: could not reach odl-server?
26539 2019-06-25 03:41:51.390 UTC root:post INFO: {"response": [{"cause": "could not reach odl-server?", "option": "topo", "success": false}]}
26539 2019-06-25 03:41:51.391 UTC root:initialize INFO: Init 2 done - debug saved
26539 2019-06-25 03:41:51.392 UTC root:rest_interface_parser INFO: Commands Relieved: {u'option': u'list_all'}
26539 2019-06-25 03:41:51.399 UTC root:get_url INFO: Url get Status: 200
26539 2019-06-25 03:41:51.399 UTC root:list_pcep_lsp INFO: We have no nodes in our PCEP Topology
26539 2019-06-25 03:41:51.399 UTC root:listAllLsp INFO: list: [], formatted: []
26539 2019-06-25 03:41:51.400 UTC root:post INFO: {"response": [{"list": [], "option": "list_all", "success": true}]}
~
BGP-LS-Routes.txt
BGP-LS-Topology.txt
Thank you in advance
Regards
Durai