From 28375713bbe79de38261888b696ad5e57d773d58 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 30 Jan 2020 21:18:43 +0100 Subject: 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 --- src/conf_mode/lldp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode') 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'])) -- cgit v1.2.3