3 # This is an example of a Ganeti kvm ifup script that configures network
4 # interfaces based on the initial deployment of the Okeanos project
6 source /etc/default/snf-network
7 source /usr/lib/snf-network/common.sh
11 try clear_routed_setup_ipv4
12 try clear_routed_setup_ipv6
13 try clear_routed_setup_firewall
17 if [ "$MODE" = "routed" ]; then
18 ip link set $INTERFACE addr $TAP_CONSTANT_MAC up
19 elif [ "$MODE" = "bridged" ]; then
20 ip link set $INTERFACE up
21 brctl addif $BRIDGE $INTERFACE
24 for tag in $NETWORK_TAGS; do
29 try routed_setup_firewall
45 if [ -x "$IFUP_EXTRA_SCRIPT" ]; then
46 exec $IFUP_EXTRA_SCRIPT "$@"