diff options
| author | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | 2016-03-21 12:29:03 -0700 |
|---|---|---|
| committer | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | 2016-03-22 16:14:43 -0700 |
| commit | f3110f0f4e70c8d4815316178c93dc54f04ee252 (patch) | |
| tree | 06624a1b46166c3287d8fa976d97a99c739dfd07 /tempest/api/network/base.py | |
| parent | e6b66b641536e01e4bc91320b5a4fd015fd1aa04 (diff) | |
| download | tempest-f3110f0f4e70c8d4815316178c93dc54f04ee252.tar.gz | |
Remove redundant list_router_interfaces()
list_router_interfaces() just passes router_id as a filter to
"list ports" API on Neutron. So it is easy to implement the metod
with list_ports() instead.
This patch removes the redundant method and makes it use list_ports().
Partially implements blueprint consistent-service-method-names
Change-Id: I32d4fab72df8786982d02960770c97e698e34ce3
Diffstat (limited to 'tempest/api/network/base.py')
| -rw-r--r-- | tempest/api/network/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tempest/api/network/base.py b/tempest/api/network/base.py index d78fc04f8..71edf74e4 100644 --- a/tempest/api/network/base.py +++ b/tempest/api/network/base.py @@ -257,7 +257,7 @@ class BaseNetworkTest(tempest.test.BaseTestCase): @classmethod def delete_router(cls, router): - body = cls.client.list_router_interfaces(router['id']) + body = cls.ports_client.list_ports(device_id=router['id']) interfaces = body['ports'] for i in interfaces: try: |
