for now use sfa.plc.nodes.get_rspec() when trying to get a slice's resources. This...
authorTony Mack <tmack@cs.princeton.edu>
Fri, 17 Jul 2009 15:29:48 +0000 (15:29 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 17 Jul 2009 15:29:48 +0000 (15:29 +0000)
sfa/rspecs/aggregates/rspec_manager_vini.py

index 27fde8f..dd68a6e 100644 (file)
@@ -2,6 +2,7 @@ from sfa.util.faults import *
 from sfa.util.misc import *
 from sfa.util.rspec import Rspec
 from sfa.server.registry import Registries
+from sfa.plc.nodes import *
 import sys
 import pdb
 
@@ -120,6 +121,12 @@ def get_rspec(api, hrn):
     rspec = None
     
     if (hrn):
+        # XX rspec is expected to be xml, not None.
+        # call the default sfa.plc.nodes.get_rspec() methods
+        # until things are complete here
+        nodes = Nodes(api)     
+        rspec = nodes.get_rspec(hrn)     
+               
         # Convert HRN to slice name
         # Get SliceTags for the slice