HP OpenFlow 1.3 Administrator Guide Wired Switches K/KA/KB/WB 15.15

instance-name
Add a member to this OpenFlow instance.
vlan vlan-id
Adds the VLAN to the named OpenFlow instance.
Flow location
This command sets the location of flows for an instance or the aggregate. In hardware-only mode,
flows are programmed only in hardware. The flows are located in hardware and software by
default.
Syntax
[no] openflow instance { instance-name | aggregate } flow-location
hardware-only
instance-name
Sets flow location for the named instance.
aggregate
Sets flow location for the aggregate instance.
hardware-only
Sets the location of flows to hardware only.
Default: Software and hardware.
NOTE: An error is returned to the controller if the flow cannot be added in
hardware and the flow-location is set as hardware-only.
Communicating port status to the controller
OpenFlow provides the ability to program flows for ports which are not up yet. The OpenFlow
switch communicates port state notification to the controller as part of OFPT_PORT_STATUS message.
This allows the controller to pre-provision flows in the switch referring ports that may be down. The
post status messages are:
OFPPS_LIVE – Physical link present
OFPPS_LINK_DOWN – No physical link present
OFPPS_BLOCKED – Port is blocked
Example
HP-Stack-3800(openflow)# show vlan 3
Status and Counters - VLAN Information - VLAN 3
VLAN ID : 3
Name : VLAN3
Status : Port-based
Voice : No
Jumbo : No
Port Information Mode Unknown VLAN Status
---------------- -------- ------------ ----------
1/1 Untagged Learn Up
1/2 Untagged Learn Up
1/4 Untagged Learn Down
1/5 Untagged Learn Down
openflow@openflow-ubuntu-02:~$ dpctl tcp:20.0.0.1:6633 port-desc
SENDING:
stat_req{type="port-desc", flags="0x0"}
18 Configuring OpenFlow