2 'app/gbp/endpoints/endpoint.service',
6 angular.module('app.gbp').controller('AddEndpointController', AddEndpointController);
8 AddEndpointController.$inject = ['$mdDialog', '$scope', 'EndpointService', 'endpoint'];
10 function AddEndpointController($mdDialog, $scope, EndpointService, endpoint) {
12 $scope.endpoint = endpoint ? endpoint : EndpointService.createObject();
15 $scope.closeDialog = closeDialog;
17 $scope.checkEndpointGroup = checkEndpointGroup;
18 $scope.checkEndpointCondition = checkEndpointCondition;
20 console.log('$scope.rootTenants.data.Tenant', $scope.rootTenants.data.Tenant);
23 function closeDialog(){
25 $scope.getEndpointsList();
29 $scope.endpoint.post(function () {
35 function checkEndpointGroup(){
36 // $scope.bgpRouteForm.nextHopVal.invalidHops = $scope.bgpRoute.getInvalidHops();
39 function checkEndpointCondition(){