summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/configure-network/files/network-config-suse
blob: 1a9f1e7dce2c1d80b3e86ef7046c54628fcce3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

INTERFACE=$1
ACTION=$4

if [[ $INTERFACE == "br-vlan" ]]; then
    if [[ $ACTION == "pre-up" ]]; then
        ip link add br-vlan-veth type veth peer name eth12 || true
        ip link set br-vlan-veth up
        ip link set eth12 up
    else
        ip link del br-vlan-veth || true
    fi
fi