Exemplo n.º 1
0
    def __init__(self, id: int, vlan_iface_name: str, vlan_iface_id: int, ip: str, ip_mask: int,
                 config_ip: str, config_ip_mask: int, usr_name: str, usr_password: str, power_socket: int):

        ProxyObject.__init__(self)

        self._id = id
        self._ip = ip
        self._ip_mask = ip_mask
        self._config_ip = config_ip
        self._config_ip_mask = config_ip_mask
        self._vlan_iface_id = vlan_iface_id
        self._vlan_iface_name = vlan_iface_name
        self._namespace_name = "nsp" + str(self._vlan_iface_id)
        self._power_socket = power_socket

        # Optional values
        self._mode = Mode.unknown
        self._model = None
        self._usr_name = usr_name
        self._usr_password = usr_password
        self._mac = '00:00:00:00:00:00'
        self._wlan_mode = WlanMode.unknown
        self._ssid = ''
        self.interfaces = dict()
        self.cpu_processes = list()
        self._ram = None
        self._flashdriver = None
        self._firmware = Firmware.get_default_firmware()
Exemplo n.º 2
0
    def __init__(self, id: int, vlan_iface_name: str, vlan_iface_id: int,
                 ip: str, ip_mask: int, config_ip: str, config_ip_mask: int,
                 usr_name: str, usr_password: str, power_socket: int):

        ProxyObject.__init__(self)

        self._id = id
        self._ip = ip
        self._ip_mask = ip_mask
        self._config_ip = config_ip
        self._config_ip_mask = config_ip_mask
        self._vlan_iface_id = vlan_iface_id
        self._vlan_iface_name = vlan_iface_name
        self._namespace_name = "nsp" + str(self._vlan_iface_id)
        self._power_socket = power_socket

        # Optional values
        self._mode = Mode.unknown
        self._model = None
        self._usr_name = usr_name
        self._usr_password = usr_password
        self._mac = '00:00:00:00:00:00'
        self._wlan_mode = WlanMode.unknown
        self._ssid = ''
        self.interfaces = dict()
        self.cpu_processes = list()
        self._ram = None
        self._flashdriver = None
        self._firmware = Firmware.get_default_firmware()
Exemplo n.º 3
0
 def __init__(self, input_text):
     ProxyObject.__init__(self)
     self.text = input_text
Exemplo n.º 4
0
 def __init__(self, input_text):
     ProxyObject.__init__(self)
     self.text = input_text