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:
a4ef048
)
move docstring to beginning of method
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 26 Apr 2010 20:27:15 +0000
(20:27 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 26 Apr 2010 20:27:15 +0000
(20:27 +0000)
sfa/managers/aggregate_manager_pl.py
patch
|
blob
|
history
diff --git
a/sfa/managers/aggregate_manager_pl.py
b/sfa/managers/aggregate_manager_pl.py
index
2ca9db4
..
071a26e
100644
(file)
--- a/
sfa/managers/aggregate_manager_pl.py
+++ b/
sfa/managers/aggregate_manager_pl.py
@@
-46,12
+46,12
@@
def __get_hostnames(nodes):
return hostnames
def create_slice(api, xrn, xml):
return hostnames
def create_slice(api, xrn, xml):
- hrn, type = urn_to_hrn(xrn)
- peer = None
-
"""
Verify HRN and initialize the slice record in PLC if necessary.
"""
"""
Verify HRN and initialize the slice record in PLC if necessary.
"""
+
+ hrn, type = urn_to_hrn(xrn)
+ peer = None
slices = Slices(api)
peer = slices.get_peer(hrn)
sfa_peer = slices.get_sfa_peer(hrn)
slices = Slices(api)
peer = slices.get_peer(hrn)
sfa_peer = slices.get_sfa_peer(hrn)
@@
-66,7
+66,7
@@
def create_slice(api, xrn, xml):
slice = network.get_slice(api, hrn)
current = __get_hostnames(slice.get_nodes())
slice = network.get_slice(api, hrn)
current = __get_hostnames(slice.get_nodes())
-
+
network.addRSpec(xml, api.config.SFA_AGGREGATE_RSPEC_SCHEMA)
request = __get_hostnames(network.nodesWithSlivers())
network.addRSpec(xml, api.config.SFA_AGGREGATE_RSPEC_SCHEMA)
request = __get_hostnames(network.nodesWithSlivers())