Lines Matching full:ipv4

49         $scope.interface.ipv4.values.push(
54 // Check if the IPV4 being removed has an id. This indicates that it is
56 if ($scope.interface.ipv4.values[index].id) {
57 $scope.ipv4sToDelete.push($scope.interface.ipv4.values[index]);
59 $scope.interface.ipv4.values.splice(index, 1);
94 // Set IPV4 IP Addresses, Netmask Prefix Lengths, and Gateways
96 // Delete existing IPV4 addresses that were removed
98 // Update any changed IPV4 addresses and add new
99 for (var i in $scope.interface.ipv4.values) {
101 $scope.interface.ipv4.values[i].Address)) {
103 $scope.interface.ipv4.values[i].Address +
108 if ($scope.interface.ipv4.values[i].Gateway &&
110 $scope.interface.ipv4.values[i].Gateway)) {
112 $scope.interface.ipv4.values[i].Address +
118 if (!$scope.interface.ipv4.values[i].PrefixLength) {
120 $scope.interface.ipv4.values[i].Address +
125 if ($scope.interface.ipv4.values[i].updateAddress ||
126 $scope.interface.ipv4.values[i].updateGateway ||
127 $scope.interface.ipv4.values[i].updatePrefix) {
128 // If IPV4 has an id it means it already exists in the back end,
129 // and in order to update it is required to remove previous IPV4
132 if ($scope.interface.ipv4.values[i].id) {
144 // Since an IPV4 interface (e.g. IP address, gateway, or
226 return $scope.ipv4sToDelete.map(function(ipv4) { argument
227 return APIUtils.deleteIPV4($scope.selectedInterface, ipv4.id)
241 $scope.interface.ipv4.values[index].Address,
242 $scope.interface.ipv4.values[index].PrefixLength,
243 $scope.interface.ipv4.values[index].Gateway)
253 // The correct way to edit an IPV4 interface is to remove it and then
258 $scope.interface.ipv4.values[index].id)
264 $scope.interface.ipv4.values[index].Address,
265 $scope.interface.ipv4.values[index].PrefixLength,
266 $scope.interface.ipv4.values[index].Gateway)
302 // Add id values and update flags to corresponding IPV4 objects
303 for (var i = 0; i < $scope.interface.ipv4.values.length; i++) {
304 $scope.interface.ipv4.values[i].id = $scope.interface.ipv4.ids[i];
305 $scope.interface.ipv4.values[i].updateAddress = false;
306 $scope.interface.ipv4.values[i].updateGateway = false;
307 $scope.interface.ipv4.values[i].updatePrefix = false;