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

@ -591,6 +591,30 @@ PATHS = {
'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(
fully_understood=True,
primary_keys=('name', ),