Skip to content

Commit

Permalink
[chassisd]: Add alternate to the bridge interface created on chassis …
Browse files Browse the repository at this point in the history
…supervisor. (sonic-net#16505)

Add alternate name eth1-midplane to Linux bridge br1 created on supervisor on some chassis platforms.
See description here: sonic-net#16504

Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi authored and pull[bot] committed May 7, 2024
1 parent 31f5573 commit 3818189
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ function postStartAction()
ip link add name ns-eth1"$NET_NS" type veth peer name eth1@"$NET_NS"
ip link set dev eth1@"$NET_NS" master br1
ip link set dev eth1@"$NET_NS" up
# For chassis system where Linux bridge is used on supervisor for midplane communication
# assign alternate name as eth1-midplane for generic design
ip link property add dev br1 altname eth1-midplane
else
ip link add name ns-eth1"$NET_NS" link eth1-midplane type macvlan mode bridge
fi
Expand Down

0 comments on commit 3818189

Please sign in to comment.