From dc77399121c38dd6cc62ff06a37c218b8323724d Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Tue, 10 Dec 2024 14:35:33 -0800 Subject: [PATCH] [smart-switch][dpu] Do not run dhclient on the eth0 interface. (#21062) [smart-switch][dpu] Do not run dhclient on the eth0 interface. --- files/image_config/interfaces/interfaces.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/image_config/interfaces/interfaces.j2 b/files/image_config/interfaces/interfaces.j2 index cfdd322c4543..ea04fa80e931 100644 --- a/files/image_config/interfaces/interfaces.j2 +++ b/files/image_config/interfaces/interfaces.j2 @@ -131,6 +131,7 @@ iface {{ name }} {{ 'inet' if prefix | ipv4 else 'inet6' }} static {# TODO: COPP policy type rules #} {% endfor %} {% else %} +{% if not (DEVICE_METADATA['localhost']['subtype'] == 'SmartSwitch' and DEVICE_METADATA['localhost']['switch_type'] == 'dpu') %} auto eth0 iface eth0 inet dhcp metric 202 @@ -142,6 +143,7 @@ iface eth0 inet6 dhcp down sysctl net.ipv6.conf.eth0.accept_ra=0 {% endif %} {% endif %} +{% endif %} # source /etc/network/interfaces.d/* #