Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

Clear port counter

Command: ovs-appctl bridge/clear-counts br0

User can use above command to clear the port counter.

Example:

Check port counter:
ovs-ofctl dump-ports br0
 
Clear the port counter:
ovs-appctl bridge/clear-counts br0

Clear flow counter

Command:  ovs-ofctl mod-flows br0 reset_counts,<match>,<actions>

User can use the command to clear flow counter.

Example:

ovs-ofctl add-flow br0 in_port=3,actions=4
ovs-ofctl mod-flows br0 reset_counts,in_port=3,actions=4
  • No labels