use Xrn to get interface name
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 27 Oct 2011 16:08:07 +0000 (12:08 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 27 Oct 2011 16:08:07 +0000 (12:08 -0400)
sfa/plc/vlink.py

index 8aeee49..73ebae7 100644 (file)
@@ -1,5 +1,5 @@
 
-from sfa.util.plxrn import PlXrn
+from sfa.util.xrn import Xrn
 # Taken from bwlimit.py
 #
 # See tc_util.c and http://physics.nist.gov/cuu/Units/binary.html. Be
@@ -94,7 +94,7 @@ class VLink:
 
     @staticmethod
     def get_interface_id(interface):
-        if_name = PlXrn(interface=interface['component_id']).interface_name()
+        if_name = Xrn(interface=interface['component_id']).get_leaf()
         node, dev = if_name.split(":")
         node_id = int(node.replace("pc", ""))
         return node_id