Hi all,
I'm trying to play around the topology component. The topology component
provides access to the outlinks of a certain switch. Follow is a snippet
of my code to do so:
def install(self):
...
self.register_for_datapath_join(lambda dpid, stats :
self.datapath_join_callback(dpid, stats))
...
...
def datapath_join_callback(self, dpid, stats):
if self.datapathids[0] == 0 :
self.datapathids[0] = dpid
else :
self.datapathids[1] = dpid
...
...
def timer(self):
if (self.datapathids[0] != 0 and self.datapathids[1] != 0) :
self.linkPorts =
self.pytop.get_outlinks(datapathid.from_host(self.datapathids[0]),
datapathid.from_host(self.datapathids[1]))
My question is how I can pull information out of self.linkPorts (say,
source and destination), which is of type PyLinkPorts. Thank you.
--
Best regards,
Wenjie Zeng
Raytheon BBN Technologies
10 Moulton Street
Cambridge, MA 02138
(617) 873-3205
[email protected]
www.geni.net
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org