horizon/openstack_dashboard/dashboards/project/security_groups
Akihiro Motoki 1afba5f082 Sort security group rules more meaningfully
At now, security gorup rules are sorted based on ip_protocol and
from_port by default, but there are more higher level classification
like direction and ethertype (like IPv4, IPv6).
This commit improves the default sort order in more meaningful order.

Also improves the handling of IP protocol which can be a string,
an integer or None. Sorting in python 3 assumes all corresponding
values have a same type, so we need to ensure IP protocols in all rules
have a same type, so IP protocol fields are converted into a string
before sorting.

Change-Id: Ia45830e9953e92141a3ce91a78dd338960b5ac11
Closes-Bug: #1264738
2017-10-14 10:31:47 +00:00
..
templates/security_groups Drop Nova security group dependency from dashboard 2017-04-28 08:28:41 +00:00
__init__.py Move Security Groups into its own panel 2017-02-02 13:19:21 +11:00
forms.py Make icmp_type/code optional 2017-08-21 10:30:59 +00:00
panel.py flake8-import-order: Ensure to place project imports last 2017-09-20 01:19:38 +00:00
tables.py flake8-import-order: Ensure to place project imports last 2017-09-20 01:19:38 +00:00
tests.py Use flake8-import-order plugin 2017-07-03 08:02:23 +00:00
urls.py flake8-import-order: Ensure to place project imports last 2017-09-20 01:19:38 +00:00
views.py Sort security group rules more meaningfully 2017-10-14 10:31:47 +00:00