Beispiel #1
0
        public static Dictionary <string, AmClusterNetwork> GetIpv6AutoCfgNetworkMap(IAmCluster cluster, string[] ipv6Networks)
        {
            Dictionary <string, AmClusterNetwork> dictionary = new Dictionary <string, AmClusterNetwork>(8);

            foreach (string text in ipv6Networks)
            {
                AmClusterNetwork amClusterNetwork = cluster.FindNetworkByName(text, IPVersion.IPv6);
                if (amClusterNetwork == null)
                {
                    throw new FailedToFindNetwork(text);
                }
                if (!amClusterNetwork.SupportsIPv6AutoConfiguration())
                {
                    throw new RequestedNetworkIsNotIPv6Enabled(text);
                }
                dictionary[text] = amClusterNetwork;
            }
            return(dictionary);
        }