Clear counter
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
Copyright © 2024 Pica8 Inc. All Rights Reserved.