summaryrefslogtreecommitdiff
path: root/src/conf_mode/lldp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-25 11:11:08 +0100
committerGitHub <noreply@github.com>2023-12-25 11:11:08 +0100
commit7f16fffe0afc76fa780f5044d06dfc754332860e (patch)
treea764448c31a4b0a15ecb488331bca6c8c30d4b5e /src/conf_mode/lldp.py
parentb1a35b8ae02c7a72ee29bf3e1595fedf254479ee (diff)
parent1902f252c4c270cf7981fecd486e293ec2182fd9 (diff)
downloadvyos-1x-7f16fffe0afc76fa780f5044d06dfc754332860e.tar.gz
vyos-1x-7f16fffe0afc76fa780f5044d06dfc754332860e.zip
Merge pull request #2688 from vyos/mergify/bp/sagitta/pr-2687
snmp: T5855: migrate "set service lldp snmp enable" to "set service lldp snmp" (backport #2687)
Diffstat (limited to 'src/conf_mode/lldp.py')
-rwxr-xr-xsrc/conf_mode/lldp.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf_mode/lldp.py b/src/conf_mode/lldp.py
index c2e87d171..3c647a0e8 100755
--- a/src/conf_mode/lldp.py
+++ b/src/conf_mode/lldp.py
@@ -86,9 +86,9 @@ def verify(lldp):
raise ConfigError(f'Must define both longitude and latitude for "{interface}" location!')
# check options
- if 'snmp' in lldp and 'enable' in lldp['snmp']:
+ if 'snmp' in lldp:
if 'system_snmp_enabled' not in lldp:
- raise ConfigError('SNMP must be configured to enable LLDP SNMP')
+ raise ConfigError('SNMP must be configured to enable LLDP SNMP!')
def generate(lldp):
@@ -121,4 +121,3 @@ if __name__ == '__main__':
except ConfigError as e:
print(e)
exit(1)
-