blob: 2d52a07b7c6b7fb8b9f6fbc716a1f11ae9b41259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/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
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))
|