#####Ovs group commands
References
ovs-vsctl set Bridge 0e2bf920-f12d-49c3-b9fe-26d888becf77 protocols="OpenFlow13"
ovs-vsctl add-br br0
import collections | |
import threading | |
__author__ = 'ashw7n' | |
import socket | |
import json | |
import logging | |
logging.basicConfig(level=logging.DEBUG) |
#####Ovs group commands
References
ovs-vsctl set Bridge 0e2bf920-f12d-49c3-b9fe-26d888becf77 protocols="OpenFlow13"
ovs-vsctl add-br br0
Run etcd as follows (I use boot2dokcer, so i get the ip first and let etcd use it for its addr
parameter)
BIP=$(boot2docker ip)
docker run -t -i -p 4001:4001 quay.io/coreos/etcd -addr $BIP:4001
#update etcd with some initial values
curl http://$BIP:4001/v2/keys/myapp/database/url -XPUT -d value="cs:///org/c/mynewsql/members"
curl http://$BIP:4001/v2/keys/myapp/database/user -XPUT -d value="newurl//ashwin"