From: Tony Mack Date: Wed, 24 Oct 2012 02:36:29 +0000 (-0400) Subject: fix value error X-Git-Tag: sfa-3.0-0~95 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a9a62c9ffecb392e5a16b2d6691701e7abcf8aca;p=sfa.git fix value error --- 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]]