Skip to content
Open
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
3 changes: 1 addition & 2 deletions ansible_collections/f5networks/f5_modules/galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
authors:
- Wojciech Wypior (@wojtek0806)
- Rohit Upadhyay (@urohit011)
- Ravinder Reddy (@chinthalapalli)
dependencies:
ansible.netcommon: ">=2.0.0"
description: F5 BIG-IP Imperative Collection for Ansible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13270,14 +13270,30 @@ def read_facts(self):
results = []
collection = self.increment_read()
for resource in collection:
attrs = resource
members = self.read_member_from_device(attrs['fullPath'])
attrs['members'] = members
attrs['stats'] = self.read_stats_from_device(attrs['fullPath'])
params = LtmPoolsParameters(params=attrs)
# Process members directly from the expanded collection
if 'membersReference' in resource and 'items' in resource['membersReference']:
resource['members'] = resource['membersReference']['items']
else:
resource['members'] = []
# Process stats if available
resource['stats'] = resource.get('stats', {})
# Map the resource attributes using LtmPoolsParameters
params = LtmPoolsParameters(params=resource)
results.append(params)
return results

# def read_facts(self):
# results = []
# collection = self.increment_read()
# for resource in collection:
# attrs = resource
# members = self.read_member_from_device(attrs['fullPath'])
# attrs['members'] = members
# attrs['stats'] = self.read_stats_from_device(attrs['fullPath'])
# params = LtmPoolsParameters(params=attrs)
# results.append(params)
# return results

def increment_read(self):
n = 0
result = []
Expand All @@ -13304,7 +13320,7 @@ def read_collection_from_device(self, skip=0):
self.client.provider['server'],
self.client.provider['server_port'],
)
query = "?$top={0}&$skip={1}&$filter=partition+eq+{2}".format(
query = "?$top={0}&$skip={1}&$filter=partition+eq+{2}&expandSubcollections=true".format(
self.module.params['data_increment'], skip, self.module.params['partition']
)
resp = self.client.api.get(uri + query)
Expand Down
2 changes: 0 additions & 2 deletions ansible_collections/f5networks/f5_modules/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cryptography
objectpath
ordereddict
simplejson
packaging

This file was deleted.