Change ip vrf for router OS v7 (#259)

* Update api_info.py

* Update api_modify.py

* Update _api_data.py

* Update _api_data.py

* Update _api_data.py

* Update api_info.py

* Update api_modify.py

* Update api_info.py

* Update api_modify.py

* Create 259-add-routeros7-support-for-ip-vrf.yml

* Update changelogs/fragments/259-add-routeros7-support-for-ip-vrf.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
liquorice-head 2024-02-18 01:49:12 +04:00 committed by GitHub
parent 6f7abfa8bc
commit 10fbc564a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 10 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_modify, api_info - add support for the ``ip vrf`` path in RouterOS 7 (https://github.com/ansible-collections/community.routeros/pull/259)

View file

@ -727,17 +727,33 @@ PATHS = {
}, },
), ),
), ),
('ip', 'vrf'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
primary_keys=('name', ),
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'interfaces': KeyInfo(),
'name': KeyInfo(),
},
)),
]
),
('ip', 'route', 'vrf'): APIData( ('ip', 'route', 'vrf'): APIData(
unversioned=VersionedAPIData( versioned=[
fully_understood=True, ('7', '<', VersionedAPIData(
primary_keys=('routing-mark', ), fully_understood=True,
fields={ primary_keys=('routing-mark', ),
'comment': KeyInfo(can_disable=True, remove_value=''), fields={
'disabled': KeyInfo(default=False), 'comment': KeyInfo(can_disable=True, remove_value=''),
'interfaces': KeyInfo(), 'disabled': KeyInfo(default=False),
'routing-mark': KeyInfo(), 'interfaces': KeyInfo(),
}, 'routing-mark': KeyInfo(),
), },
)),
],
), ),
('ip', 'dhcp-server'): APIData( ('ip', 'dhcp-server'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(

View file

@ -147,6 +147,7 @@ options:
- ip traffic-flow target - ip traffic-flow target
- ip upnp - ip upnp
- ip upnp interfaces - ip upnp interfaces
- ip vrf
- ipv6 address - ipv6 address
- ipv6 dhcp-client - ipv6 dhcp-client
- ipv6 dhcp-server - ipv6 dhcp-server

View file

@ -156,6 +156,7 @@ options:
- ip traffic-flow target - ip traffic-flow target
- ip upnp - ip upnp
- ip upnp interfaces - ip upnp interfaces
- ip vrf
- ipv6 address - ipv6 address
- ipv6 dhcp-client - ipv6 dhcp-client
- ipv6 dhcp-server - ipv6 dhcp-server