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:
parent
6faf400621
commit
e99db084f4
2 changed files with 4 additions and 0 deletions
|
@ -461,6 +461,7 @@ class ACIModule(object):
|
|||
elif mo is None:
|
||||
# Query for all objects of the module's class (filter by properties)
|
||||
self.path = 'api/class/{0}.json'.format(obj_class)
|
||||
self.update_qs({'query-target-filter': self.build_filter(obj_class, obj_filter)})
|
||||
else:
|
||||
# Query for a specific object in the module's class
|
||||
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:
|
||||
# Query for all objects of the module's 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
|
||||
# Query for all objects of the module's class that match the provided ID value
|
||||
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:
|
||||
# Query for all objects of the module's 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
|
||||
# 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)
|
||||
|
|
|
@ -260,6 +260,7 @@
|
|||
that:
|
||||
- binding_query_node_all is not changed
|
||||
- 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'
|
||||
|
||||
- name: Remove interface policy leaf policy group (VPC) - check mode
|
||||
|
|
Loading…
Reference in a new issue