summaryrefslogtreecommitdiffstats
path: root/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/configure_bridges.sh
blob: c77258f1b7d676fc8a7e792e108b38c2ff0b1966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash

for bridge in `sudo ovs-vsctl list-br`; do sudo ovs-vsctl --no-wait set Bridge $bridge datapath_type=netdev; done;

# Configure integration bridge with specified datapath
#sudo ovs-vsctl --no-wait -- --may-exist add-br br-int
#if [ "$1" != "" ]; then
    #sudo ovs-vsctl --no-wait set Bridge br-int datapath_type=$1
#fi
#sudo ovs-vsctl --no-wait br-set-external-id br-int bridge-id br-int

# Configure external bridge with specified datapath
#sudo ovs-vsctl --no-wait -- --may-exist add-br br-ex
#if [ "$1" != "" ]; then
    #sudo ovs-vsctl --no-wait set Bridge br-ex datapath_type=$1
#fi
#sudo ovs-vsctl --no-wait br-set-external-id br-ex bridge-id br-ex

# Configure br-tun bridge with specified datapath
#sudo ovs-vsctl --no-wait -- --may-exist add-br br-tun
#if [ "$1" != "" ]; then
    #sudo ovs-vsctl --no-wait set Bridge br-tun datapath_type=$1
#fi
#sudo ovs-vsctl --no-wait br-set-external-id br-tun bridge-id br-tun