mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-10 10:14:38 +02:00
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:
parent
1e36dfa2d0
commit
558eb501d2
4 changed files with 32 additions and 0 deletions
3
changelogs/fragments/123-api.yml
Normal file
3
changelogs/fragments/123-api.yml
Normal 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).
|
|
@ -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', ),
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue