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:
hansmi 2023-08-20 14:19:11 +02:00 committed by GitHub
parent 2164261e09
commit 343c4883c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 0 deletions

View 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).

View file

@ -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', ),

View file

@ -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

View file

@ -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