git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use Xrn to get interface name
[sfa.git]
/
sfa
/
plc
/
vlink.py
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
# 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):
@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
node, dev = if_name.split(":")
node_id = int(node.replace("pc", ""))
return node_id