From ffa9a0fe65b4a593a2486747a375422f49d35988 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 27 Oct 2011 12:08:07 -0400 Subject: [PATCH] use Xrn to get interface name --- sfa/plc/vlink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/plc/vlink.py b/sfa/plc/vlink.py index 8aeee498..73ebae79 100644 --- a/sfa/plc/vlink.py +++ b/sfa/plc/vlink.py @@ -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 -- 2.43.0