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.
Reviewed: https:/ /review. openstack. org/541030 /git.openstack. org/cgit/ openstack/ neutron- fwaas-dashboard /commit/ ?id=47a83bdc68c 1803a862381bcb0 f2c264521bd871
Committed: https:/
Submitter: Zuul
Branch: master
commit 47a83bdc68c1803 a862381bcb0f2c2 64521bd871
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
Closes-Bug: #1747524