Skip to content

Commit

Permalink
Add support for "routing table" (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi authored Sep 10, 2023
1 parent 2350913 commit 4d8ebae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/215-add-routing-table.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``routing table`` path in RouterOS 7 (https://github.com/ansible-collections/community.routeros/pull/215).
13 changes: 13 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,19 @@ def join_path(path):
},
),
),
('routing', 'table'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
fields={
'name': KeyInfo(required=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(can_disable=True),
'fib': KeyInfo(),
},
)),
],
),
('snmp', 'community'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
- routing pimsm interface-template
- routing rip
- routing ripng
- routing table
- snmp
- snmp community
- system clock
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
- routing pimsm interface-template
- routing rip
- routing ripng
- routing table
- snmp
- snmp community
- system clock
Expand Down

0 comments on commit 4d8ebae

Please sign in to comment.