diff --git a/playbook_provision_gateway.yml b/playbook_provision_gateway.yml index b555e7e..ce0875e 100644 --- a/playbook_provision_gateway.yml +++ b/playbook_provision_gateway.yml @@ -38,6 +38,11 @@ notify: - restart frr + - name: install lldpd + opkg: + name: lldpd + update_cache: yes + handlers: - name: reload dhcp service: @@ -69,6 +74,11 @@ name: frr state: restarted + - name: reload lldpd + service: + name: lldpd + state: reloaded + - name: custom changes for ffl-ans-gw-core01 (offloader vm, ...) hosts: ffl-ans-gw-core01 tasks: diff --git a/templates/gateways/ffl-ans-gw-core01/etc/config/lldpd b/templates/gateways/ffl-ans-gw-core01/etc/config/lldpd new file mode 100644 index 0000000..0582ebd --- /dev/null +++ b/templates/gateways/ffl-ans-gw-core01/etc/config/lldpd @@ -0,0 +1,16 @@ +config lldpd config + option enable_cdp 0 + option enable_fdp 0 + option enable_sonmp 0 + option enable_edp 0 + + + option lldp_class 4 + option lldp_mgmt_ip "{{ ip }}" + option lldp_location "" + + list interface "loopback" + list interface "eth0" + list interface "eth1" + list interface "eth2" + list interface "eth3" diff --git a/templates/gateways/gw-core01/etc/config/lldpd b/templates/gateways/gw-core01/etc/config/lldpd new file mode 100644 index 0000000..8f89bf6 --- /dev/null +++ b/templates/gateways/gw-core01/etc/config/lldpd @@ -0,0 +1,20 @@ +config lldpd config + option enable_cdp 0 + option enable_fdp 0 + option enable_sonmp 0 + option enable_edp 0 + + + option lldp_class 4 + option lldp_mgmt_ip "{{ ip }}" + option lldp_location "" + + list interface "loopback" + list interface "eth0" + list interface "eth1" + list interface "eth2" + list interface "eth3" + list interface "eth4" + list interface "eth5" + list interface "eth6" + list interface "eth7"