Skip to content
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
15 changes: 6 additions & 9 deletions dockers/docker-fpm-frr/docker_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,13 @@ fi
chown -R frr:frr /etc/frr/

# Create sr0 interface for SRv6 support
SONIC_ASIC_TYPE=$(sed -n 's/^asic_type:[[:space:]]*//p' /etc/sonic/sonic_version.yml)
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 || true
else
echo "Interface sr0 already exists."
fi
ip link set sr0 up || true
if ! ip link show sr0 > /dev/null 2>&1; then
echo "Interface sr0 does not exist. Creating sr0..."
ip link add sr0 type dummy || true
else
echo "Interface sr0 already exists."
fi
ip link set sr0 up || true

chown root:root /usr/sbin/bgp-isolate
chmod 0755 /usr/sbin/bgp-isolate
Expand Down
Loading