utilities: a top like tool for ovs-dpctl dump-flows.
authorMark Hamilton <mhamilton@nicira.com>
Fri, 13 Sep 2013 22:50:48 +0000 (15:50 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 17 Sep 2013 21:56:24 +0000 (14:56 -0700)
commit14b4c575c28421d1181b509dbeae6e4849c7da69
treed32daa0d8acceb79786d403110d3163ceb5618b6
parent1394054ecbc5d7abd5b1af3798da4dff2cfb268a
utilities: a top like tool for ovs-dpctl dump-flows.

This python script summarizes ovs-dpctl dump-flows content by aggregating
the number of packets, total bytes and occurrence of the following fields:
  - Datapath in_port
  - Ethernet type
  - Source and destination MAC addresses
  - IP protocol
  - Source and destination IPv4 addresses
  - Source and destination IPv6 addresses
  - UDP and TCP destination port
  - Tunnel source and destination addresses

Testing included confirming both mega-flows and non-megaflows are
properly parsed. Bit masks are applied in the case of mega-flows
prior to aggregation.  Test --script parameter which runs in
non-interactive mode. Tested syntax against python 2.4.3, 2.6 and 2.7.
Confirmed script passes pep8 and pylint run as:

pylint --disable=I0011 --include-id=y --reports=n

This tool has been added to these distribution:
  - add ovs-dpctl-top to debian distribution
  - add ovs-dpctl-top to rpm distribution.
  - add ovs-dpctl-top to XenServer RPM.

Signed-off-by: Mark Hamilton <mhamilton@nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
debian/control
debian/openvswitch-switch.install
debian/openvswitch-switch.manpages
manpages.mk
rhel/openvswitch.spec.in
utilities/automake.mk
utilities/ovs-dpctl-top.8.in [new file with mode: 0644]
utilities/ovs-dpctl-top.in [new file with mode: 0755]
xenserver/openvswitch-xen.spec.in