Skip to content

Commit

Permalink
[frr]: add a section to check and create sr0 dummy interface (Azure#517)
Browse files Browse the repository at this point in the history
Create the interface for SRv6 static sids to work.

Compile the image and test or replace an existing docker_init.sh in a running SONiC switch
  • Loading branch information
BYGX-wcr authored Jan 14, 2025
1 parent 99ca753 commit 927297f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dockers/docker-fpm-frr/docker_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ fi

chown -R frr:frr /etc/frr/

if ! ip link show sr0 > /dev/null 2>&1; then
echo "Interface sr0 does not exist. Creating sr0..."
ip link add sr0 type dummy
else
echo "Interface sr0 already exists."
fi
ip link set sr0 up

chown root:root /usr/sbin/bgp-isolate
chmod 0755 /usr/sbin/bgp-isolate

Expand Down

0 comments on commit 927297f

Please sign in to comment.