diff --git a/ecl/network/v2/security_group.py b/ecl/network/v2/security_group.py index 2e13deb..f371429 100644 --- a/ecl/network/v2/security_group.py +++ b/ecl/network/v2/security_group.py @@ -11,6 +11,10 @@ class SecurityGroup(resource2.Resource): service = network_service.NetworkService("v2.0") base_path = '/' + service.version + '/security-groups' + # query parameter names + _query_mapping = resource2.QueryParameters( + 'description', 'id', 'name', 'status', 'tenant_id') + # capabilities allow_list = True allow_create = True diff --git a/ecl/network/v2/security_group_rule.py b/ecl/network/v2/security_group_rule.py index 95360ee..541e9fb 100644 --- a/ecl/network/v2/security_group_rule.py +++ b/ecl/network/v2/security_group_rule.py @@ -11,6 +11,12 @@ class SecurityGroupRule(resource2.Resource): service = network_service.NetworkService("v2.0") base_path = '/' + service.version + '/security-group-rules' + # query parameter names + _query_mapping = resource2.QueryParameters( + 'description', 'direction', 'ethertype', 'id', 'port_range_max', + 'port_range_min', 'protocol', 'remote_group_id', 'remote_ip_prefix', + 'security_group_id', 'tenant_id') + # capabilities allow_list = True allow_create = True