firewall group table: fix handling of ports of FWG
The previous code assumes a list of api.neutron.Port objects
as FWG.ports but actually FWG.ports is a list of UUID.
It seems to come from copy-and-paste of FWaaS v1 code without testing.
This commit changes a value to be displayed from name/ID of ports
to the number of ports. A list of ports can be long and it is not
a good idea to show all ports in the firewall group table.
I believe the number of associated ports makes more sense.
Change-Id: I0fc7a41e7aaac3fdb305fb7ccdae466f7cbdf56f
Closes-Bug: #1747524
(cherry picked from commit 47a83bdc68c1803a862381bcb0f2c264521bd871)
Reviewed: https:/ /review. openstack. org/546530 /git.openstack. org/cgit/ openstack/ neutron- fwaas-dashboard /commit/ ?id=90678160afb a1f9f0fef29a18f eafed7ce6cffa8
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 90678160afba1f9 f0fef29a18feafe d7ce6cffa8
Author: Akihiro Motoki <email address hidden>
Date: Tue Feb 6 06:51:27 2018 +0900
firewall group table: fix handling of ports of FWG
The previous code assumes a list of api.neutron.Port objects
as FWG.ports but actually FWG.ports is a list of UUID.
It seems to come from copy-and-paste of FWaaS v1 code without testing.
This commit changes a value to be displayed from name/ID of ports
to the number of ports. A list of ports can be long and it is not
a good idea to show all ports in the firewall group table.
I believe the number of associated ports makes more sense.
Change-Id: I0fc7a41e7aaac3 fdb305fb7ccdae4 66f7cbdf56f a862381bcb0f2c2 64521bd871)
Closes-Bug: #1747524
(cherry picked from commit 47a83bdc68c1803