b0b143b412
Change-Id: I0c46d19cacac234564a72b6d12ff99db8fff5b59
18 lines
378 B
Bash
18 lines
378 B
Bash
#!/bin/bash
|
|
|
|
# This is a sample script to configure OpenVSwitch for
|
|
# development needs.
|
|
|
|
echo 'Startig openvswitch service'
|
|
sudo /etc/init.d/openvswitch start
|
|
|
|
echo "Creating internal bridge 'br-int'"
|
|
sudo ovs-vsctl add-br br-int
|
|
|
|
echo "Creating external bridge 'br-ex'"
|
|
sudo ovs-vsctl add-br br-ex
|
|
|
|
echo "Adding a network interface 'eth1'"
|
|
sudo ovs-vsctl add-port br-ex eth1
|
|
|