Stub Eucalyptus aggregate manager
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 5 Jan 2010 18:59:06 +0000 (18:59 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 5 Jan 2010 18:59:06 +0000 (18:59 +0000)
sfa/managers/aggregate_manager_eucalyptus.py [new file with mode: 0644]

diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py
new file mode 100644 (file)
index 0000000..f05a36a
--- /dev/null
@@ -0,0 +1,27 @@
+from sfa.util.faults import *
+from sfa.util.namespace import *
+from sfa.util.rspec import RSpec
+from sfa.server.registry import Registries
+from sfa.plc.nodes import *
+import sys
+
+def get_rspec(api, hrn, origin_hrn):
+    xml = """<?xml version="1.0"?>
+<RSpec name="eucalyptus">
+</RSpec>"""
+    return xml
+
+"""
+Hook called via 'sfi.py create'
+"""
+def create_slice(api, hrn, xml):
+    return True
+
+def main():
+    r = RSpec()
+    r.parseFile(sys.argv[1])
+    rspec = r.toDict()
+    create_slice(None,'plc',rspec)
+
+if __name__ == "__main__":
+    main()