toolkit/func/core/pkg_network/20-configure-bridge.sh

15 lines
383 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "network" "Test bridging functionality (non-network manager)"
bridge=dummybr0
2021-07-06 20:33:22 +00:00
# shellcheck disable=SC1091,1090
2021-07-05 06:50:25 +00:00
. "$(dirname "$0")"/imports.sh
r_log "network" "Add a dummy bridge $bridge"
ret_val=$(iproute_add_bridge $bridge)
2021-07-06 20:16:01 +00:00
r_checkExitStatus "$ret_val"
2021-07-05 06:50:25 +00:00
r_log "network" "Clean up/Remove bridge"
ret_val=$(iproute_del_bridge $bridge)
2021-07-06 20:16:01 +00:00
r_checkExitStatus "$ret_val"