mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
aci_interface_policy_leaf_policy_group: Fix filtering by lagT (#45088)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user