本文整理汇总了Python中neutronclient.v2_0.client.Client.delete_ext方法的典型用法代码示例。如果您正苦于以下问题:Python Client.delete_ext方法的具体用法?Python Client.delete_ext怎么用?Python Client.delete_ext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类neutronclient.v2_0.client.Client
的用法示例。
在下文中一共展示了Client.delete_ext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_bgpvpn_delete
# 需要导入模块: from neutronclient.v2_0.client import Client [as 别名]
# 或者: from neutronclient.v2_0.client.Client import delete_ext [as 别名]
def test_bgpvpn_delete(self):
bgpvpn = self.bgpvpns.first()
api_bgpvpn = {'bgpvpn': self.api_bgpvpns.first()}
neutronclient.delete_ext('/bgpvpn/bgpvpns/%s',
bgpvpn.id).AndReturn(api_bgpvpn)
self.mox.ReplayAll()
api.bgpvpn.bgpvpn_delete(self.request, bgpvpn.id)
示例2: test_network_association_delete
# 需要导入模块: from neutronclient.v2_0.client import Client [as 别名]
# 或者: from neutronclient.v2_0.client.Client import delete_ext [as 别名]
def test_network_association_delete(self):
bgpvpn = self.bgpvpns.first()
na = self.network_associations.first()
api_bgpvpn = {
'network_association': self.api_network_associations.first()}
neutronclient.delete_ext(
'/bgpvpn/bgpvpns/' + bgpvpn.id + '/network_associations/%s',
na.id).AndReturn(api_bgpvpn)
self.mox.ReplayAll()
api.bgpvpn.network_association_delete(self.request, na.id, bgpvpn.id)