예제 #1
0
        public void SetTrapReceiver(System.Collections.Generic.List <DevSnmpConfig> configs, Sys_Para pSys)
        {
            DevAccessCfg instance = DevAccessCfg.GetInstance();

            System.Collections.Generic.List <SnmpConfiger> list = new System.Collections.Generic.List <SnmpConfiger>();
            foreach (DevSnmpConfig current in configs)
            {
                DevModelConfig deviceModelConfig = instance.getDeviceModelConfig(current.modelName, current.fmwareVer);
                SnmpConfiger   item = new SnmpConfiger(instance.getSnmpConfig(current), deviceModelConfig, current.devMac, current.devID);
                list.Add(item);
            }
            DefaultSnmpExecutors defaultSnmpExecutors = new DefaultSnmpExecutors(list);

            defaultSnmpExecutors.UpdateTrapReceiver(pSys, TrapEnabled.Yes);
        }
예제 #2
0
        public void SetTrapReceiver(System.Collections.Generic.List <SnmpConfiger> snmpConfigs, Sys_Para pSys)
        {
            DefaultSnmpExecutors defaultSnmpExecutors = new DefaultSnmpExecutors(snmpConfigs);

            defaultSnmpExecutors.UpdateTrapReceiver(pSys, TrapEnabled.Yes);
        }