protected V6StaticPrefixBinding BuildStaticBinding(v6PrefixBinding binding, link link) { try { IPAddress inetAddr = IPAddress.Parse(binding.prefix); V6StaticPrefixBinding sb = new V6StaticPrefixBinding(binding); SetIpAsUsed(link, inetAddr); return(sb); } catch (Exception ex) { log.Error("Invalid static binding address"); throw new Exception("Invalid static binding address", ex); } }
protected override List <StaticBinding> BuildStaticBindings(link link) { List <StaticBinding> staticBindings = new List <StaticBinding>(); List <v6PrefixBinding> bindings = link.v6PrefixBindings; if ((bindings != null) && bindings.Count > 0) { foreach (v6PrefixBinding binding in bindings) { V6StaticPrefixBinding spb = BuildStaticBinding(binding, link); staticBindings.Add(spb); } } return(staticBindings); }