Ejemplo n.º 1
0
    def copyDataToProxy(self, device, proxy):

        # ssh
        proxy.zKeyPath = device.zKeyPath
        proxy.zCommandUsername = device.zCommandUsername
        proxy.zBBCUseSSH = device.zBBCUseSSH
        proxy.zSSHTimeout = device.zSSHTimeout
        proxy.zBBCAdditionalAppOidSpace = device.zBBCAdditionalAppOidSpace
        proxy.zMaxOIDPerRequest = device.zMaxOIDPerRequest

        # snmp
        proxy.zSnmpMonitorIgnore = device.zSnmpMonitorIgnore
        proxy.zSnmpTries = device.zSnmpTries
        proxy.zSnmpTimeout = device.zSnmpTimeout
        proxy.zSnmpVer = device.zSnmpVer
        proxy.zSnmpSecurityName = device.zSnmpSecurityName
        proxy.zSnmpAuthType = device.zSnmpAuthType
        proxy.zSnmpAuthPassword = device.zSnmpAuthPassword
        proxy.zSnmpPrivType = device.zSnmpPrivType
        proxy.zSnmpPrivPassword = device.zSnmpPrivPassword
        proxy.zSnmpProxyContextName = device.zSnmpProxyContextName
        proxy.zSnmpProxy = device.zSnmpProxy
        proxy.zSnmpPort = device.zSnmpPort
        proxy.zSnmpCommunity = device.zSnmpCommunity

        proxy.perfServer = device.getPerformanceServer().id
        #proxy.productionState       = device.productionState

        result = PythonPlugin.copyDataToProxy(self, device, proxy)

        return result
Ejemplo n.º 2
0
    def copyDataToProxy(self, dev, proxy):
        # Note: a 'super()' call explodes on subsequent runs of the plugin
        PythonPlugin.copyDataToProxy(self, dev, proxy)

        settings = self.getSettings()
        proxy.all_plugins = {}

        pluginPath = self.makePluginRegistry(dev.dmd)
        for section in settings.sections():
            modeler_plugin_name = settings.get(section, 'modeler_plugin')
            data = pluginPath.get(modeler_plugin_name)
            if data:
                path, plugin = data
                plugin.copyDataToProxy(dev, proxy)
                proxy.all_plugins[modeler_plugin_name] = path
            else:
                log.error("Section %s modeler plugin '%s' not known", section,
                          modeler_plugin_name)
    def copyDataToProxy(self, dev, proxy):
        # Note: a 'super()' call explodes on subsequent runs of the plugin
        PythonPlugin.copyDataToProxy(self, dev, proxy)

        settings = self.getSettings()
        proxy.all_plugins = {}

        pluginPath = self.makePluginRegistry(dev.dmd)
        for section in settings.sections():
            modeler_plugin_name = settings.get(section, 'modeler_plugin')
            data = pluginPath.get(modeler_plugin_name)
            if data:
                path, plugin = data
                plugin.copyDataToProxy(dev, proxy)
                proxy.all_plugins[modeler_plugin_name] = path
            else:
                log.error("Section %s modeler plugin '%s' not known",
                          section, modeler_plugin_name)
 def copyDataToProxy(self, device, proxy):
     """add zSnmpCommunity to device proxy"""
     result = PythonPlugin.copyDataToProxy(self, device, proxy)
     proxy.zSnmpCommunity = device.zSnmpCommunity
 def copyDataToProxy(self, device, proxy):
     result = PythonPlugin.copyDataToProxy(self, device, proxy)
     #proxy.guestDevices = [g.id for g in device.guestDevices()]
     return result
Ejemplo n.º 6
0
 def copyDataToProxy(self, device, proxy):
     """add zSnmpCommunity to device proxy"""
     result = PythonPlugin.copyDataToProxy(self, device, proxy)
     proxy.zSnmpCommunity = device.zSnmpCommunity