wget (RAW CODE URL FROM GITHUB)
Ex. wget https://github.com/raw/nat0321/mininet/main/mininet-test.py
sudo mn —custom FILENAME.py —topo=TOPONAME
Ex. sudo mn —custom mininet-test.py —topo=mytopo
sudo docker run -it --rm --privileged -e DISPLAY -v /tmp/.X11-unix:/tmp/.x11-unix -v /lib/modules:/lib/modules --name=omnet pmanzoni/mininet-in-a-container
If you need to reconnect to the docker container:
sudo docker exec -it omnet bash
Find local ip of host or ONOS controler:
Finding IP of local host:
ip a
Installing custom topology inside of container:
wget --no-check-certificate https://github.com/raw/nat0321/mininet/main/OmnetTopo.py
Starting Mininet with custom topology:
mn --controller remote,ip=LOCAL_IP_OF_HOST --custom OmnetTopo.py --topo=OmnetTopo
http://mininet.org/api/classmininet_1_1net_1_1Mininet.html
sudo ovs-vsctl -- set Bridge s1 ipfix=@i -- --id=@i create IPFIX targets="172.16.234.96:2055" obs_domain_id=123 obs_point_id=456 sampling=64