git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4ebba2
)
added client_id attribute to interface elements
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 30 Aug 2012 19:09:49 +0000
(15:09 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 30 Aug 2012 19:11:35 +0000
(15:11 -0400)
sfa/openstack/osaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/openstack/osaggregate.py
b/sfa/openstack/osaggregate.py
index
35dcf50
..
29497aa
100644
(file)
--- 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,
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'])}]
interface['ips'] = [{'address': private_ip['addr'],
#'netmask': private_ip['network'],
'type': 'ipv%s' % str(private_ip['version'])}]