We describe how to configure, run, and test the OpenstackSwitching application. If you did not set up your environment including openstack and onos, you must set up your environment following the page: How to set up environment from scratch. Also, if you are familiar with how to execute ONOS, we strongly recommend to go though ONOS Tutorial page: Tutorials and Walkthroughs
How to run OpenstackSwitching application
Remove br-int bridge on the Contorl node
$ sudo ovs-vsctl del-br br-int
The process will be unnecessary very soon.
Configure OpenstackSwitching application: network-cfg.json
We need to configure the OpenstackSwitching application using the standard ONOS Network Configuration framework, network-cfg.json file.
App field Field name Description org.onosproject.openstackswitching
do_not_push_flows
"true": it does not push any flow rules to OVS and works as just the Openstack interface.
"false": it pushes all flow rules to OVS
neutron_server
URL to the neutron server
keystone_server
URL to the keystone server for authentication org.onosproject.dhcp
<all> Sample DHCP domain information. You do not touch it. They are just samples and not really used, but we need at least one. org.onosproject.cordvtn:cordvtn:nodes
cordvtn:nodes
Descriptions of hosts. We need to setup information of all hosts we have setup, which are control node and two compute nodes. hostname
description of the host ovsdbIp IP address of the host ovsdbPort
OVSDB Port: 6640, which is set via "ovs-vsctl set-manager" command bridgeId
Datapath ID of the OVS switch in the host Copy the network-cfg.json file to ~/onos/tools/package/config. If you updated or just copied the file, then you need to compile the onos again to distribute the network-json file.
Compile and install ONOS
~/onos$ mcis ~/onos$ onos-package ~/onos$ onos-install -f $OC1
You need to set up you own cell information before you install the ONOS.
Login to the ONOS CLI and activate OpenstackSwitching application
onos> app activate org.onosproject.openstackswitching
You can see the three devices (control node and two compute nodes) from ONOS CLI, if everything has been configured successfully.
onos> devices id=of:0000000000000001, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.2, serial=None, managementAddress=10.40.101.116, protocol=OF_13, channelId=10.40.101.116:60019 id=of:0000000000000002, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.2, serial=None, managementAddress=10.40.101.176, protocol=OF_13, channelId=10.40.101.176:38230 id=of:0000000000000003, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.0.2, serial=None, managementAddress=10.40.101.156, protocol=OF_13, channelId=10.40.101.156:59094
- Now everything is done. Enjoy OpenstackSwitching!!
Tutorials
Simple Workthrough
Sanity check using a test script