unifios-utilities/on-boot-script/examples/udm-networking/on_boot.d/06-cni-bridge.sh

9 lines
138 B
Bash
Raw Normal View History

#!/bin/sh
## Create network bridge for CNI
ip link show cni0 > /dev/null 2>&1
if [ $? -ne 0 ]; then
ip link add cni0 type bridge
fi