3
Predefined user roles
network-admin
Parameters
controller-id
: Specifies a controller by its ID in the range of 0 to 63.
ip
ipv4-address
: Specifies the IPv4 address of the controller.
ipv6
ipv6-address
: Specifies the IPv6 address of the controller.
port
port-number
: Sets the port number used by the controller to establish TCP connections to
the OpenFlow switch. The value range for the port number is 1 to 65535. The default value is 6633.
local address
: Specifies the source IP address used to establish TCP connections to the
controller. When multiple routes are available between a controller and a switch, you can use this
keyword to configure a source IP address for the switch. When the switch restarts or an
active/standby switchover occurs, the switch can use the original route to reconnect to the controller
without selecting a new route.
ip
local-ipv4-address
: Specifies the source IPv4 address.
ipv6
local-ipv6-address
: Specifies the source IPv6 address.
port
local-port-number
: Specifies the source port number in the range of 1 to 65535. If you
do not specify this option, the system automatically assigns a source port number for establishing the
main connection to the controller.
ssl ssl-policy-name
: Specifies the SSL client policy that the controller uses to authenticate the
OpenFlow switch. The
ssl-policy-name
argument is a case-insensitive string of 1 to 31
characters. You must configure a separate SSL client policy for the main connection to each
controller.
vrf
vrf-name
: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31
characters. If you do not specify a VRF name, the controller is in the public network.
Usage guidelines
You can specify multiple controllers for an OpenFlow switch. The OpenFlow channel between the
OpenFlow switch and each controller can have only one main connection.
The main connection must be a reliable TCP or SSL connection. The OpenFlow switch uses the
main connection to a controller to exchange control messages with the controller to perform the
following operations:
•
Receive flow table entries or data from the controller.
•
Report information to the controller.
Examples
# Specify controller 1 for OpenFlow instance 1. The controller's IP address is 1.1.1.1 and the port
number is 6666.
<Sysname> system-view
[Sysname] openflow instance 1
[Sysname-of-inst-1] controller 1 address ip 1.1.1.1 port 6666
controller auxiliary
Use
controller auxiliary
to specify a controller for an OpenFlow switch and configure an
auxiliary connection to the controller.
Use
undo
controller auxiliary
to delete the specified auxiliary connection to the specified
controller.