Skip to content

Commit

Permalink
Disable LLDP agent on Server VM XL710 NICs
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Capdevila <[email protected]>
  • Loading branch information
pau-hedgehog authored and Frostman committed Jan 8, 2025
1 parent 0b08b37 commit 4fee74c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/hhfab/vlab_butane.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ systemd:
- name: locksmithd.service
mask: true

- name: disable-nic-lldp-agent.service
enabled: true
contents: |
[Unit]
Description=Disable LLDP on i40e Devices
After=network.target
[Service]
ExecStart=/var/lib/scripts/disable_nic_lldp_agent.sh
Type=oneshot
[Install]
WantedBy=multi-user.target
storage:
files:
- path: /etc/flatcar/update.conf
Expand Down Expand Up @@ -69,3 +83,14 @@ storage:
DHCP=yes
LLDP=yes
EmitLLDP=yes
- path: /var/lib/scripts/disable_nic_lldp_agent.sh
mode: 0755
contents:
inline: |
#!/bin/bash
for device in /sys/kernel/debug/i40e/*; do
if [ -d "$device" ] && [ -w "$device/command" ]; then
echo 'lldp stop' > "$device/command"
fi
done

0 comments on commit 4fee74c

Please sign in to comment.