blob: b94848e13f081aaaa5bedbdf21d337cd50134b96 [file] [log] [blame]
Kang Xi11d278c2018-04-06 16:56:04 -04001#! /usr/bin/python
2
3import logging
4import json
5from vcpecommon import *
6import commands
7
8
9logging.basicConfig(level=logging.INFO, format='%(message)s')
10common = VcpeCommon()
11
12print('Checking vGMUX REST API from SDNC')
13cmd = 'curl -u admin:admin -X GET http://10.0.101.21:8183/restconf/config/ietf-interfaces:interfaces'
14ret = commands.getstatusoutput("ssh -i onap_dev root@sdnc '{0}'".format(cmd))
15sz = ret[-1].split('\n')[-1]
16print('\n')
17print(sz)
18
19print('Checking vBRG REST API from SDNC')
20cmd = 'curl -u admin:admin -X GET http://10.3.0.2:8183/restconf/config/ietf-interfaces:interfaces'
21ret = commands.getstatusoutput("ssh -i onap_dev root@sdnc '{0}'".format(cmd))
22sz = ret[-1].split('\n')[-1]
23print('\n')
24print(sz)
25
26print('Checking SDNC DB for vBRG MAC address')
27mac = common.get_brg_mac_from_sdnc()
28print(mac)
29
30