Beispiel #1
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code)
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
Beispiel #2
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code)
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     msg_type = cli_interface_client_server_protocol.MsgStringToType[self.params[0]]
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code, msg_type)
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
Beispiel #4
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     level_int = cli_interface_cluster.node_activate_map[self.params[0]]
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code, level_int)
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
Beispiel #5
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     ip = cli_type_ip.ipv4_atoi(self.params[0])
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code, 
                            socket.AF_INET, ip, '')
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
Beispiel #6
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     ip = cli_type_ip.ipv4_atoi(self.params[0])
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code,
                            socket.AF_INET, ip, '')
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)
Beispiel #7
0
 def execute(self, session):
     '''
     @param session: The session context
     @type session: Class login_context
     '''
     #self.params hold the variables
     level_int = cli_interface_cluster.node_activate_map[self.params[0]]
     c_struct = struct.pack(self.fmt, self.major_type, self.cli_code,
                            level_int)
     ret = dcslib.process_cli_data(c_struct)
     cli_interface.process_error(ret)