本文整理汇总了Python中isp.nsmUtil.NsmUtil.deleteLogResponse方法的典型用法代码示例。如果您正苦于以下问题:Python NsmUtil.deleteLogResponse方法的具体用法?Python NsmUtil.deleteLogResponse怎么用?Python NsmUtil.deleteLogResponse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类isp.nsmUtil.NsmUtil
的用法示例。
在下文中一共展示了NsmUtil.deleteLogResponse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: start
# 需要导入模块: from isp.nsmUtil import NsmUtil [as 别名]
# 或者: from isp.nsmUtil.NsmUtil import deleteLogResponse [as 别名]
def start(self):
if (Test.__online1 and Test.__online2 and Test.__online3 and Test.__online4 and Test.__online5):
NsmUtil.deleteLogResponse()
NsmUtil.mkPresetDir()
test = Test()
nsmV1 = self.run(None, 'test-nsm-v1.json', Test.__online1)
nsmV1.getProviderList('301')
catalog = nsmV1.getCatalog()
top = self.run(catalog, 'test-top.json', Test.__online1)
catalog = top.getCatalog()
provider = self.run(catalog, 'test-provider.json', Test.__online1)
nsmV1.getProviderList('311')
provider.getPodList('301')
name = 'My Default IP Address Pool of Provider Global'
ipAddressPoolGlobal = self.testProviderIpAddressPool(provider, name, 'Global', '101', Test.__online1)
name = 'My Default IP Address Pool of Provider Infrastructure'
ipAddressPoolInfrastructure = self.testProviderIpAddressPool(provider, name, 'Infrastructure', '101', Test.__online1)
self.testIpReservation('Global', ipAddressPoolGlobal, 'test-ip-reservation-global.json', '111', Test.__online1)
self.testIpReservation('Infrastructure', ipAddressPoolInfrastructure, 'test-ip-reservation-infrastructure.json', '111', Test.__online1)
catalog = provider.getCatalog()
pod = self.run(catalog, 'test-pod.json', Test.__online1)
provider.getPodList('311')
if Test.__online1:
NsmUtil.printHeadLine1('test completed up to Pod')
#sys.exit()
catalog = provider.getCatalog()
tenant = self.run(catalog, 'test-tenant.json', Test.__online2)
catalog = tenant.getCatalog()
tenantNetworkContainer = self.run(catalog, 'test-tenant-network-container.json', Test.__online2)
catalog = tenant.getCatalog()
internetExtenalNetwork = self.run(catalog, 'test-internet-external-network.json', Test.__online3)
catalog = tenantNetworkContainer.getCatalog()
internetEdgeZone = self.run(catalog, 'test-internet-edge-zone.json', Test.__online3)
catalog = internetEdgeZone.getCatalog()
internetEdgeZoneLayer3Vlan = self.run(catalog, 'test-internet-edge-zone-layer3-vlan.json', Test.__online3)
catalog = tenantNetworkContainer.getCatalog()
externalConnection = self.run(catalog, 'test-internet-external-connection.json', Test.__online3)
catalog = tenantNetworkContainer.getCatalog()
securedInternetEdgeZone = test.run(catalog, 'test-secured-internet-edge-zone.json', Test.__online3)
catalog = securedInternetEdgeZone.getCatalog()
securedInternetEdgeZoneLayer3Vlan = self.run(catalog, 'test-secured-internet-edge-zone-layer3-vlan.json', Test.__online3)
catalog = tenant.getCatalog()
internetFirewallService1 = self.run(catalog, 'test-internet-firewall-service-between-secured-and-unsecured-zone.json', Test.__online3)
catalog = tenant.getCatalog()
internetFirewallService2 = self.run(catalog, 'test-internet-firewall-service-between-secured-and-external-network.json', Test.__online3)
catalog = tenant.getCatalog()
privateExtenalNetwork = self.run(catalog, 'test-private-external-network.json', Test.__online4)
catalog = tenantNetworkContainer.getCatalog()
privateEdgeZone = self.run(catalog, 'test-private-edge-zone.json', Test.__online4)
catalog = privateEdgeZone.getCatalog()
privateEdgeZoneLayer3Vlan = self.run(catalog, 'test-private-edge-zone-layer3-vlan.json', Test.__online4)
catalog = tenantNetworkContainer.getCatalog()
privateMplsConnection = self.run(catalog, 'test-private-mpls-connection.json', Test.__online4)
catalog = tenantNetworkContainer.getCatalog()
securedPrivateEdgeZone = self.run(catalog, 'test-secured-private-edge-zone.json', Test.__online4)
catalog = securedPrivateEdgeZone.getCatalog()
privateEdgeZoneLayer3Vlan = self.run(catalog, 'test-secured-private-edge-zone-layer3-vlan.json', Test.__online4)
#sys.exit()
catalog = tenant.getCatalog()
privateFirewallService1 = self.run(catalog, 'test-private-firewall-service-between-secured-and-unsecured-zone.json', Test.__online4)
catalog = tenant.getCatalog()
#.........这里部分代码省略.........