mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-01 13:54:39 +02:00
Add api_info and api_modify modules (#91)
* Add api_info and api_modify modules. * Add documentation, and cross-references for the modules. * Bump version added for new modules. * Ignore dynamic entries. Allow _info module to return them. * Document behavior for dynamic entries. * Update license headers. * Add disclaimer. * Improve formulation. * Auto-generate path list in DOCUMENTATION. * Add test to make sure lists have been generated automatically.
This commit is contained in:
parent
1abaa8e7ca
commit
2911710f1b
21 changed files with 3277 additions and 6 deletions
|
@ -130,8 +130,10 @@ def _normalize_entry(entry, path_info):
|
|||
del entry['!%s' % key]
|
||||
|
||||
|
||||
def massage_expected_result_data(values, path, keep_all=False):
|
||||
def massage_expected_result_data(values, path, keep_all=False, remove_dynamic=False):
|
||||
path_info = PATHS[path]
|
||||
if remove_dynamic:
|
||||
values = [entry for entry in values if not entry.get('dynamic', False)]
|
||||
values = [entry.copy() for entry in values]
|
||||
for entry in values:
|
||||
_normalize_entry(entry, path_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue