summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorJude Job <judeopenstack@gmail.com>2016-02-02 09:35:38 +0530
committerSteve Martinelli <stevemar@ca.ibm.com>2016-02-14 04:21:00 +0000
commit6109dfcf63a666330e7323d957a37a251dd2b520 (patch)
tree64c9ac421a8d3f4837602f0d4a8b59cf081bf465 /openstackclient/compute
parentc7c672d4b30ce80687f974c3058002eea69d9539 (diff)
downloadpython-openstackclient-6109dfcf63a666330e7323d957a37a251dd2b520.tar.gz
Floating IP: Neutron support for "ip floating delete" command
This patch implements "ip floating delete" command for both compute and network. Also includes unit tests. Change-Id: Ie61f0faad65ec90f9d9956ae463412be8d963d05 partial-Bug: 1519502 Related-to: blueprint neutron-client Co-Authored-By: Tang Chen <chen.tang@easystack.cn>
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/v2/floatingip.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/openstackclient/compute/v2/floatingip.py b/openstackclient/compute/v2/floatingip.py
index 29ecbc90..e4280de7 100644
--- a/openstackclient/compute/v2/floatingip.py
+++ b/openstackclient/compute/v2/floatingip.py
@@ -68,29 +68,6 @@ class CreateFloatingIP(command.ShowOne):
return zip(*sorted(six.iteritems(info)))
-class DeleteFloatingIP(command.Command):
- """Delete a floating IP address"""
-
- def get_parser(self, prog_name):
- parser = super(DeleteFloatingIP, self).get_parser(prog_name)
- parser.add_argument(
- "ip_address",
- metavar="<ip-address>",
- help="IP address to delete (ID only)",
- )
- return parser
-
- def take_action(self, parsed_args):
- compute_client = self.app.client_manager.compute
-
- floating_ip = utils.find_resource(
- compute_client.floating_ips,
- parsed_args.ip_address,
- )
-
- compute_client.floating_ips.delete(floating_ip)
-
-
class ListFloatingIP(command.Lister):
"""List floating IP addresses"""