diff options
author | huangzh <huangzh.bri@chinatelecom.cn> | 2018-11-07 11:45:38 +0800 |
---|---|---|
committer | huangzh <huangzh.bri@chinatelecom.cn> | 2018-11-08 10:57:13 +0800 |
commit | 1ff97d639e631fe7465038d76e093bc5c1a31867 (patch) | |
tree | d3f4aa2144043930c2fee7073a22e45a9f41805b /vcpe_beijing/vcpe/loop.py | |
parent | 4d96698b0cc2b738685482c8a8971f21b143b27e (diff) |
new add s3p test scripte
Change-Id: I84b933c017ad7cee12e70da868e8dea1dd9f348b
Issue-ID: INT-714
Signed-off-by: huangzh <huangzh.bri@chinatelecom.cn>
Diffstat (limited to 'vcpe_beijing/vcpe/loop.py')
-rw-r--r-- | vcpe_beijing/vcpe/loop.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vcpe_beijing/vcpe/loop.py b/vcpe_beijing/vcpe/loop.py new file mode 100644 index 0000000..ad58797 --- /dev/null +++ b/vcpe_beijing/vcpe/loop.py @@ -0,0 +1,37 @@ +#! /usr/bin/python + +import time +import logging +import json +import mysql.connector +import ipaddress +import re +import sys +import base64 +from vcpecommon import * +import preload +import commands +import vcpe_custom_service + + +logging.basicConfig(level=logging.INFO, format='%(message)s') + +cpecommon = VcpeCommon() +custom = vcpe_custom_service.CustomService(cpecommon) + +nodes=['mux'] +hosts = cpecommon.get_vm_ip(nodes) + +custom.del_vgmux_ves_mode(hosts['mux']) +time.sleep(2) +custom.del_vgmux_ves_collector(hosts['mux']) +exit() + +time.sleep(2) +logging.info('Setting vGMUX DCAE collector IP address') +custom.set_vgmux_ves_collector(hosts['mux']) +time.sleep(2) +vgmux_vnf_name = cpecommon.load_object('vgmux_vnf_name') +logging.info('vGMUX VNF instance name is %s', vgmux_vnf_name) +logging.info('Letting vGMUX report packet loss to DCAE') +custom.set_vgmux_packet_loss_rate(hosts['mux'], 55, vgmux_vnf_name) |