summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-30 21:18:43 +0100
committerChristian Poessinger <christian@poessinger.com>2020-01-30 21:20:35 +0100
commit28375713bbe79de38261888b696ad5e57d773d58 (patch)
tree131b182f6218841e2982d9010f16df932ad6b5d7 /src/conf_mode
parentc291d18377eb6eea6693050c338b0392e1297e74 (diff)
downloadvyos-1x-28375713bbe79de38261888b696ad5e57d773d58.tar.gz
vyos-1x-28375713bbe79de38261888b696ad5e57d773d58.zip
lldp: T1896: bugfix SyntaxError: invalid syntax
Commit 66f8be0 ("lldp: T1896: remove MED civic based location information") removed MED civic location support, but there was an error in an if/elif statement. This has been fixes. File "/usr/libexec/vyos/conf_mode/lldp.py", line 191 elif len(location['coordinate_based']) > 0: ^ SyntaxError: invalid syntax
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/lldp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/lldp.py b/src/conf_mode/lldp.py
index 26a653ec0..b664d9eba 100755
--- a/src/conf_mode/lldp.py
+++ b/src/conf_mode/lldp.py
@@ -188,7 +188,7 @@ def verify(lldp):
# check location
for location in lldp['location']:
# check coordinate-based
- elif len(location['coordinate_based']) > 0:
+ if len(location['coordinate_based']) > 0:
# check longitude and latitude
if not location['coordinate_based']['longitude']:
raise ConfigError('Must define longitude for interface {0}'.format(location['name']))