Add RouterOS 6.x support for '/ip route rule' path (#278)

* Add RouterOS 6.x support for '/ip route rule' path

* add changelogs fragments
This commit is contained in:
Igor 2024-04-18 14:29:58 +04:00 committed by GitHub
parent 018125ddfa
commit 9d34cca66b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add ``/ip route rule`` path for RouterOS 6.x (https://github.com/ansible-collections/community.routeros/pull/278).

View file

@ -729,6 +729,23 @@ PATHS = {
}, },
), ),
), ),
('ip', 'route', 'rule'): APIData(
versioned=[
('7', '<', VersionedAPIData(
fully_understood=True,
fields={
'action': KeyInfo(default='lookup'),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'dst-address': KeyInfo(can_disable=True),
'interface': KeyInfo(can_disable=True),
'routing-mark': KeyInfo(can_disable=True),
'src-address': KeyInfo(can_disable=True),
'table': KeyInfo(default='main'),
},
)),
],
),
('ip', 'vrf'): APIData( ('ip', 'vrf'): APIData(
versioned=[ versioned=[
('7', '>=', VersionedAPIData( ('7', '>=', VersionedAPIData(

View file

@ -149,6 +149,7 @@ options:
- ip pool - ip pool
- ip proxy - ip proxy
- ip route - ip route
- ip route rule
- ip route vrf - ip route vrf
- ip service - ip service
- ip settings - ip settings

View file

@ -158,6 +158,7 @@ options:
- ip pool - ip pool
- ip proxy - ip proxy
- ip route - ip route
- ip route rule
- ip route vrf - ip route vrf
- ip service - ip service
- ip settings - ip settings