Ejemplo n.º 1
0
 def __init__(self):
     """Initialise the main interface.
     """
     # Register a handler for catching Ctrl+c
     signal.signal(signal.SIGINT, self.signal_handler)
     # Create and initialise CLI objects
     cmd.Cmd.__init__(self)
     self.intro = "Welcome to the ACLSwitch command line " \
                  "interface.\nType help or ? to list the " \
                  "available commands.\n"
     self.prompt = "(ACLSwitch) "
     self._policy = Policy(self, self._URL_ACLSW)
     self._acl = ACL(self, self._URL_ACLSW)