Example #1
0
 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)
Example #2
0
 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 = {}
Example #3
0
 def __str__(self):
     return "OpenGear - {}".format(GenericDevice.__str__(self))
Example #4
0
 def __init__(self, aIP, aID=None):
     GenericDevice.__init__(self, aIP, aID)
Example #5
0
 def __str__(self):
     return "WLC - {}".format(GenericDevice.__str__(self))
Example #6
0
 def __str__(self):
     return "Avocent[%s]: %s" % (__type__, GenericDevice.__str__(self))