Exemple #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):

        RemoteSystem.__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 = ""
        self._usr_name = usr_name
        self._usr_password = usr_password
        self._mac = '00:00:00:00:00:00'
        self._ssid = ''
        self.interfaces = dict()
        self.cpu_processes = list()
        self.sockets = list()
        self._ram = None
        self._flashdriver = None
        self._firmware = Firmware.get_default_firmware()
Exemple #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):

        RemoteSystem.__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 = ""
        self._usr_name = usr_name
        self._usr_password = usr_password
        self._mac = '00:00:00:00:00:00'
        self._ssid = ''
        self.interfaces = dict()
        self.cpu_processes = list()
        self.sockets = list()
        self._ram = None
        self._flashdriver = None
        self._firmware = Firmware.get_default_firmware()
Exemple #3
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._firmware = Firmware.get_default_firmware()
Exemple #4
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):
        """
        :param id: The id of the Router
        :param vlan_iface_name: The name of the VLAN, which the Router is connected to
        :param vlan_iface_id: The id of the VLAN, which the RemoteSystem is connected to
        :param ip: The IP on which the RemoteSystem is listening in normal-mode
        :param ip_mask: Mask of the IP on which the RemoteSystem is listening in normal-mode
        :param config_ip: The IP on which the RemoteSystem is listening in configuration-mode
        :param config_ip_mask: Mask of the IP on which the RemoteSystem is listening in configuration-mode
        :param usr_name: The user-name that is used via SSH
        :param usr_password: The password that is used via SSH
        :param power_socket: The port on the power_socker where the Router is connected to.
        :return:
        """

        RemoteSystem.__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._usr_name = usr_name
        self._usr_password = usr_password
        self._power_socket = power_socket

        # Optional values
        self._mode = Mode.unknown
        self._model = ""
        self._mac = '00:00:00:00:00:00'
        self._node_name = ""
        self._public_key = ""
        self.network_interfaces = dict()
        self.cpu_processes = list()
        self.sockets = list()
        self._ram = None
        self._flashdriver = None
        self._firmware = Firmware.get_default_firmware()
        self.uci = dict()
        self.bat_originators = list()
    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._firmware = Firmware.get_default_firmware()