| logging.basicConfig(level=logging.INFO, format='%(message)s') |
| print('Checking vGMUX REST API from SDNC') |
| cmd = 'curl -u admin:admin -X GET http://10.0.101.21:8183/restconf/config/ietf-interfaces:interfaces' |
| ret = commands.getstatusoutput("ssh -i onap_dev root@sdnc '{0}'".format(cmd)) |
| sz = ret[-1].split('\n')[-1] |
| print('Checking vBRG REST API from SDNC') |
| cmd = 'curl -u admin:admin -X GET http://10.3.0.2:8183/restconf/config/ietf-interfaces:interfaces' |
| ret = commands.getstatusoutput("ssh -i onap_dev root@sdnc '{0}'".format(cmd)) |
| sz = ret[-1].split('\n')[-1] |
| print('Checking SDNC DB for vBRG MAC address') |
| mac = common.get_brg_mac_from_sdnc() |