diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-25 08:58:56 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-12-25 09:15:38 +0100 |
commit | a9201e77110ce0695e2ba879304aef41b7ac9a0c (patch) | |
tree | 4707cae8354a714773482b394a7669933ca98c6f /src/conf_mode/lldp.py | |
parent | 2490f22408ad811ff9f63ec970d0167ecbf4ab59 (diff) | |
download | vyos-1x-a9201e77110ce0695e2ba879304aef41b7ac9a0c.tar.gz vyos-1x-a9201e77110ce0695e2ba879304aef41b7ac9a0c.zip |
snmp: T5855: migrate "set service lldp snmp enable" to "set service lldp snmp"
Diffstat (limited to 'src/conf_mode/lldp.py')
-rwxr-xr-x | src/conf_mode/lldp.py | 5 |
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) - |