git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf8dd8
)
use Xrn to get interface name
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 27 Oct 2011 16:08:07 +0000
(12:08 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 27 Oct 2011 16:08:07 +0000
(12:08 -0400)
sfa/plc/vlink.py
patch
|
blob
|
history
diff --git
a/sfa/plc/vlink.py
b/sfa/plc/vlink.py
index
8aeee49
..
73ebae7
100644
(file)
--- a/
sfa/plc/vlink.py
+++ b/
sfa/plc/vlink.py
@@
-1,5
+1,5
@@
-from sfa.util.
plxrn import Pl
Xrn
+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