mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-30 13:24:36 +02:00
system logging API paths (#127)
* api path support: system logging action Signed-off-by: Tomas Herfert <herfik> * api path support: system logging Signed-off-by: Tomas Herfert <herfik> * docs & changelog Signed-off-by: Tomas Herfert <herfik> * typo fix Signed-off-by: Tomas Herfert <herfik> Signed-off-by: Tomas Herfert <herfik> Co-authored-by: Tomas Herfert <herfik>
This commit is contained in:
parent
60427fff5e
commit
29247faaa3
4 changed files with 32 additions and 21 deletions
3
changelogs/fragments/127-logging.yml
Normal file
3
changelogs/fragments/127-logging.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_modify, api_info - support API paths ``system logging``, ``system logging action``
|
||||||
|
(https://github.com/ansible-collections/community.routeros/pull/127).
|
|
@ -2059,24 +2059,28 @@ PATHS = {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('system', 'logging', 'action'): APIData(
|
('system', 'logging', 'action'): APIData(
|
||||||
has_identifier=True,
|
fully_understood=True,
|
||||||
|
primary_keys=('name',),
|
||||||
fields={
|
fields={
|
||||||
'bsd-syslog': KeyInfo(),
|
'bsd-syslog': KeyInfo(default=False),
|
||||||
'disk-file-count': KeyInfo(),
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
'disk-file-name': KeyInfo(),
|
'disk-file-count': KeyInfo(default=2),
|
||||||
'disk-lines-per-file': KeyInfo(),
|
'disk-file-name': KeyInfo(default='log'),
|
||||||
'disk-stop-on-full': KeyInfo(),
|
'disk-lines-per-file': KeyInfo(default=1000),
|
||||||
'memory-lines': KeyInfo(),
|
'disk-stop-on-full': KeyInfo(default=False),
|
||||||
'memory-stop-on-full': KeyInfo(),
|
'email-start-tls': KeyInfo(default=False),
|
||||||
|
'email-to': KeyInfo(default=''),
|
||||||
|
'memory-lines': KeyInfo(default=1000),
|
||||||
|
'memory-stop-on-full': KeyInfo(default=False),
|
||||||
'name': KeyInfo(),
|
'name': KeyInfo(),
|
||||||
'remember': KeyInfo(),
|
'remember': KeyInfo(default=True),
|
||||||
'remote': KeyInfo(),
|
'remote': KeyInfo(default='0.0.0.0'),
|
||||||
'remote-port': KeyInfo(),
|
'remote-port': KeyInfo(default=514),
|
||||||
'src-address': KeyInfo(),
|
'src-address': KeyInfo(default='0.0.0.0'),
|
||||||
'syslog-facility': KeyInfo(),
|
'syslog-facility': KeyInfo(default='daemon'),
|
||||||
'syslog-severity': KeyInfo(),
|
'syslog-severity': KeyInfo(default='auto'),
|
||||||
'syslog-time-format': KeyInfo(),
|
'syslog-time-format': KeyInfo(default='bsd-syslog'),
|
||||||
'target': KeyInfo(),
|
'target': KeyInfo(required=True),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('user', 'group'): APIData(
|
('user', 'group'): APIData(
|
||||||
|
@ -2148,12 +2152,12 @@ PATHS = {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('system', 'logging'): APIData(
|
('system', 'logging'): APIData(
|
||||||
has_identifier=True,
|
fully_understood=True,
|
||||||
fields={
|
fields={
|
||||||
'action': KeyInfo(),
|
'action': KeyInfo(default='memory'),
|
||||||
'disabled': KeyInfo(),
|
'disabled': KeyInfo(default=False),
|
||||||
'prefix': KeyInfo(),
|
'prefix': KeyInfo(default=''),
|
||||||
'topics': KeyInfo(),
|
'topics': KeyInfo(default=''),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('system', 'resource', 'irq'): APIData(
|
('system', 'resource', 'irq'): APIData(
|
||||||
|
|
|
@ -127,6 +127,8 @@ options:
|
||||||
- system clock manual
|
- system clock manual
|
||||||
- system identity
|
- system identity
|
||||||
- system leds settings
|
- system leds settings
|
||||||
|
- system logging
|
||||||
|
- system logging action
|
||||||
- system note
|
- system note
|
||||||
- system ntp client
|
- system ntp client
|
||||||
- system ntp client servers
|
- system ntp client servers
|
||||||
|
|
|
@ -132,6 +132,8 @@ options:
|
||||||
- system clock manual
|
- system clock manual
|
||||||
- system identity
|
- system identity
|
||||||
- system leds settings
|
- system leds settings
|
||||||
|
- system logging
|
||||||
|
- system logging action
|
||||||
- system note
|
- system note
|
||||||
- system ntp client
|
- system ntp client
|
||||||
- system ntp client servers
|
- system ntp client servers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue