mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-24 18:58:41 +02:00
Add support for "routing filter {rule|select-rule}" (#200)
RouterOS 7 added route selections and filters (https://help.mikrotik.com/docs/display/ROS/Route+Selection+and+Filters). Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
parent
2164261e09
commit
343c4883c0
4 changed files with 30 additions and 0 deletions
2
changelogs/fragments/200-add-routing-filter.yml
Normal file
2
changelogs/fragments/200-add-routing-filter.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_info, api_modify - add support for the ``routing filter rule`` and ``routing filter select-rule`` paths (https://github.com/ansible-collections/community.routeros/pull/200).
|
|
@ -591,6 +591,30 @@ PATHS = {
|
||||||
'use-radius': KeyInfo(default=False),
|
'use-radius': KeyInfo(default=False),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
('routing', 'filter', 'rule'): APIData(
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'chain': KeyInfo(required=True),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'disabled': KeyInfo(can_disable=True),
|
||||||
|
'rule': KeyInfo(can_disable=True),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
('routing', 'filter', 'select-rule'): APIData(
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'chain': KeyInfo(required=True),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'disabled': KeyInfo(can_disable=True),
|
||||||
|
'do-group-num': KeyInfo(can_disable=True),
|
||||||
|
'do-group-prfx': KeyInfo(can_disable=True),
|
||||||
|
'do-jump': KeyInfo(can_disable=True),
|
||||||
|
'do-select-num': KeyInfo(can_disable=True),
|
||||||
|
'do-select-prfx': KeyInfo(can_disable=True),
|
||||||
|
'do-take': KeyInfo(can_disable=True),
|
||||||
|
'do-where': KeyInfo(can_disable=True),
|
||||||
|
},
|
||||||
|
),
|
||||||
('routing', 'ospf', 'instance'): APIData(
|
('routing', 'ospf', 'instance'): APIData(
|
||||||
fully_understood=True,
|
fully_understood=True,
|
||||||
primary_keys=('name', ),
|
primary_keys=('name', ),
|
||||||
|
|
|
@ -149,6 +149,8 @@ options:
|
||||||
- queue tree
|
- queue tree
|
||||||
- radius incoming
|
- radius incoming
|
||||||
- routing bgp instance
|
- routing bgp instance
|
||||||
|
- routing filter rule
|
||||||
|
- routing filter select-rule
|
||||||
- routing mme
|
- routing mme
|
||||||
- routing ospf area
|
- routing ospf area
|
||||||
- routing ospf area range
|
- routing ospf area range
|
||||||
|
|
|
@ -154,6 +154,8 @@ options:
|
||||||
- queue tree
|
- queue tree
|
||||||
- radius incoming
|
- radius incoming
|
||||||
- routing bgp instance
|
- routing bgp instance
|
||||||
|
- routing filter rule
|
||||||
|
- routing filter select-rule
|
||||||
- routing mme
|
- routing mme
|
||||||
- routing ospf area
|
- routing ospf area
|
||||||
- routing ospf area range
|
- routing ospf area range
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue