aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party
diff options
context:
space:
mode:
Diffstat (limited to '3rd_party')
-rwxr-xr-x3rd_party/ovs_pmd_stats/ovs_pmd_stats.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/3rd_party/ovs_pmd_stats/ovs_pmd_stats.py b/3rd_party/ovs_pmd_stats/ovs_pmd_stats.py
index fc6045b9..b706bcd5 100755
--- a/3rd_party/ovs_pmd_stats/ovs_pmd_stats.py
+++ b/3rd_party/ovs_pmd_stats/ovs_pmd_stats.py
@@ -101,9 +101,8 @@ for el in array:
plugin_instance = el[:-1].replace(' ', '_')
else:
type_instance = el.split(':')[0].replace(' ', "_")
- value = el.split(':')[1].split(' ')[0]
+ value = el.split(':')[1].strip().split(' ')[0]
print('PUTVAL %s/%s-%s/%s-%s N:%s' % (HOSTNAME, PROG_NAME, plugin_instance, TYPE, type_instance, value))
# close socket
sock.close()
-