mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-23 02:08:47 +02:00
adding "system ntp *" paths related to ROS7 (#122)
* adding "system ntp *" paths related to ROS7 Signed-off-by: Tomas Herfert <herfik> * changelog Signed-off-by: Tomas Herfert <herfik> * docs Signed-off-by: Tomas Herfert <herfik> * typo Signed-off-by: Tomas Herfert <herfik> * sanity fix Signed-off-by: Tomas Herfert <herfik> * setting the correct defaults Signed-off-by: Tomas Herfert <herfik> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * typo Signed-off-by: Tomas Herfert <herfik> Co-authored-by: Tomas Herfert <herfik> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c2e58c3ae4
commit
1e36dfa2d0
4 changed files with 39 additions and 0 deletions
4
changelogs/fragments/122-api.yml
Normal file
4
changelogs/fragments/122-api.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_modify, api_info - support paths ``system ntp client servers`` and ``system ntp server`` available in ROS7,
|
||||||
|
as well as new fields ``servers``, ``mode``, and ``vrf`` for ``system ntp client``
|
||||||
|
(https://github.com/ansible-collections/community.routeros/pull/122).
|
|
@ -1487,6 +1487,37 @@ PATHS = {
|
||||||
'primary-ntp': KeyInfo(default='0.0.0.0'),
|
'primary-ntp': KeyInfo(default='0.0.0.0'),
|
||||||
'secondary-ntp': KeyInfo(default='0.0.0.0'),
|
'secondary-ntp': KeyInfo(default='0.0.0.0'),
|
||||||
'server-dns-names': KeyInfo(default=''),
|
'server-dns-names': KeyInfo(default=''),
|
||||||
|
'servers': KeyInfo(default=''),
|
||||||
|
'mode': KeyInfo(default='unicast'),
|
||||||
|
'vrf': KeyInfo(default='main'),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
('system', 'ntp', 'client', 'servers'): APIData(
|
||||||
|
primary_keys=('address', ),
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'address': KeyInfo(),
|
||||||
|
'auth-key': KeyInfo(default='none'),
|
||||||
|
'iburst': KeyInfo(default=True),
|
||||||
|
'max-poll': KeyInfo(default=10),
|
||||||
|
'min-poll': KeyInfo(default=6),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
('system', 'ntp', 'server'): APIData(
|
||||||
|
single_value=True,
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'auth-key': KeyInfo(default='none'),
|
||||||
|
'broadcast': KeyInfo(default=False),
|
||||||
|
'broadcast-addresses': KeyInfo(default=''),
|
||||||
|
'enabled': KeyInfo(default=False),
|
||||||
|
'local-clock-stratum': KeyInfo(default=5),
|
||||||
|
'manycast': KeyInfo(default=False),
|
||||||
|
'multicast': KeyInfo(default=False),
|
||||||
|
'use-local-clock': KeyInfo(default=False),
|
||||||
|
'vrf': KeyInfo(default='main'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('system', 'package', 'update'): APIData(
|
('system', 'package', 'update'): APIData(
|
||||||
|
|
|
@ -117,6 +117,8 @@ options:
|
||||||
- system leds settings
|
- system leds settings
|
||||||
- system note
|
- system note
|
||||||
- system ntp client
|
- system ntp client
|
||||||
|
- system ntp client servers
|
||||||
|
- system ntp server
|
||||||
- system package update
|
- system package update
|
||||||
- system routerboard settings
|
- system routerboard settings
|
||||||
- system upgrade mirror
|
- system upgrade mirror
|
||||||
|
|
|
@ -122,6 +122,8 @@ options:
|
||||||
- system leds settings
|
- system leds settings
|
||||||
- system note
|
- system note
|
||||||
- system ntp client
|
- system ntp client
|
||||||
|
- system ntp client servers
|
||||||
|
- system ntp server
|
||||||
- system package update
|
- system package update
|
||||||
- system routerboard settings
|
- system routerboard settings
|
||||||
- system upgrade mirror
|
- system upgrade mirror
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue