From d15ba8edb5baf1ae67ee0e298f7f82e64ba8c4a9 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 30 Aug 2012 15:09:49 -0400 Subject: [PATCH] added client_id attribute to interface elements --- sfa/openstack/osaggregate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index a0b294f8..a6339b89 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -132,8 +132,10 @@ class OSAggregate: for private_ip in addresses.get('private', []): if_xrn = PlXrn(auth=self.driver.hrn, - interface='node%s:eth0' % (instance.hostId)) - interface = Interface({'component_id': if_xrn.urn}) + interface='node%s' % (instance.hostId)) + if_client_id = Xrn(if_xrn.urn, type='interface', id="eth%s" %if_index).urn + interface = Interface({'component_id': if_xrn.urn, + 'client_id': if_client_id}) interface['ips'] = [{'address': private_ip['addr'], #'netmask': private_ip['network'], 'type': 'ipv%s' % str(private_ip['version'])}] -- 2.43.0