summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/lldp.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/conf_mode/lldp.py b/src/conf_mode/lldp.py
index 15c0f7812..be7880c55 100755
--- a/src/conf_mode/lldp.py
+++ b/src/conf_mode/lldp.py
@@ -41,6 +41,13 @@ configure system description "VyOS {{ options.description }}"
configure system interface pattern "{{ options.listen_on | join(",") }}"
{% endif %}
+{% for loc in location %}
+{%- if loc.elin %}
+configure ports {{ loc.name }} med location elin "{{ loc.elin }}"
+{%- endif %}
+{% endfor %}
+
+
"""
default_config_data = {
@@ -99,7 +106,7 @@ def get_location_intf(config, name):
config.set_level('{} location'.format(path))
civic_based = {}
- elin = None
+ elin = ''
coordinate_based = {}
if config.exists('civic-based'):