From a9a62c9ffecb392e5a16b2d6691701e7abcf8aca Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 23 Oct 2012 22:36:29 -0400 Subject: [PATCH 1/1] fix value error --- sfa/planetlab/plslices.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index 30cb539c..be38155c 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -246,7 +246,11 @@ class PlSlices: for link in requested_links: # get the ip address of the first node in the link ifname1 = Xrn(link['interface1']['component_id']).get_leaf() - (node_raw, device) = ifname1.split(':') + ifname_parts = ifname1.split(':') + node_raw = ifname_parts[0] + device = None + if len(ifname_parts) > 1: + device = ifname_parts[1] node_id = int(node_raw.replace('node', '')) node = nodes_dict[node_id] if1 = interfaces_dict[node['interface_ids'][0]] -- 2.43.0