29
Examples
# Refresh Layer 3 flow entries in the MAC-IP flow tables for OpenFlow instance 1.
<Sysname> system-view
[Sysname] openflow instance 1
[Sysname-of-inst-1] refresh ip-flow
reset openflow instance statistics
Use
reset openflow instance statistics
to clear statistics on packets that a controller
sends and receives for an OpenFlow instance.
Syntax
reset openflow instance
instance-id
{
controller
[
controller-id
]
|
listened
}
statistics
Views
User view
Predefined user roles
network-admin
Parameters
instance-id
: Specifies an OpenFlow instance by its ID in the range of 1 to 4094.
controller-id
: Specifies a controller by its ID in the range of 0 to 63. If you do not specify a
controller ID, this command clears statistics on packets that all controllers send and receive for an
OpenFlow instance.
listened
: Specifies the client that connects to the server enabled for the OpenFlow instance.
Examples
# Clear statistics on packets that all controllers send and receive for OpenFlow instance 1.
<Sysname> reset openflow instance 1 controller statistics
tcp dscp
Use
tcp dscp
to set a DSCP value for OpenFlow packets.
Use
undo tcp dscp
to restore the default.
Syntax
tcp dscp
dscp-value
undo tcp dscp
Default
The DSCP value for OpenFlow packets is 10.
Views
OpenFlow instance view
Predefined user roles
network-admin
Parameters
dscp-value
: Specifies a DSCP value for OpenFlow packets, in the range of 0 to 63.