Skip to content
Merged
Changes from 2 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
12 changes: 12 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,18 @@ fi

chown -R frr:frr /etc/frr/

# Create sr0 interface for SRv6 support
SONIC_ASIC_TYPE=$(sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type)
if [ "$SONIC_ASIC_TYPE" == "vpp" ]; then
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
fi

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

Expand Down
Loading