Skip to content

Commit c6df4b0

Browse files
[smart-switch][dpu] Do not run dhclient on the eth0 interface. (#21062)
[smart-switch][dpu] Do not run dhclient on the eth0 interface.
1 parent c715dff commit c6df4b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

files/image_config/interfaces/interfaces.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ iface {{ name }} {{ 'inet' if prefix | ipv4 else 'inet6' }} static
131131
{# TODO: COPP policy type rules #}
132132
{% endfor %}
133133
{% else %}
134+
{% if not (DEVICE_METADATA['localhost']['subtype'] == 'SmartSwitch' and DEVICE_METADATA['localhost']['switch_type'] == 'dpu') %}
134135
auto eth0
135136
iface eth0 inet dhcp
136137
metric 202
@@ -142,6 +143,7 @@ iface eth0 inet6 dhcp
142143
down sysctl net.ipv6.conf.eth0.accept_ra=0
143144
{% endif %}
144145
{% endif %}
146+
{% endif %}
145147
#
146148
source /etc/network/interfaces.d/*
147149
#

0 commit comments

Comments
 (0)