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

9 lines
140 B
Bash
Raw Normal View History

2023-02-23 05:44:27 +00:00
#!/bin/bash
## Create network bridge for CNI
ip link show cni0 > /dev/null 2>&1
if [ $? -ne 0 ]; then
ip link add cni0 type bridge
fi