ovs-bugtool: Separate capability for general network info.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 19 Jul 2013 19:37:03 +0000 (12:37 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 24 Jul 2013 17:30:15 +0000 (10:30 -0700)
commiteb6f3089276fefe62e5f8cc138afcbf09e655085
tree3ceaf8a148cbeef92ee6437c75fe88b4b48ad1c8
parent00c7bf8b1309e1f974c1255acd99954bf5cb4530
ovs-bugtool: Separate capability for general network info.

Current situation is that CAP_NETWORK_STATUS has a max size of 50 MB.
When we have around 100,000 openflow flows, we over-run that size
by just running the "ovs-ofctl dump-flows" command. All the openvswitch
commands run through the plugin scripts in this repo won't have its
data stored in the debug bundle in this case as they are part of
CAP_NETWORK_STATUS too. One option to correct this is to increase
the CAP_NETWORK_STATUS max size to a higher number. But CAP_NETWORK_STATUS
also includes a bunch of general network related information collected
by running commands like ethtool, tc etc. and we probably want to limit
the data collected through those commands.

With this commit, we create a new capability called CAP_NETWORK_INFO
and collect general network related information through them. For OVS
related information, we continue to use CAP_NETWORK_STATUS, but remove
the maximum size restriction. One rationale to keep OVS related
information in CAP_NETWORK_STATUS is because xen-bugtool probably expects
OVS information in that capability.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/bugtool/ovs-bugtool.in