예제 #1
0
        public void AddIpRange()
        {
            var ipRange = new IPRange()
            {
                Id = _nextIrId
            };

            IPRanges.Add(ipRange);
            _nextIrId++;
        }
예제 #2
0
        // Delete the IPRange and its subnets
        public void DeleteIpRange(IPRange ipRange)
        {
            if (ipRange == null)
            {
                return;
            }

            Subnets.RemoveAll(s => s.IPRangeId == ipRange.Id);
            IPRanges.Remove(ipRange);
            NotifySubnetChange();
        }