Fix snmp path's engine-id/engine-id-suffix for ROS 7.10+. (#218)

This commit is contained in:
Felix Fontein 2023-09-19 18:02:26 +02:00 committed by GitHub
parent 170240480c
commit dc110500db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -2920,8 +2920,6 @@ PATHS = {
fields={
'contact': KeyInfo(default=''),
'enabled': KeyInfo(default=False),
'engine-id': KeyInfo(default=''),
'engine-id-suffix': KeyInfo(default=''),
'location': KeyInfo(default=''),
'src-address': KeyInfo(default='::'),
'trap-community': KeyInfo(default='public'),
@ -2930,6 +2928,11 @@ PATHS = {
'trap-version': KeyInfo(default=1),
'trap-interfaces': KeyInfo(default=''),
},
versioned_fields=[
([('7.10', '<')], 'engine-id', KeyInfo(default='')),
([('7.10', '>=')], 'engine-id', KeyInfo(read_only=True)),
([('7.10', '>=')], 'engine-id-suffix', KeyInfo(default='')),
],
),
),
('system', 'clock'): APIData(