-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[SmartSwitch] DPU Management Traffic Forwarding script #19431
Conversation
fi | ||
} | ||
|
||
mgmt_iface=eth0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is mgmt_iface eth0 common for all vendor SKUs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes in SONiC all vendors use eth0
as the management interface
|
||
command_name=$0 | ||
|
||
usage(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the trigger to execute this script with enable/disable option? Is this part of pmon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no trigger for this script, this is just a utility script which would be helpful for enabling DPU traffic to reach the internet in cases where connectivity is required, Example Usage:
SONiC to SONiC upgrade on the dpu can be performed easily if we enable DPU management traffic forwarding using this script, as the DPU can download the image directly, instead of first transferring the image to switch and then to DPU
[SmartSwitch] DPU Management Traffic Forwarding script
Why I did it
This script is added in order to enable or disable the management traffic generated from DPUs to be forwarded through the smartswitch. When we enable the traffic the following actions are taken:
bridge-midplane
interface) to the management port on the switch -eth0
eth0
to the DPU (connected to thebridge-midplane
interface) for established or related connectionsThe opposite actions are taken when we disable the traffic
Work item tracking
How I did it
Wrote script
dpu-mgmt-traffic.sh
which will be present in the switch image, this script can be used to enable/disable the DPU management traffic forwardingHow to verify it
The following commands can be executed on the smart switch:
dpu-mgmt-traffic.sh --enable
dpu-mgmt-traffic.sh --disable
dpu-mgmt-traffic.sh -d
dpu-mgmt-traffic.sh -e
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)