mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-24 10:48:49 +02:00
Adapt SNMP support (#159)
* snmp support * Add changelog fragment * Update changelogs/fragments/159-snmp_community.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/159-snmp_community.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
720debb323
commit
071f742100
4 changed files with 19 additions and 13 deletions
3
changelogs/fragments/159-snmp_community.yml
Normal file
3
changelogs/fragments/159-snmp_community.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_modify - add support for ``trap-interfaces`` in API path ``snmp`` (https://github.com/ansible-collections/community.routeros/pull/159).
|
||||||
|
- api_modify - add support for API path ``snmp community`` (https://github.com/ansible-collections/community.routeros/pull/159).
|
|
@ -748,20 +748,20 @@ PATHS = {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('snmp', 'community'): APIData(
|
('snmp', 'community'): APIData(
|
||||||
unknown_mechanism=True,
|
fully_understood=True,
|
||||||
# primary_keys=('default', ),
|
primary_keys=('name', ),
|
||||||
fields={
|
fields={
|
||||||
'default': KeyInfo(),
|
'addresses': KeyInfo(default='::/0'),
|
||||||
'addresses': KeyInfo(),
|
'authentication-password': KeyInfo(default=''),
|
||||||
'authentication-password': KeyInfo(),
|
'authentication-protocol': KeyInfo(default='MD5'),
|
||||||
'authentication-protocol': KeyInfo(),
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
'disabled': KeyInfo(),
|
'disabled': KeyInfo(default=False),
|
||||||
'encryption-password': KeyInfo(),
|
'encryption-password': KeyInfo(default=''),
|
||||||
'encryption-protocol': KeyInfo(),
|
'encryption-protocol': KeyInfo(default='DES'),
|
||||||
'name': KeyInfo(),
|
'name': KeyInfo(required=True),
|
||||||
'read-access': KeyInfo(),
|
'read-access': KeyInfo(default=True),
|
||||||
'security': KeyInfo(),
|
'security': KeyInfo(default='none'),
|
||||||
'write-access': KeyInfo(),
|
'write-access': KeyInfo(default=False),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('caps-man', 'aaa'): APIData(
|
('caps-man', 'aaa'): APIData(
|
||||||
|
@ -2286,6 +2286,7 @@ PATHS = {
|
||||||
'trap-generators': KeyInfo(default='temp-exception'),
|
'trap-generators': KeyInfo(default='temp-exception'),
|
||||||
'trap-target': KeyInfo(default=''),
|
'trap-target': KeyInfo(default=''),
|
||||||
'trap-version': KeyInfo(default=1),
|
'trap-version': KeyInfo(default=1),
|
||||||
|
'trap-interfaces': KeyInfo(default=''),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
('system', 'clock'): APIData(
|
('system', 'clock'): APIData(
|
||||||
|
|
|
@ -154,6 +154,7 @@ options:
|
||||||
- routing rip
|
- routing rip
|
||||||
- routing ripng
|
- routing ripng
|
||||||
- snmp
|
- snmp
|
||||||
|
- snmp community
|
||||||
- system clock
|
- system clock
|
||||||
- system clock manual
|
- system clock manual
|
||||||
- system identity
|
- system identity
|
||||||
|
|
|
@ -159,6 +159,7 @@ options:
|
||||||
- routing rip
|
- routing rip
|
||||||
- routing ripng
|
- routing ripng
|
||||||
- snmp
|
- snmp
|
||||||
|
- snmp community
|
||||||
- system clock
|
- system clock
|
||||||
- system clock manual
|
- system clock manual
|
||||||
- system identity
|
- system identity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue