def setUp(self): ip = IPAddress(address='127.0.0.1') ip.snmp_name = ('Hardware: EM64T Family 6 Model 15 Stepping 7 AT/AT ' 'COMPATIBLE - Software: Windows Version 5.2 (Build ' '3790 Multiprocessor Free)') ip.snmp_community = 'public' ip.snmp_version = '2c' ip.save() self.ip = ip self.kwargs = { 'ip': ip.address, 'community': ip.snmp_community, 'snmp_name': ip.snmp_name, 'snmp_version': ip.snmp_version, }
def setUp(self): ip = IPAddress(address="127.0.0.1") ip.snmp_name = "IBM PowerPC CHRP Computer" ip.snmp_community = "public" ip.snmp_version = "2c" ip.save() self.ip = ip self.kwargs = { "ip": ip.address, "community": ip.snmp_community, "snmp_name": ip.snmp_name, "snmp_version": ip.snmp_version, } dev = Device.create(sn="foo", model_type=DeviceType.storage, model_name="foo") dev.save() self.share = DiskShare(wwn="2AC000250A9B5000", device=dev) self.share.save()
def setUp(self): ip = IPAddress(address='127.0.0.1') ip.snmp_name = 'IBM PowerPC CHRP Computer' ip.snmp_community = 'public' ip.snmp_version = '2c' ip.save() self.ip = ip self.kwargs = { 'ip': ip.address, 'community': ip.snmp_community, 'snmp_name': ip.snmp_name, 'snmp_version': ip.snmp_version, } dev = Device.create(sn='foo', model_type=DeviceType.storage, model_name='foo') dev.save() self.share = DiskShare(wwn='2AC000250A9B5000', device=dev) self.share.save()