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')