+##
+# Geni Component Wrapper
+#
+# This wrapper implements the Geni Slice and Mgmt Interfaces on a node.
+#
+##
+
import tempfile
import os
import sm
import database
+##
+# ComponentManager is a GeniServer that serves slice and
+# management operations at a node.
class ComponentManager(GeniServer):
def __init__(self, ip, port, key_file, cert_file):
##
# Geni PLC Wrapper
#
-# This wrapper implements the Geni Registry and Slice Interfaces.
+# This wrapper implements the Geni Registry and Slice Interfaces on PLC.
#
-# There are several items that need to be done before starting the registry.
+# There are several items that need to be done before starting the wrapper
+# server.
#
# 1) Update util/config.py to match the parameters of your PLC installation.
#
pl_fields["is_public"] = True
##
-# Registry is a GeniServer that serves registry requests. It also serves
-# component and slice operations that are implemented on the registry
-# due to SFA engineering decisions
-#
+# Registry is a GeniServer that serves registry and slice operations at PLC.
class Registry(GeniServer):
##
# ------------------------------------------------------------------------
# Slice Interface
+ #
+ # All but get_ticket are currently stubbed out
+ #
##
# Convert a PLC record into the slice information that will be stored in
##
# GENI API: get_ticket
#
- # Retrieve a ticket. This operation is currently implemented on the
- # registry (see SFA, engineering decisions), and is not implemented on
+ # Retrieve a ticket. This operation is currently implemented on PLC
+ # only (see SFA, engineering decisions); it is not implemented on
# components.
#
# The ticket is filled in with information from the PLC database. This
def stop_slice(self, cred_str):
self.decode_authentication(cred_str, "stopslice")
slicename = hrn_to_pl_slicename(self.object_gid.get_hrn())
+ # TODO: stop the slice
##
# GENI API: start_slice