def __init__(self,aIP,aID=None): GenericDevice.__init__(self,aIP,aID) # Override log file def GL_get_host_name(aIP): from socket import gethostbyaddr try: return gethostbyaddr(aIP)[0].partition('.')[0] except: return None self._sshclient = None self._hostname = GL_get_host_name(aIP) self._logfile = SC['esxi']['logformat'].format(self._hostname)
def __init__(self, aIP, aID=None): GenericDevice.__init__(self, aIP, aID) from jnpr.junos import Device as JunosDevice from jnpr.junos.utils.config import Config from zdcp.SettingsContainer import SC self._router = JunosDevice(self._ip, user=SC['netconf']['username'], password=SC['netconf']['password'], normalize=True) self._config = Config(self._router) self._model = "" self._version = "" self._interfacesname = {}
def __init__(self, aIP, aID=None): GenericDevice.__init__(self, aIP, aID)