{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/15","repository_url":"https://api.github.com/repos/CiscoDevNet/pathman-sr","labels_url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/15/comments","events_url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/15/events","html_url":"https://github.com/CiscoDevNet/pathman-sr/issues/15","id":340277570,"node_id":"MDU6SXNzdWUzNDAyNzc1NzA=","number":15,"title":"ODL Oxygen-SR2: cannot see BGP-LS topology","user":{"login":"nskalis","id":8971544,"node_id":"MDQ6VXNlcjg5NzE1NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8971544?v=4","gravatar_id":"","url":"https://api.github.com/users/nskalis","html_url":"https://github.com/nskalis","followers_url":"https://api.github.com/users/nskalis/followers","following_url":"https://api.github.com/users/nskalis/following{/other_user}","gists_url":"https://api.github.com/users/nskalis/gists{/gist_id}","starred_url":"https://api.github.com/users/nskalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskalis/subscriptions","organizations_url":"https://api.github.com/users/nskalis/orgs","repos_url":"https://api.github.com/users/nskalis/repos","events_url":"https://api.github.com/users/nskalis/events{/privacy}","received_events_url":"https://api.github.com/users/nskalis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-07-11T14:50:39Z","updated_at":"2018-08-27T14:26:26Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nThere is a BGP-LS session between a vMX and ODL. On the vMX side:\r\n```\r\n> show bgp neighbor 10.20.14.1 \r\nPeer: 10.20.14.1+38749 AS 6830 Local: 10.20.14.0+179 AS xxx \r\n  Group: opendaylight          Routing-Instance: master\r\n  Forwarding routing-instance: master  \r\n  Type: Internal    State: Established    Flags: <Sync>\r\n  Last State: OpenConfirm   Last Event: RecvKeepAlive\r\n  Last Error: None\r\n  Export: [ nlri-to-bgp-OUT ] \r\n  Options: <Preference LocalAddress AddressFamily PeerAS Refresh>\r\n  Address families configured: te-unicast\r\n  Local Address: 10.20.14.0 Holdtime: 90 Preference: 170\r\n  Number of flaps: 0\r\n  Peer ID: 10.20.14.1      Local ID: x.x.x.x     Active Holdtime: 90\r\n  Keepalive Interval: 30         Group index: 0    Peer index: 0    SNMP index: 4     \r\n  I/O Session Thread: bgpio-0 State: Enabled\r\n  BFD: disabled, down\r\n  NLRI for restart configured on peer: te-unicast\r\n  NLRI advertised by peer: te-unicast\r\n  NLRI for this session: te-unicast\r\n  Peer supports Refresh capability (2)\r\n  Stale routes from peer are kept for: 300\r\n  Peer does not support Restarter functionality\r\n  Peer does not support Receiver functionality\r\n  Peer does not support LLGR Restarter or Receiver functionality\r\n  Peer supports 4 byte AS extension (peer-as xxx)\r\n  Peer does not support Addpath\r\n  Table lsdist.0 Bit: 20000\r\n    RIB State: BGP restart is complete\r\n    Send state: in sync\r\n    Active prefixes:              0\r\n    Received prefixes:            0\r\n    Accepted prefixes:            0\r\n    Suppressed due to damping:    0\r\n    Advertised prefixes:          6\r\n  Last traffic (seconds): Received 447416 Sent 1623 Checked 447416\r\n  Input messages:  Total 518\tUpdates 0\tRefreshes 0\tOctets 9870\r\n  Output messages: Total 580\tUpdates 5\tRefreshes 0\tOctets 11584\r\n  Output Queue[1]: 0            (lsdist.0, te-unicast)\r\n```\r\nOn the ODL side:\r\n```\r\nIn [29]: url = '/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/protocols/protocol/openconfig-policy-types:BGP/xxx/bgp-openconfig-extensions:b\r\n    ...: gp/neighbors'\r\n\r\nIn [30]: requests.get('http://{}:{}{}'.format(odl['api']['ipaddr'],odl['api']['port'],url), auth=auth).text\r\nOut[30]: '{\"bgp-openconfig-extensions:neighbors\":{\"neighbor\":[{\"neighbor-address\":\"10.20.14.0\",\"afi-safis\":{\"afi-safi\":[{\"afi-safi-name\":\"bgp-openconfig-extensions:LINKSTATE\"}]}}]}}'\r\n```\r\n\r\nWhen checking the logs in `pathman`, it says:\r\n```\r\n4894 2018-07-11 14:48:27.228 UTC root:<module>     INFO: This is initializing the log\r\n4894 2018-07-11 14:48:27.238 UTC root:get_url      INFO: Url get Status: 200\r\n4894 2018-07-11 14:48:27.245 UTC root:get_url      INFO: Url get Status: 200\r\n4894 2018-07-11 14:48:27.245 UTC root:get_pcep_type INFO: We have no nodes in our PCEP Topology\r\n4894 2018-07-11 14:48:27.245 UTC root:node_structure INFO: We have no nodes in our BGP-LS topology\r\n4894 2018-07-11 14:48:27.246 UTC root:pseudo_net_build INFO: []\r\n4894 2018-07-11 14:48:27.253 UTC root:_get_url     INFO: status code: 200\r\n4894 2018-07-11 14:48:27.254 UTC root:build_odl_topology ERROR: <type 'exceptions.KeyError'>\r\n4894 2018-07-11 14:48:27.254 UTC root:__init__     INFO: patterned to '/pathman'\r\n4894 2018-07-11 14:48:27.257 UTC root:__init__     INFO: Pathman REST API Launched on port 8090\r\n\r\n4894 2018-07-11 14:49:12.444 UTC root:initialize   INFO: Init 2 done - debug saved\r\n4894 2018-07-11 14:49:12.444 UTC root:rest_interface_parser INFO: Commands Relieved: {u'option': u'topo'}\r\n4894 2018-07-11 14:49:12.452 UTC root:get_url      INFO: Url get Status: 200\r\n4894 2018-07-11 14:49:12.459 UTC root:get_url      INFO: Url get Status: 200\r\n4894 2018-07-11 14:49:12.460 UTC root:get_pcep_type INFO: We have no nodes in our PCEP Topology\r\n4894 2018-07-11 14:49:12.460 UTC root:node_structure INFO: We have no nodes in our BGP-LS topology\r\n4894 2018-07-11 14:49:12.460 UTC root:pseudo_net_build INFO: []\r\n4894 2018-07-11 14:49:12.468 UTC root:_get_url     INFO: status code: 200\r\n4894 2018-07-11 14:49:12.468 UTC root:build_odl_topology ERROR: <type 'exceptions.KeyError'>\r\n4894 2018-07-11 14:49:12.468 UTC root:getTopo      INFO: Failed to get topo: could not reach odl-server?\r\n4894 2018-07-11 14:49:12.469 UTC root:post         INFO: {\"response\": [{\"cause\": \"could not reach odl-server?\", \"option\": \"topo\", \"success\": false}]}\r\n4894 2018-07-11 14:49:12.470 UTC root:initialize   INFO: Init 2 done - debug saved\r\n4894 2018-07-11 14:49:12.470 UTC root:rest_interface_parser INFO: Commands Relieved: {u'option': u'list_all'}\r\n4894 2018-07-11 14:49:12.479 UTC root:get_url      INFO: Url get Status: 200\r\n4894 2018-07-11 14:49:12.479 UTC root:list_pcep_lsp INFO: We have no nodes in our PCEP Topology\r\n4894 2018-07-11 14:49:12.479 UTC root:listAllLsp   INFO: list: [], formatted: []\r\n4894 2018-07-11 14:49:12.480 UTC root:post         INFO: {\"response\": [{\"list\": [], \"option\": \"list_all\", \"success\": true}]}\r\n```\r\n\r\nWhile the vMX has its `lsdist.0` table populated:\r\n```\r\n> show route table lsdist.0 \r\n\r\nlsdist.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)\r\n+ = Active Route, - = Last Active, * = Both\r\n\r\nNODE { AS:xxx ISO:xxx.xxx.xxx.00 ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\nNODE { AS:xxx ISO:1000.9999.9999.00 ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\nNODE { AS:xxx ISO:1000.9999.9999.02 ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\nNODE { AS:xxx ISO:3333.3333.3333.00 ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\nLINK { Local { AS:xxx ISO:1000.9999.9999.02 }.{ } Remote { AS:xxx ISO:1000.9999.9999.00 }.{ } ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\nLINK { Local { AS:xxx ISO:1000.9999.9999.02 }.{ } Remote { AS:xxx ISO:3333.3333.3333.00 }.{ } ISIS-L2:0 }/1408              \r\n                   *[IS-IS/18] 00:15:46\r\n                      Fictitious\r\n```\r\n\r\nWould you please advise why pathman fails to get the topology information ? (The RESTconf works as pasted above)\r\n```\r\n$ egrep \"odl_\" pathman_ini.py\r\nodl_ip = '172.31.141.230'\r\nodl_port = '8181'\r\n```"},"comment":{"url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/comments/416244770","html_url":"https://github.com/CiscoDevNet/pathman-sr/issues/15#issuecomment-416244770","issue_url":"https://api.github.com/repos/CiscoDevNet/pathman-sr/issues/15","id":416244770,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjI0NDc3MA==","user":{"login":"nskalis","id":8971544,"node_id":"MDQ6VXNlcjg5NzE1NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8971544?v=4","gravatar_id":"","url":"https://api.github.com/users/nskalis","html_url":"https://github.com/nskalis","followers_url":"https://api.github.com/users/nskalis/followers","following_url":"https://api.github.com/users/nskalis/following{/other_user}","gists_url":"https://api.github.com/users/nskalis/gists{/gist_id}","starred_url":"https://api.github.com/users/nskalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskalis/subscriptions","organizations_url":"https://api.github.com/users/nskalis/orgs","repos_url":"https://api.github.com/users/nskalis/repos","events_url":"https://api.github.com/users/nskalis/events{/privacy}","received_events_url":"https://api.github.com/users/nskalis/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T14:26:26Z","updated_at":"2018-08-27T14:26:26Z","author_association":"NONE","body":"Thanks a lot!\r\n\r\nThe issue was that in my case, the BGP-LS table didn't had IP prefixes in. And now I can the links drawn.\r\n\r\nNot sure, what you mean by `termination points` though ?\r\n\r\nI did not configure PCEP nor SegmentRouting yet. There is one more thing to ask you if possible;\r\nthe tooltip says `PCEP enabled: yes` and `SR enabled: yes`, while everywhere else has the value of `no` (correctly)\r\n\r\n![screen shot 2018-08-27 at 16 23 06](https://user-images.githubusercontent.com/8971544/44665231-adb2a000-aa15-11e8-8aa2-426dd1fe678e.png)\r\n\r\nBecause it can be a bit misleading, do you have maybe a fix for that ?"}}
{"actor":{"display_login":"nskalis"}}