Add support for ip route and ip route vrf (#123)

* Add support for ip route and ip route vrf

* Changelog
This commit is contained in:
PhiBo 2022-11-10 21:09:58 +01:00 committed by GitHub
parent 1e36dfa2d0
commit 558eb501d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- api_modify, api_info - support API paths ``ip route`` and ``ip route vrf``
(https://github.com/ansible-collections/community.routeros/pull/123).

View file

@ -298,6 +298,31 @@ PATHS = {
'ranges': KeyInfo(), 'ranges': KeyInfo(),
}, },
), ),
('ip', 'route'): APIData(
fully_understood=True,
fields={
'check-gateway': KeyInfo(can_disable=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'distance': KeyInfo(),
'dst-address': KeyInfo(),
'gateway': KeyInfo(required=True),
'route-tag': KeyInfo(can_disable=True),
'routing-mark': KeyInfo(can_disable=True),
'scope': KeyInfo(),
'target-scope': KeyInfo(),
},
),
('ip', 'route', 'vrf'): APIData(
fully_understood=True,
primary_keys=('routing-mark', ),
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'interfaces': KeyInfo(),
'routing-mark': KeyInfo(),
},
),
('ip', 'dhcp-server'): APIData( ('ip', 'dhcp-server'): APIData(
fully_understood=True, fully_understood=True,
primary_keys=('name', ), primary_keys=('name', ),

View file

@ -86,6 +86,8 @@ options:
- ip neighbor discovery-settings - ip neighbor discovery-settings
- ip pool - ip pool
- ip proxy - ip proxy
- ip route
- ip route vrf
- ip service - ip service
- ip settings - ip settings
- ip smb - ip smb

View file

@ -91,6 +91,8 @@ options:
- ip neighbor discovery-settings - ip neighbor discovery-settings
- ip pool - ip pool
- ip proxy - ip proxy
- ip route
- ip route vrf
- ip service - ip service
- ip settings - ip settings
- ip smb - ip smb