blob: 62e428ad0099d516c9d3cccfcc87f8cc7756cf41 [file] [log] [blame]
Bartek Grzybowskifbbdbec2019-09-25 16:37:05 +02001#!/usr/bin/env python
Kang Xi11d278c2018-04-06 16:56:04 -04002
3import time
4import logging
5import json
6import mysql.connector
7import ipaddress
8import re
9import sys
10import base64
11from vcpecommon import *
12import preload
13import vcpe_custom_service
Bartek Grzybowski01abb5d2019-12-17 15:09:26 +010014import argparse
Kang Xi11d278c2018-04-06 16:56:04 -040015
Bartek Grzybowski01abb5d2019-12-17 15:09:26 +010016# Run the script with [-h|--help] to get usage info
Kang Xi11d278c2018-04-06 16:56:04 -040017
18logging.basicConfig(level=logging.INFO, format='%(message)s')
19
Bartek Grzybowski01abb5d2019-12-17 15:09:26 +010020parser = argparse.ArgumentParser(formatter_class=
21 argparse.ArgumentDefaultsHelpFormatter)
22parser.add_argument('--config',help='Configuration file path',default=None)
23args = parser.parse_args()
24
25vcpecommon = VcpeCommon(cfg_file=args.config)
Kang Xi11d278c2018-04-06 16:56:04 -040026nodes=['brg', 'bng', 'mux', 'dhcp']
27hosts = vcpecommon.get_vm_ip(nodes)
28print(json.dumps(hosts, indent=4, sort_keys=True))
29
30
31
32
33