nfv prototyping
yum install openssh-server
yum install openvswitch
service enable openssh-server
service start openssh-server
/sbin/service openvswitch enable
/sbin/service openvswitch start
/bin/systemctl enable openvswitch.service
ovs-vsctl show
ifconfig eth0 down
ifconfig eth0 10.36.0.135 up
ip route add default dev eth0 via 10.36.0.1
ifconfig eth1 10.0.0.135 up
ovs-vs-ctl add-br isolated0
ifconfig isolated0 192.168.222.135 up
ifconfig eth2 0.0.0.0 up
ovs-vs-ctl add-port isolated0 eth2
ovs-vsctl set-controller isolated0 tcp:10.0.0.192:6633
ovs-vsctl show
yum install python-pip
or
apt-get install python-pip
The script will tell you what is missing. but here are the requirements:
pip install Flask
pip install Flask-HTTPAuth
pip install ping
pip install daemonize
Run as root. Not ideal, but since once script for both compute and orchestrator raw sockets and firing scripts require priviledge.
This works so long as you monitor the session. You leave the service quits.
sudo python o.py
This works better. You leave it runs, but stop does not work. Search the process table and kill.
sudo ./run_o.sh start
Sketched out, but not tested yet. Backgrounder.
sudo ./o.py -d
Foreground with logging
sudo ./o.py
./restappi.py
------------------------------
MENU
------------------------------
a. Openflow
b. Orchestration
c. Main
q. Quit
Enter selection: b
------------------------------
ORCHESTRATION
------------------------------
17. Hello
18. Circuit Get All
19. Circuit Get One
20. Circuit Add
21. Circuit Update
22. Circuit Delete
23. Circuit Remove All
24. Fault Monitor Service
25. Compute Performance Metrics
26. Compute Create
27. Compute Delete
28. Compute Ping
29. Orchestration Report Status
30. Orchestration Report Metrics
31. Orchestration Performance Metrics
c. Main
q. Quit
Enter selection:
Menu Choice Sequence 17 28 20 18 31 -> 3 22 -> 3