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:
41dbccd
)
interfaces elements in the manifest rspec must have a client_id
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 9 Dec 2011 20:31:05 +0000
(15:31 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 9 Dec 2011 20:31:13 +0000
(15:31 -0500)
sfa/plc/plaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/plc/plaggregate.py
b/sfa/plc/plaggregate.py
index
1fed455
..
1b06124
100644
(file)
--- a/
sfa/plc/plaggregate.py
+++ b/
sfa/plc/plaggregate.py
@@
-203,6
+203,9
@@
class PlAggregate:
interface['ipv4'] = interface['ip']
interface['component_id'] = PlXrn(auth=self.driver.hrn,
interface='node%s:eth%s' % (node['node_id'], if_count)).get_urn()
interface['ipv4'] = interface['ip']
interface['component_id'] = PlXrn(auth=self.driver.hrn,
interface='node%s:eth%s' % (node['node_id'], if_count)).get_urn()
+ # interfaces in the manifest need a client id
+ if slice:
+ interface['client_id'] = "%s:%s" % (node['node_id'], if_id)
rspec_node['interfaces'].append(interface)
if_count+=1
rspec_node['interfaces'].append(interface)
if_count+=1