diff options
author | sonu.kumar <sonu.kumar@nectechnologies.in> | 2016-08-08 11:46:07 +0530 |
---|---|---|
committer | sonu <sonu.kumar@nectechnologies.in> | 2016-08-08 06:22:53 +0000 |
commit | a9ca09e54080eb64216dfe20f2844793675b3fc3 (patch) | |
tree | eda0130efca4a1693d322a7aebdf8adfd6a809c6 | |
parent | a5035080c1cab723146bcc470e138b336a3a35a1 (diff) | |
download | python-designateclient-a9ca09e54080eb64216dfe20f2844793675b3fc3.tar.gz |
Fix clis related to FloatingIP's ptr records
Change-Id: Ie39f1e86716a096402aafe814fcde821e66dbc5b
Closes-Bug: #1600781
-rw-r--r-- | designateclient/v2/cli/reverse.py | 7 | ||||
-rw-r--r-- | designateclient/v2/reverse.py | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/designateclient/v2/cli/reverse.py b/designateclient/v2/cli/reverse.py index 1a34915..7c6bdcf 100644 --- a/designateclient/v2/cli/reverse.py +++ b/designateclient/v2/cli/reverse.py @@ -37,6 +37,13 @@ class ListFloatingIPCommand(command.Lister): columns = ['id', 'ptrdname', 'description', 'ttl'] + def get_parser(self, prog_name): + parser = super(ListFloatingIPCommand, self).get_parser(prog_name) + + common.add_all_common_options(parser) + + return parser + def take_action(self, parsed_args): client = self.app.client_manager.dns common.set_all_common_headers(client, parsed_args) diff --git a/designateclient/v2/reverse.py b/designateclient/v2/reverse.py index 99fe1d2..3df78fa 100644 --- a/designateclient/v2/reverse.py +++ b/designateclient/v2/reverse.py @@ -31,8 +31,8 @@ class FloatingIPController(V2Controller): url = '/reverse/floatingips/%s' % floatingip_id return self._patch(url, data=data) - def list(self): - url = '/reverse/floatingips' + def list(self, criterion=None): + url = self.build_url('/reverse/floatingips', criterion) return self._get(url, response_key='floatingips') |