Merge "Add id query parameter to sg rules"

This commit is contained in:
Zuul 2021-01-21 22:46:40 +00:00 committed by Gerrit Code Review
commit 0fb65458d2
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class SecurityGroupRule(_base.NetworkResource, resource.TagMixin):
allow_list = True
_query_mapping = resource.QueryParameters(
'description', 'direction', 'protocol',
'description', 'direction', 'id', 'protocol',
'remote_group_id', 'security_group_id',
'remote_address_group_id',
'port_range_max', 'port_range_min',

View File

@ -51,6 +51,7 @@ class TestSecurityGroupRule(base.TestCase):
self.assertDictEqual({'any_tags': 'tags-any',
'description': 'description',
'direction': 'direction',
'id': 'id',
'ether_type': 'ethertype',
'limit': 'limit',
'marker': 'marker',