blob: 62e428ad0099d516c9d3cccfcc87f8cc7756cf41 [file] [log] [blame]
#!/usr/bin/env 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
import argparse
# Run the script with [-h|--help] to get usage info
logging.basicConfig(level=logging.INFO, format='%(message)s')
parser = argparse.ArgumentParser(formatter_class=
argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--config',help='Configuration file path',default=None)
args = parser.parse_args()
vcpecommon = VcpeCommon(cfg_file=args.config)
nodes=['brg', 'bng', 'mux', 'dhcp']
hosts = vcpecommon.get_vm_ip(nodes)
print(json.dumps(hosts, indent=4, sort_keys=True))