Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nvidia-bluefield] Remove the virtual smart switch leftovers. #21050

Merged
merged 1 commit into from
Dec 11, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@
#

pci_iface=eth0-midplane
cp_iface=Ethernet0
pidfile=/run/dhcl-internal.$cp_iface.pid
leasefile=/var/lib/dhcp/dhcl-internal.$cp_iface.leases

stop_cp_dhclient()
{
if [[ -f $pidfile ]]; then
kill $(cat $pidfile)
rm -f $pidfile
fi
rm -f $leasefile
}

start_cp_dhclient()
{
stop_cp_dhclient

/sbin/dhclient -pf $pidfile -lf $leasefile $cp_iface -nw
}

start()
{
Expand All @@ -46,17 +27,10 @@ start()
if [[ $? != "0" ]]; then
exit 1
fi

hwsku=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]')
if [[ $hwsku == *"-C1" ]]; then
start_cp_dhclient
fi
}

stop()
{
stop_cp_dhclient

/usr/bin/mst stop
rmmod mlx5_ib mlx5_core
}
Expand Down
Loading