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:58:01 +0000 (14:58 -0700)
commit12d364973a97c36b93f6d6e88f49a99e096d82e4
treec9586ff9f33165726993ad02a5a771c5484b2502
parent75ab5755897d3deda272fbc57ba4cf924e05d8ff
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