diff options
Diffstat (limited to '3rd_party')
-rw-r--r-- | 3rd_party/collectd-ves-app/ves_app/ves_app.py | 5 | ||||
-rwxr-xr-x | 3rd_party/ovs_pmd_stats/ovs_pmd_stats.py | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/3rd_party/collectd-ves-app/ves_app/ves_app.py b/3rd_party/collectd-ves-app/ves_app/ves_app.py index c101089f..66dc8f2d 100644 --- a/3rd_party/collectd-ves-app/ves_app/ves_app.py +++ b/3rd_party/collectd-ves-app/ves_app/ves_app.py @@ -1,16 +1,19 @@ #!/usr/bin/env python # +# Copyright(c) 2017-2019 Intel Corporation and OPNFV. All rights reserved. +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# import json import sys 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() - |