...
Code Block $ cd ~/onos/apps/newoptical $ mci
Run ONOS
Code Block $ op $ ok clean
Install bundle
Code Block onos> app activate org.onosproject.newoptical
Connect devices
Download https://githubraw.githubusercontent.com/akoshibe/ecord-topos/blob/master/ectest.py and copy it to ~/onos/tools/test/topos/
Code Block $ sudo -E python ~/onos/tools/test/topos/ectest.py 127.0.0.1 127.0.0.1 127.0.0.1
If you’re running ONOS on other host, replace 127.0.0.1 with the host’s IP address.
GUI
Open http://127.0.0.1:8181/onos/ui/ in web browser.
Enter karaf/karaf for username/password.
See the topology like sample image below is displayed.
(image)
See “wiki: The ONOS Web GUI” for details.
CUI
To add connectivity between port of:000000000000000b/ and of:0000000000000015/1, use CLI command as following.
Code Block onos> add-optical-connectivity of:000000000000000b/2 of:0000000000000015/1 1000000 1000
This requests connectivity from of:000000000000000b/2 to of:0000000000000015/1 with required bandwidth of 1 Mbps (= 1000000 bps), and required latency of 1000ns.
To remove installed connectivity with ID 1, use CLI command as following.
Code Block onos> remove-optical-connectivity 1