This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"physical-nodes" : { | |
"c1" : { | |
"ip" : "192.168.0.1/24", | |
"location" : "fabric" | |
}, | |
"c2" : { | |
"ip" : "192.168.0.2/24", | |
"location" : "fabric" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mininet.node import Host | |
from mininet.topo import Topo, SingleSwitchTopo | |
from mininet.net import Mininet | |
from mininet.cli import CLI | |
from mininet.link import Intf | |
from mininet.nodelib import NAT | |
from mininet.log import setLogLevel, info, error | |
from mininet.util import quietRun | |
from mininet.term import makeTerm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ONOS_NIC="10.0.3.*" | |
export OC1="10.0.3.101" | |
export OC2="10.0.3.102" | |
export OC3="10.0.3.103" | |
export OCN="192.168.42.1" | |
export OCT=$OC1 | |
export ONOS_APPS=drivers,openflow,proxyarp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1 2 3; do | |
docker-machine create -d virtualbox node-$i | |
done | |
dock node-1 | |
docker swarm init \ | |
--advertise-addr $(docker-machine ip node-1) | |
TOKEN=$(docker swarm join-token -q worker) |