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:
phox142 2023-03-11 18:17:26 +01:00 committed by GitHub
parent 720debb323
commit 071f742100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 13 deletions

View file

@ -748,20 +748,20 @@ PATHS = {
},
),
('snmp', 'community'): APIData(
unknown_mechanism=True,
# primary_keys=('default', ),
fully_understood=True,
primary_keys=('name', ),
fields={
'default': KeyInfo(),
'addresses': KeyInfo(),
'authentication-password': KeyInfo(),
'authentication-protocol': KeyInfo(),
'disabled': KeyInfo(),
'encryption-password': KeyInfo(),
'encryption-protocol': KeyInfo(),
'name': KeyInfo(),
'read-access': KeyInfo(),
'security': KeyInfo(),
'write-access': KeyInfo(),
'addresses': KeyInfo(default='::/0'),
'authentication-password': KeyInfo(default=''),
'authentication-protocol': KeyInfo(default='MD5'),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'encryption-password': KeyInfo(default=''),
'encryption-protocol': KeyInfo(default='DES'),
'name': KeyInfo(required=True),
'read-access': KeyInfo(default=True),
'security': KeyInfo(default='none'),
'write-access': KeyInfo(default=False),
},
),
('caps-man', 'aaa'): APIData(
@ -2286,6 +2286,7 @@ PATHS = {
'trap-generators': KeyInfo(default='temp-exception'),
'trap-target': KeyInfo(default=''),
'trap-version': KeyInfo(default=1),
'trap-interfaces': KeyInfo(default=''),
},
),
('system', 'clock'): APIData(