API Guide

OpenFlow commands
controller
Configures an OpenFlow controller that the logical switch instance connects to.
Syntax
controller {ipv4 ipv4-address| ipv6 ipv6-address [port port-number]
[security {none|tls}]
Parameters
ipv4 ipv4-addressEnter ipv4, then the IP address of the controller.
ipv6 ipv6-addressEnter ipv6, then the IPv6 address of the controller.
port port-numberEnter the keyword, then the port number, from 1 to 65,535. The default port
is 6653.
security {none|tls}Specify the type of connection. The default is security none. The
TCP connection is used.
Default TCP. The default port number is 6653.
Command Mode OPENFLOW SWITCH CONFIGURATION
Usage
Information
You can configure up to eight OpenFlow controllers.
If you specify the security tls option, the OpenFlow application looks for the following certificates
and private key in the following locations specified for certificate-based authentication. For information
about obtaining certificates and installing them on the switch and the controller, see Establish TLS
connection between the switch and the controller.
ca_cert
(certificate that
identifies the
controller as
being
trustworthy)
/config/etc/opt/dell/os10/openflow/cacert.pem
certificate
(certificate that
identifies the
switch as being
trustworthy)
/config/etc/opt/dell/os10/openflow/sc-cert.pem
private key (the
private key
corresponding to
the switch
certificate)
/config/etc/opt/dell/os10/openflow/sc-privkey.pem
Example
The following example configures an OpenFlow controller with IP address 10.11.63.56 on port 6633 for the
logical switch instance, of-switch-1:
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
OS10 (config-openflow-switch)# controller ipv4 10.11.63.56 port 6633
OS10 (config-openflow-switch)#
The following example configures multiple OpenFlow controllers on port 6633 for the logical switch
instance, of-switch-1:
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
OS10 (config-openflow-switch)# controller ipv4 10.1.1.1 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.1.8 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.1.12 port 6633
OpenFlow 1101