From: Tony Mack Date: Thu, 30 Aug 2012 16:14:39 +0000 (-0400) Subject: fix type attribute of ip element X-Git-Tag: sfa-2.1-14~34^2~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1caaa54f767cabf055ebe5912904af1913bdb2f1;p=sfa.git fix type attribute of ip element --- diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index 0be98a87..19bd2b5b 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -141,7 +141,7 @@ class OSAggregate: interface = Interface({'component_id': if_xrn.urn}) interface['ips'] = [{'address': private_ip['addr'], #'netmask': private_ip['network'], - 'type': private_ip['version']}] + 'type': 'ipv%s' % str(private_ip['version'])}] rspec_node['interfaces'].append(interface) # slivers always provide the ssh service