mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-24 18:58:41 +02:00
Fix snmp path's engine-id/engine-id-suffix for ROS 7.10+. (#218)
This commit is contained in:
parent
170240480c
commit
dc110500db
2 changed files with 7 additions and 2 deletions
2
changelogs/fragments/218-snmp-engine-id.yml
Normal file
2
changelogs/fragments/218-snmp-engine-id.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "api_info, api_modify - in the ``snmp`` path, ensure that ``engine-id-suffix`` is only available on RouterOS 7.10+, and that ``engine-id`` is read-only on RouterOS 7.10+ (https://github.com/ansible-collections/community.routeros/issues/208, https://github.com/ansible-collections/community.routeros/pull/218)."
|
|
@ -2920,8 +2920,6 @@ PATHS = {
|
||||||
fields={
|
fields={
|
||||||
'contact': KeyInfo(default=''),
|
'contact': KeyInfo(default=''),
|
||||||
'enabled': KeyInfo(default=False),
|
'enabled': KeyInfo(default=False),
|
||||||
'engine-id': KeyInfo(default=''),
|
|
||||||
'engine-id-suffix': KeyInfo(default=''),
|
|
||||||
'location': KeyInfo(default=''),
|
'location': KeyInfo(default=''),
|
||||||
'src-address': KeyInfo(default='::'),
|
'src-address': KeyInfo(default='::'),
|
||||||
'trap-community': KeyInfo(default='public'),
|
'trap-community': KeyInfo(default='public'),
|
||||||
|
@ -2930,6 +2928,11 @@ PATHS = {
|
||||||
'trap-version': KeyInfo(default=1),
|
'trap-version': KeyInfo(default=1),
|
||||||
'trap-interfaces': KeyInfo(default=''),
|
'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(
|
('system', 'clock'): APIData(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue