1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

aci_interface_policy_leaf_policy_group: Fix filtering by lagT (#45088)

This commit is contained in:
Dag Wieers 2018-09-03 16:40:57 +02:00 committed by GitHub
parent 6faf400621
commit e99db084f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -461,6 +461,7 @@ class ACIModule(object):
elif mo is None: elif mo is None:
# Query for all objects of the module's class (filter by properties) # Query for all objects of the module's class (filter by properties)
self.path = 'api/class/{0}.json'.format(obj_class) self.path = 'api/class/{0}.json'.format(obj_class)
self.update_qs({'query-target-filter': self.build_filter(obj_class, obj_filter)})
else: else:
# Query for a specific object in the module's class # Query for a specific object in the module's class
self.path = 'api/mo/uni/{0}.json'.format(obj_rn) self.path = 'api/mo/uni/{0}.json'.format(obj_rn)
@ -485,6 +486,7 @@ class ACIModule(object):
elif parent_obj is None and mo is None: elif parent_obj is None and mo is None:
# Query for all objects of the module's class # Query for all objects of the module's class
self.path = 'api/class/{0}.json'.format(obj_class) self.path = 'api/class/{0}.json'.format(obj_class)
self.update_qs({'query-target-filter': self.build_filter(obj_class, obj_filter)})
elif parent_obj is None: # mo is known elif parent_obj is None: # mo is known
# Query for all objects of the module's class that match the provided ID value # Query for all objects of the module's class that match the provided ID value
self.path = 'api/class/{0}.json'.format(obj_class) self.path = 'api/class/{0}.json'.format(obj_class)
@ -521,6 +523,7 @@ class ACIModule(object):
elif root_obj is None and parent_obj is None and mo is None: elif root_obj is None and parent_obj is None and mo is None:
# Query for all objects of the module's class # Query for all objects of the module's class
self.path = 'api/class/{0}.json'.format(obj_class) self.path = 'api/class/{0}.json'.format(obj_class)
self.update_qs({'query-target-filter': self.build_filter(obj_class, obj_filter)})
elif root_obj is None and parent_obj is None: # mo is known elif root_obj is None and parent_obj is None: # mo is known
# Query for all objects of the module's class matching the provided ID value of the object # Query for all objects of the module's class matching the provided ID value of the object
self.path = 'api/class/{0}.json'.format(obj_class) self.path = 'api/class/{0}.json'.format(obj_class)

View file

@ -260,6 +260,7 @@
that: that:
- binding_query_node_all is not changed - binding_query_node_all is not changed
- binding_query_node_all.current | length >= 1 - binding_query_node_all.current | length >= 1
- binding_query_node_all.current | selectattr("infraAccBndlGrp.attributes.lagT", "equalto", "link") | list == []
- '"/api/class/infraAccBndlGrp.json" in binding_query_node_all.url' - '"/api/class/infraAccBndlGrp.json" in binding_query_node_all.url'
- name: Remove interface policy leaf policy group (VPC) - check mode - name: Remove interface policy leaf policy group (VPC) - check mode