Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$scope.alerts = [];
$scope.datacenter = {};
$scope.file = '';
var urlDC = '/api/v1/datacenters/';
loadDatacenter();
$scope.dataSelect = ['select..', 'TEST', 'AMAZON', 'OPENSTACK'];
$scope.city = 'Berlin';
$scope.locations = serviceAPI.getLocations();
$scope.selection = $scope.dataSelect[0];
$scope.locationRadio = $scope.locations[0];
$scope.locationChecked = {};
var dataCenterJ = {};
$scope.switch = [];
dataCenterJ['select..'] = {};
dataCenterJ['OPENSTACK'] = {
"name": "datacenter-1",
"location": {
// "name": "Munich",
// "latitude": 48.13513,
// "longitude": 11.58198
},
"type": "OPENSTACK",
"switch": {
"ports": [
{
"capacity": 30000,
"portNumber": 1
}
],
"dpid": "datacenter-1",
}
else {
showError('Problem with the VIM Instance');
}
};
$scope.dataSelect = ['select..', 'TEST', 'AMAZON', 'OPENSTACK'];
$scope.city = 'Berlin';
$scope.locations = serviceAPI.getLocations();
$scope.selection = $scope.dataSelect[0];
$scope.locationRadio = $scope.locations[0];
$scope.locationChecked = {};
var dataCenterJ = {};
$scope.switch = [];
dataCenterJ['select..'] = {};
dataCenterJ['OPENSTACK'] = {
"name": "datacenter-1",
"location": {
// "name": "Munich",
// "latitude": 48.13513,
// "longitude": 11.58198
},
"type": "OPENSTACK",
"switch": {
"ports": [
{
"capacity": 30000,
"portNumber": 1
}
],
"dpid": "datacenter-1",