Fixed an import bug in trunk.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 16 Jul 2009 02:38:55 +0000 (02:38 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 16 Jul 2009 02:38:55 +0000 (02:38 +0000)
sfa/methods/create_slice.py
sfa/rspecs/aggregates/rspec_manager_max.py

index 47a3ff1..73b3d42 100644 (file)
@@ -7,6 +7,7 @@ from sfa.util.method import Method
 from sfa.util.parameter import Parameter, Mixed
 from sfa.trust.auth import Auth
 from sfa.plc.slices import Slices
+from sfa.util.config import Config
 # RSpecManager_pl is not used. This is just to resolve issues with the dynamic __import__ that comes later.
 import sfa.rspecs.aggregates.rspec_manager_pl
 
index 382a63d..d3cb295 100644 (file)
@@ -18,8 +18,7 @@ def link_endpoints(links):
     nodes=[]
     for l in links:
         nodes.extend(topology[l])
-    return l
-
+    return nodes
 
 def lock_state_file():
     # Noop for demo
@@ -150,15 +149,16 @@ def bootstrap_slice(api, hrn, added_nodes, deleted_nodes):
 
         return 1
 
-def alloc_nodes(hrn, links_to_add, links_to_delete):
+def alloc_links(api, links_to_add, links_to_drop, foo):
+
+def alloc_nodes(api,hrn, links_to_add, links_to_delete):
     
     nodes_to_add = link_endpoints(links_to_add)
     nodes_to_delete = link_endpoints(links_to_delete)
 
-    #bootstrap_slice(api, hrn, nodes_to_add, nodes_to_delete)
+    pdb.set_trace()
+    bootstrap_slice(api, hrn, nodes_to_add, nodes_to_delete)
 
-    for r in requested_allocations:
-        print "Requesting "+r
 
 def get_rspec(hrn):
     # Eg. config line: