Пример #1
0
 def olsonInterface(self, manageIp, macaddr):
     om = ObjectMap({},
                    compname="os",
                    modname="Products.ZenModel.IpInterface")
     om.id = self.prepId("eth0")
     om.title = om.id
     om.interfaceName = om.id
     om.description = "Manually Kludged"
     om.type = "manual"
     om.speed = 10000000
     om.mtu = 1500
     om.ifindex = "1"
     om.adminStatus = 1
     om.operStatus = 1
     om.monitor = False
     om.setIpAddresses = [
         manageIp,
     ]
     om.macaddress = macaddr
     #        om.lockFromDeletion()
     #        om.lockFromUpdates()
     return RelationshipMap(relname="interfaces",
                            compname="os",
                            modname="Products.ZenModel.IpInterface",
                            objmaps=[
                                om,
                            ])
 def iloInterface(self, manageIp):
     om = ObjectMap({}, compname = "os",
                     modname = "Products.ZenModel.IpInterface")
     om.id = self.prepId("iLO Network Interface")
     om.title = om.id
     om.interfaceName = om.id
     om.type = "ethernetCsmacd"
     om.speed = 100000000
     om.mtu = 1500
     om.ifindex = "1"
     om.adminStatus = 1
     om.operStatus = 1
     om.monitor = False
     om.setIpAddresses = [manageIp, ]
     return RelationshipMap(relname = "interfaces", compname = "os",
                            modname = "Products.ZenModel.IpInterface",
                            objmaps = [om,])
    def olsonInterface(self, manageIp, macaddr):
        om = ObjectMap({}, compname = "os",
                        modname = "Products.ZenModel.IpInterface")
        om.id = self.prepId("eth0")
        om.title = om.id
        om.interfaceName = om.id
        om.description = "Manually Kludged"
        om.type = "manual"
        om.speed = 10000000
        om.mtu = 1500
        om.ifindex = "1"
        om.adminStatus = 1
        om.operStatus = 1
        om.monitor = False
        om.setIpAddresses = [manageIp, ]
        om.macaddress = macaddr
#        om.lockFromDeletion()
#        om.lockFromUpdates()
        return RelationshipMap(relname = "interfaces", compname = "os",
                               modname = "Products.ZenModel.IpInterface",
                               objmaps = [om,])
Пример #4
0
 def iloInterface(self, manageIp):
     om = ObjectMap({},
                    compname="os",
                    modname="Products.ZenModel.IpInterface")
     om.id = self.prepId("iLO Network Interface")
     om.title = om.id
     om.interfaceName = om.id
     om.type = "ethernetCsmacd"
     om.speed = 100000000
     om.mtu = 1500
     om.ifindex = "1"
     om.adminStatus = 1
     om.operStatus = 1
     om.monitor = False
     om.setIpAddresses = [
         manageIp,
     ]
     return RelationshipMap(relname="interfaces",
                            compname="os",
                            modname="Products.ZenModel.IpInterface",
                            objmaps=[
                                om,
                            ])