本文整理汇总了Python中marvin.lib.base.PhysicalNetwork.id方法的典型用法代码示例。如果您正苦于以下问题:Python PhysicalNetwork.id方法的具体用法?Python PhysicalNetwork.id怎么用?Python PhysicalNetwork.id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类marvin.lib.base.PhysicalNetwork
的用法示例。
在下文中一共展示了PhysicalNetwork.id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: PhysicalNetwork
# 需要导入模块: from marvin.lib.base import PhysicalNetwork [as 别名]
# 或者: from marvin.lib.base.PhysicalNetwork import id [as 别名]
c.id = cluster.id
c.delete(apiClient)
ipranges = PublicIpRange.list(apiClient)
if ipranges:
for iprange in ipranges:
print "ip range name={}, id={}".format(iprange.name, iprange.id)
if clusters:
nets = PhysicalNetwork.list(apiClient)
if nets:
for net in nets:
print "net name={}, id={}".format(net.name, net.id)
print "Delete PhysicalNetwork"
n = PhysicalNetwork(tmp_dict)
n.id = net.id
n.delete(apiClient)
pods = Pod.list(apiClient)
if pods:
for pod in pods:
print "pod name={}, id={}".format(pod.name, pod.id)
print "Delete Pod"
p = Pod(tmp_dict)
p.id = pod.id
p.delete(apiClient)
img_storages = ImageStore.list(apiClient)
if img_storages:
for img_storage in img_storages:
print "image store name={}, id={}".format(img_storage.name, img_storage.id)