diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-10-17 20:30:30 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-10-17 20:30:30 +0000 |
| commit | 528f7a76d0e84962126e9dd73dbb0936e784b9f2 (patch) | |
| tree | 77c280b378e7bdacec96be9b1f1a17c995c4ef4f | |
| parent | f03cd87aba59e41784fb949d0706bc3489cd2674 (diff) | |
| parent | 8f8a8448a4adc1d250c253738688ff46e6456616 (diff) | |
| download | python-openstackclient-528f7a76d0e84962126e9dd73dbb0936e784b9f2.tar.gz | |
Merge "Add necessary info to Floating IP list"
| -rw-r--r-- | openstackclient/network/v2/floating_ip.py | 4 | ||||
| -rw-r--r-- | openstackclient/tests/unit/network/v2/test_floating_ip.py | 4 | ||||
| -rw-r--r-- | releasenotes/notes/bug-1566090_64726dc7df5b1572.yaml | 7 |
3 files changed, 15 insertions, 0 deletions
diff --git a/openstackclient/network/v2/floating_ip.py b/openstackclient/network/v2/floating_ip.py index bb75540c..e8057628 100644 --- a/openstackclient/network/v2/floating_ip.py +++ b/openstackclient/network/v2/floating_ip.py @@ -203,12 +203,16 @@ class ListFloatingIP(common.NetworkAndComputeLister): 'floating_ip_address', 'fixed_ip_address', 'port_id', + 'floating_network_id', + 'project_id', ) headers = ( 'ID', 'Floating IP Address', 'Fixed IP Address', 'Port', + 'Floating Network', + 'Project', ) query = {} diff --git a/openstackclient/tests/unit/network/v2/test_floating_ip.py b/openstackclient/tests/unit/network/v2/test_floating_ip.py index 1f30f2e9..578c6154 100644 --- a/openstackclient/tests/unit/network/v2/test_floating_ip.py +++ b/openstackclient/tests/unit/network/v2/test_floating_ip.py @@ -237,6 +237,8 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork): 'Floating IP Address', 'Fixed IP Address', 'Port', + 'Floating Network', + 'Project', ) data = [] @@ -246,6 +248,8 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork): ip.floating_ip_address, ip.fixed_ip_address, ip.port_id, + ip.floating_network_id, + ip.tenant_id, )) def setUp(self): diff --git a/releasenotes/notes/bug-1566090_64726dc7df5b1572.yaml b/releasenotes/notes/bug-1566090_64726dc7df5b1572.yaml new file mode 100644 index 00000000..464e57f0 --- /dev/null +++ b/releasenotes/notes/bug-1566090_64726dc7df5b1572.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + ``openstack floating ip`` now provides ``Floating Network`` and + ``Project`` to identify to which network and project the + floating-ip belongs to. + [Bug `1566090 <https://bugs.launchpad.net/bugs/1566090>`_] |
