Fix clis related to FloatingIP's ptr records

Change-Id: Ie39f1e86716a096402aafe814fcde821e66dbc5b
Closes-Bug: #1600781
This commit is contained in:
sonu.kumar 2016-08-08 11:46:07 +05:30 committed by sonu
parent a5035080c1
commit a9ca09e540
2 changed files with 9 additions and 2 deletions

View File

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

View File

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