Skip to content

Commit

Permalink
ansible-collections#162: Add 'routing rule' path
Browse files Browse the repository at this point in the history
  • Loading branch information
derdeagle committed Dec 28, 2023
1 parent 1d6feda commit f083902
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/246-add-routing-rule-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add ``routing rule`` path (https://github.com/ansible-collections/community.routeros/issues/162, https://github.com/ansible-collections/community.routeros/pull/246).
18 changes: 18 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,24 @@ def join_path(path):
},
),
),
('routing', 'rule'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
fields={
'action': KeyInfo(can_disable=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'dst-address': KeyInfo(can_disable=True),
'interface': KeyInfo(can_disable=True),
'min-prefix': KeyInfo(can_disable=True),
'routing-mark': KeyInfo(can_disable=True),
'src-address': KeyInfo(can_disable=True),
'table': KeyInfo(can_disable=True),
},
)),
],
),
('routing', 'table'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
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 @@ -185,6 +185,7 @@
- routing pimsm interface-template
- routing rip
- routing ripng
- routing rule
- routing table
- snmp
- snmp community
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 @@ -194,6 +194,7 @@
- routing pimsm interface-template
- routing rip
- routing ripng
- routing rule
- routing table
- snmp
- snmp community
Expand Down

0 comments on commit f083902

Please sign in to comment.