Example #1
0
        private static ConfigurationClass GetConfiguration()
        {
            var mycfg = new ConfigurationClass();

            _configuration.GetSection("ConfigurationClass").Bind(mycfg);
            return(mycfg);
        }
Example #2
0
        private static void Main(string[] args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            InitialSetup();

            // Set up configuration sources.
            _mycfg = GetConfiguration();

            var routerList      = GetNeigsRoutersDictionaryToConfig(_mycfg.Host);
            var vlanAddressList = GetVlanDictionary("CCR2ip");


            var routerOspfList = GetRoutersOspfList(routerList);

            Process.Start(@"C:\Users\simon\source\repos\AutoVLANrepo\RB260.txt");

            _logger.Information("Presione Enter para confirmar que todos los RB260 han sido configurados");
            Console.ReadLine();

            //void??
            ConfigRouterOspf(routerOspfList, vlanAddressList, routerList);

            //TENER EN CUENTA EL SET UP DE VPLS EN EL CRF2, QUIZA CONVENGA HACER OTRA APLICACION

            //HABLAR CON NACHO RESPECTO DE LOS VPLS EN LOS ROUTERS (TENER EN CUENTA QUE NO SOLO
            //HAY VPLS EN LOS PRIMEROS SALTOS - EN UN CLASICO AP SE METE EN EL BRIDGE LA WLAN
            //Y EL VPLS, PARA QUE ANDE AUTOMATICAMENTE EL CRF2 TENDRIAN QUE ESTAR LOS DOS VPLS
            //EN EL MISMO BRIDGE JUNTO CON LA WLAN


            //Zygma
            //La IP para inicializar el Shell la saco del json (va a ser el Proxy ARP)
            //La IP del Zygma va a ser una constante.

            //Luego de la primer Iteracion la aplicación quedaria esperando confirmación
            //para continuar (obviamente se confirmaría luego de que todos los RB260 esten listos)
        }