Ask Your Question
0

network topology change notification (bgp-ls)

asked 2014-12-16 16:54:34 -0700

anonymous user

Anonymous

Hi all, I am trying to build an application that dynamically detects topology changes from the BGP-LS data. I would like to be able to get a notification when a node/link disappears from the network. I get to the step3 at link:(https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:Restconf:Changeeventnotificationsubscription), where I write an application on a server that connects to a websocket and waits to receive data from the controller (on a different server). unfortunately, I am not able to get any notifications when the topology changes. I can see that the controller detected the changes when I send it an HTTP GET. Anything that I might be missing?

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-17 03:35:40 -0700

Milos Fabian gravatar image

Hi, Are you subscribed to OPERATIONAL data store and using correct path to the topology, where you want to listen? What data-change-notification scope are you using? Could you please send your URIs and inputs of subscribe operations (first two steps in tutorial)?

Thanks, Milos

edit flag offensive delete publish link more

Comments

After multiple attempts, the controller accepted these details: <path xmlns:a="urn:TBD:params:xml:ns:yang:network-topology">/a:network-topology</path> <datastore xmlns="urn:sal:restconf:event:subscription">OPERATIONAL</datastore> <scope xmlns="urn:sal:restconf:event:subscription">BASE</scope>

taha ( 2014-12-17 12:08:45 -0700 )edit

After that, I keep listening but I don't get any data back. My code works good with the example in the initial tutorial, but it fails to get any notification in case of bgp-ls topology changes. Am I missing something, the wrong path maybe? Thank you Milos for your help

taha ( 2014-12-17 12:15:15 -0700 )edit

You should be able to subscribe on specific topology (i.e. bgp-ls) with using path: <path xmlns:a="urn:TBD:params:xml:ns:yang:network-topology">/a:network-topology/a:topology[a:topology-id='example-linkstate-topology']</path> Tried it locally with latest ODL master build but it was not working as expected so filed bug in Bugzilla https://bugs.opendaylight.org/show_bug.cgi?id=2524

Milos Fabian ( 2014-12-18 04:47:12 -0700 )edit

The next thing are scopes: Base - listener is notified if node changed One - listener is notified if direct child of node changed Subtree - listener is notified if node or it's subtree changed "BASE" wont not be working in your case as you expect. Try to switch to "SUBTREE" and use <path> same as you mentioned in your comment, since subscribing on specific topology is not working well.

Milos Fabian ( 2014-12-18 04:56:32 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2014-12-16 16:54:34 -0700

Seen: 662 times

Last updated: Dec 17 '14