Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dockers/docker-lldp/lldpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
{% if mgmt_if.update({'port_name' : mgmt_name}) %} {% endif %}
{% if mgmt_if.update({'ipv4' : mgmt_prefix|ip}) %} {% endif %}
{% endif %}
{% if mgmt_prefix|ipv6 and (mgmt_if.ipv4 is not defined) %}
{% if mgmt_if.update({'port_name' : mgmt_name}) %} {% endif %}
{% if mgmt_if.update({'ipv6' : mgmt_prefix|ip}) %} {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if mgmt_if %}
Expand All @@ -16,7 +20,11 @@ configure ports eth0 lldp portidsubtype local {{ MGMT_PORT[mgmt_if.port_name].al
configure ports eth0 lldp portidsubtype local {{ mgmt_if.port_name }}
{% endif %}
{% endif %}
{% if mgmt_if.ipv4 %}
configure system ip management pattern {{ mgmt_if.ipv4 }}
{% elif mgmt_if.ipv6 %}
configure system ip management pattern {{ mgmt_if.ipv6 }}
{% endif %}
{% endif %}
configure system hostname {{ DEVICE_METADATA['localhost']['hostname'] }}
{# pause lldpd operations until all interfaces are well configured, resume command will run in lldpmgrd #}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configure ports eth0 lldp portidsubtype local eth0
configure system ip management pattern 2603:10e2:0:2902::8
configure system hostname switch-t0
pause
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configure ports eth0 lldp portidsubtype local eth0
configure system ip management pattern 2603:10e2:0:2902::8
configure system hostname switch-t0
pause
Loading