Skip to content

Commit

Permalink
Add RouterOS 6.x support for '/routing filter' path
Browse files Browse the repository at this point in the history
  • Loading branch information
vint2k committed Apr 16, 2024
1 parent 8351bff commit f5c1825
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
67 changes: 67 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,73 @@ def join_path(path):
},
),
),
('routing', 'filter'): APIData(
versioned=[
('7', '<', VersionedAPIData(
fully_understood=True,
fields={
'action': KeyInfo(default='passthrough'),
'address-family': KeyInfo(can_disable=True),
'append-bgp-communities': KeyInfo(can_disable=True),
'append-route-targets': KeyInfo(can_disable=True),
'bgp-as-path': KeyInfo(can_disable=True),
'bgp-as-path-length': KeyInfo(can_disable=True),
'bgp-atomic-aggregate': KeyInfo(can_disable=True),
'bgp-communities': KeyInfo(can_disable=True),
'bgp-local-pref': KeyInfo(can_disable=True),
'bgp-med': KeyInfo(can_disable=True),
'bgp-origin': KeyInfo(can_disable=True),
'bgp-weight': KeyInfo(can_disable=True),
'chain': KeyInfo(required=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'distance': KeyInfo(can_disable=True),
'invert-match': KeyInfo(default=False),
'jump-target': KeyInfo(),
'locally-originated-bgp': KeyInfo(can_disable=True),
'match-chain': KeyInfo(can_disable=True),
'ospf-type': KeyInfo(can_disable=True),
'pref-src': KeyInfo(can_disable=True),
'prefix': KeyInfo(default='0.0.0.0/0'),
'prefix-length': KeyInfo(can_disable=True),
'protocol': KeyInfo(can_disable=True),
'route-comment': KeyInfo(can_disable=True),
'route-tag': KeyInfo(can_disable=True),
'route-targets': KeyInfo(can_disable=True),
'routing-mark': KeyInfo(can_disable=True),
'scope': KeyInfo(can_disable=True),
'set-bgp-communities': KeyInfo(can_disable=True),
'set-bgp-local-pref': KeyInfo(can_disable=True),
'set-bgp-med': KeyInfo(can_disable=True),
'set-bgp-prepend': KeyInfo(can_disable=True),
'set-bgp-prepend-path': KeyInfo(),
'set-bgp-weight': KeyInfo(can_disable=True),
'set-check-gateway': KeyInfo(can_disable=True),
'set-disabled': KeyInfo(can_disable=True),
'set-distance': KeyInfo(can_disable=True),
'set-in-nexthop': KeyInfo(can_disable=True),
'set-in-nexthop-direct': KeyInfo(can_disable=True),
'set-in-nexthop-ipv6': KeyInfo(can_disable=True),
'set-in-nexthop-linklocal': KeyInfo(can_disable=True),
'set-out-nexthop': KeyInfo(can_disable=True),
'set-out-nexthop-ipv6': KeyInfo(can_disable=True),
'set-out-nexthop-linklocal': KeyInfo(can_disable=True),
'set-pref-src': KeyInfo(can_disable=True),
'set-route-comment': KeyInfo(can_disable=True),
'set-route-tag': KeyInfo(can_disable=True),
'set-route-targets': KeyInfo(can_disable=True),
'set-routing-mark': KeyInfo(can_disable=True),
'set-scope': KeyInfo(can_disable=True),
'set-site-of-origin': KeyInfo(can_disable=True),
'set-target-scope': KeyInfo(can_disable=True),
'set-type': KeyInfo(can_disable=True),
'set-use-te-nexthop': KeyInfo(can_disable=True),
'site-of-origin': KeyInfo(can_disable=True),
'target-scope': KeyInfo(can_disable=True),
},
)),
],
),
('routing', 'filter', 'rule'): 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 @@ -186,6 +186,7 @@
- routing bgp connection
- routing bgp instance
- routing bgp template
- routing filter
- routing filter rule
- routing filter select-rule
- routing id
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 @@ -195,6 +195,7 @@
- routing bgp connection
- routing bgp instance
- routing bgp template
- routing filter
- routing filter rule
- routing filter select-rule
- routing id
Expand Down

0 comments on commit f5c1825

Please sign in to comment.