diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-04-13 18:56:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-13 18:56:22 +0000 |
commit | 7469b0d68f5021eaba4770f5f30d0b7cda006d37 (patch) | |
tree | 8a412fdf9d1c980ea644be431ceb8e28cbc242b2 /test/vcpe/get_info.py | |
parent | 5dc20735f510020fc422dac0a77a3c1e2dc3d470 (diff) | |
parent | 11d278c5adf571bbc1b9d184e78ad3309f8f04d4 (diff) |
Merge "Initial code import for vcpe automation."
Diffstat (limited to 'test/vcpe/get_info.py')
-rwxr-xr-x | test/vcpe/get_info.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/vcpe/get_info.py b/test/vcpe/get_info.py new file mode 100755 index 000000000..5b0c6879b --- /dev/null +++ b/test/vcpe/get_info.py @@ -0,0 +1,26 @@ +#! /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 vcpe_custom_service + + +logging.basicConfig(level=logging.INFO, format='%(message)s') + +vcpecommon = VcpeCommon() +nodes=['brg', 'bng', 'mux', 'dhcp'] +hosts = vcpecommon.get_vm_ip(nodes) +print(json.dumps(hosts, indent=4, sort_keys=True)) + + + + + |