hi all:

Inorder to find interconnected links in my topology, i would like to use
discovery.py.
In my own component I want to check the adjacency_list which is a public
attribute in discovery module.
How can I use discovery from my component.

I add the following codes, but it doesn't work.

from nox.netapps.discovery import discovery
self._discovery = self.resolve(discovery)
print self._discovery.adjacency_list

File "./nox/coreapps/my_experiment/my_router.py", line 499, in
datapath_join_callback
    print self._discovery.adjacency_list
AttributeError: 'NoneType' object has no attribute 'adjacency_list'

any ideas?
thanks for advance.
best regards

hzy
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to