Ryu OpenFlow Controller: Documentation
Appliance DetailsRyu Controller
Overview
This is an appliance that deploys a standalone Ryu OpenFlow controller using the simple_switch_13 application modified for the Corsa DP2000 series switches on Chameleon. More information can be found in the BYOC documentation [TODO: insert link to documentation when it is available]. The modified Ryu controller code can be found hers https://github.com/ChameleonCloud/ryu.git.
Steps
Open the Heat template from the following url: https://www.chameleoncloud.org/appliances/api/appliances/54/template
Set the parameters to the template:
Controller Node Network: The name of the existing network used to connect the controller to the Internet (default: sharednet1)
OpenFlow Controller Port: The network port used by the controller software (default: 6653)
Example:
Controller Node Network = sharednet1 OpenFlow Controller Port = 6653
Launch the stack.
Configure your OpenFlow switch to use the controller IP:Port. For more information about creating an OpenFlow network on Chameleon see the BYOC documentation or the OpenFlow Quick Start Appliance
Explore the OpenFlow controller
- Use ssh to login to the controller node.
Open/tail the Ryu log file that resides in docker volume
[root@controller ~]# tail -F /var/lib/docker/volumes/var_log_ryu/_data/ryu-manager.log
Become root and view/edit the Ryu controller application code:
[cc@controller ~]$ sudo su - Last login: Wed Jun 13 18:50:00 UTC 2018 on pts/0 [root@controller ~]# vim /opt/ryu/simple_switch_13_custom_chameleon.py
After editing the Ryu application controller application, restart Ryu to deploy any changes to the OpenFlow network
[root@controller ~]# systemctl restart ryu