This configuration can be used to set up a CORD development environment. It does the following:
NOTE: This configuration is under active development and is not yet finished! Some features are not fully working yet.
The configuration is intended to be run on CloudLab, on the ctl node set up by the OpenStack profile. It launches an XOS container on Cloudlab that runs the XOS develserver. The container is left running in the background.
Running make
in this directory creates the XOS Docker container and runs the TOSCA engine with cord.yaml
to configure XOS with the CORD services. In addition, a number of VMs are created:
virtualbng
app loadedolt
app loadedvirtualbng
app as controllerolt
app as controllerAfter the first VM is created (for running the virtualbng
app) it is necessary to configure XOS's service_vbng with its URL. Log into XOS, click on Services tab at left, then service_vbng icon. Change Vbng url: to point to the IP address on flat-lan-1-net
of the VM (it will start with 10.11).
Once all the VMs are up and the ONOS apps are configured, XOS should be able to get an address mapping from the virtualbng
ONOS app when creating a vCPE. To test this, enter the XOS Docker container and run:
$ cd /opt/xos/configurations/cord/ $ make -f Makefile.inside setup_subscriber
This will run the TOSCA engine with subscriber.yaml
. After a bit, a new VM should be created in slice mysite_vcpe running the vCPE Docker container. To verify that it has received an IP address mapping, look at the Routeable subnet: field in the appropriate Vbng tenant object in XOS. It should contain an IP address in the 10.254.0.0/24 subnet.
The ONOS Docker container runs in the VMs belonging to the mysite_onos slice. All ports exposed by the ONOS container are forwarded to the outside, and can be accessed from the ctl node using the flat-lan-1-net
address of the hosting VM. For example, if the IP addresss of the VM is 10.11.10.30, then it is possible to SSH to ONOS as follows (password is karaf):
$ ssh -p 8101 karaf@10.11.10.30