Skip to content

Instantly share code, notes, and snippets.

@ashw7n
ashw7n / README.md
Created February 15, 2015 21:02
confd

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"

#####Ovs group commands

References

ovs-vsctl set Bridge 0e2bf920-f12d-49c3-b9fe-26d888becf77 protocols="OpenFlow13"
ovs-vsctl add-br br0
@ashw7n
ashw7n / ovsdb.py
Last active August 26, 2021 16:40
ovsdb-python-client
import collections
import threading
__author__ = 'ashw7n'
import socket
import json
import logging
logging.basicConfig(level=logging.DEBUG)