Lines Matching refs:conf_str

290     def netconf_get_config(self, conf_str):  argument
293 xml_str = get_nc_config(self.module, conf_str)
297 def netconf_set_config(self, conf_str): argument
300 xml_str = set_nc_config(self.module, conf_str)
321 conf_str = CE_GET_TRAP_GLOBAL_HEADER
324 conf_str += "<trapTimeStamp></trapTimeStamp>"
326 conf_str += "<icTrapBuffEn></icTrapBuffEn>"
328 conf_str += "<trapBuffSize></trapBuffSize>"
330 conf_str += CE_GET_TRAP_GLOBAL_TAIL
331 recv_xml = self.netconf_get_config(conf_str=conf_str)
399 conf_str = CE_GET_TRAP_SOURCE_HEADER
402 conf_str += "<moduleName>%s</moduleName>" % self.module_name.upper()
404 conf_str += "<moduleName>default</moduleName>"
407 conf_str += "<icChannelId></icChannelId>"
409 conf_str += "<trapEnFlg></trapEnFlg>"
411 conf_str += "<trapEnLevel></trapEnLevel>"
413 conf_str += CE_GET_TRAP_SOURCE_TAIL
414 recv_xml = self.netconf_get_config(conf_str=conf_str)
501 conf_str = CE_MERGE_TRAP_GLOBAL_HEADER
504 conf_str += "<trapTimeStamp>%s</trapTimeStamp>" % self.trap_time_stamp.upper()
506 conf_str += "<icTrapBuffEn>%s</icTrapBuffEn>" % self.trap_buff_enable
508 conf_str += "<trapBuffSize>%s</trapBuffSize>" % self.trap_buff_size
510 conf_str += CE_MERGE_TRAP_GLOBAL_TAIL
512 recv_xml = self.netconf_set_config(conf_str=conf_str)
535 conf_str = CE_MERGE_TRAP_GLOBAL_HEADER
538 conf_str += "<trapTimeStamp>DATE_SECOND</trapTimeStamp>"
540 conf_str += "<icTrapBuffEn>false</icTrapBuffEn>"
542 conf_str += "<trapBuffSize>256</trapBuffSize>"
544 conf_str += CE_MERGE_TRAP_GLOBAL_TAIL
546 recv_xml = self.netconf_set_config(conf_str=conf_str)
566 conf_str = CE_MERGE_TRAP_SOURCE_HEADER
569 conf_str += "<moduleName>%s</moduleName>" % self.module_name
571 conf_str += "<icChannelId>%s</icChannelId>" % self.channel_id
573 conf_str += "<trapEnFlg>%s</trapEnFlg>" % self.trap_enable
575 conf_str += "<trapEnLevel>%s</trapEnLevel>" % self.trap_level
577 conf_str += CE_MERGE_TRAP_SOURCE_TAIL
579 recv_xml = self.netconf_set_config(conf_str=conf_str)
604 conf_str = CE_DELETE_TRAP_SOURCE_HEADER
606 conf_str += "<moduleName>%s</moduleName>" % self.module_name
608 conf_str += "<icChannelId>%s</icChannelId>" % self.channel_id
609 conf_str += CE_DELETE_TRAP_SOURCE_TAIL
611 conf_str = CE_MERGE_TRAP_SOURCE_HEADER
613 conf_str += "<moduleName>%s</moduleName>" % self.module_name
615 conf_str += "<icChannelId>%s</icChannelId>" % self.channel_id
617conf_str += "<trapEnFlg>%s</trapEnFlg>" % CHANNEL_DEFAULT_TRAP_STATE.get(self.channel_id)
619conf_str += "<trapEnLevel>%s</trapEnLevel>" % CHANNEL_DEFAULT_TRAP_LEVEL.get(self.channel_id)
620 conf_str += CE_MERGE_TRAP_SOURCE_TAIL
622 recv_xml = self.netconf_set_config(conf_str=conf_str)