diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2013-07-18 13:44:51 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2013-07-24 10:29:55 -0700 |
commit | 00c7bf8b1309e1f974c1255acd99954bf5cb4530 (patch) | |
tree | 07b7e0b0ebbecc794bfa602d0557ae3a6c3c58ff /utilities | |
parent | e621a12d908695881a54834e70ead71d6d99639b (diff) |
ovs-bugtool: Remove duplicate bond/show command.
ovs-appctl bond/show is being run through the plugin by
calling the script ovs-bugtool-bond-show.
So remove the redundant code.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'utilities')
-rwxr-xr-x | utilities/bugtool/ovs-bugtool.in | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in index ffaf7538..aa5b960d 100755 --- a/utilities/bugtool/ovs-bugtool.in +++ b/utilities/bugtool/ovs-bugtool.in @@ -149,7 +149,6 @@ NETSTAT = 'netstat' OVS_DPCTL = 'ovs-dpctl' OVS_OFCTL = 'ovs-ofctl' OVS_VSCTL = 'ovs-vsctl' -OVS_APPCTL = 'ovs-appctl' PS = 'ps' ROUTE = 'route' RPM = 'rpm' @@ -577,16 +576,6 @@ exclude those logs from the archive. cmd_output(CAP_NETWORK_STATUS, [OVS_DPCTL, 'show', '-s']) for d in dp_list(): cmd_output(CAP_NETWORK_STATUS, [OVS_DPCTL, 'dump-flows', d]) - try: - vspidfile = open(OPENVSWITCH_VSWITCHD_PID) - vspid = int(vspidfile.readline().strip()) - vspidfile.close() - for b in bond_list(vspid): - cmd_output(CAP_NETWORK_STATUS, - [OVS_APPCTL, '-t', '@RUNDIR@/ovs-vswitchd.%s.ctl' % vspid, '-e' 'bond/show %s' % b], - 'ovs-appctl-bond-show-%s.out' % b) - except e: - pass cmd_output(CAP_PROCESS_LIST, [PS, 'wwwaxf', '-eo', 'pid,tty,stat,time,nice,psr,pcpu,pmem,nwchan,wchan:25,args'], label='process-tree') func_output(CAP_PROCESS_LIST, 'fd_usage', fd_usage) @@ -747,17 +736,6 @@ def dp_list(): return output.getvalue().splitlines() return [] -def bond_list(pid): - output = StringIO.StringIO() - procs = [ProcOutput([OVS_APPCTL, '-t', '@RUNDIR@/ovs-vswitchd.%s.ctl' % pid, '-e' 'bond/list'], caps[CAP_NETWORK_STATUS][MAX_TIME], output)] - - run_procs([procs]) - - if not procs[0].timed_out: - bonds = output.getvalue().splitlines()[1:] - return [x.split('\t')[1] for x in bonds] - return [] - def fd_usage(cap): output = '' fd_dict = {} |