Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ IF-7192 security groups api query support #93

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ecl/network/v2/security_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions ecl/network/v2/security_group_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down