本文整理汇总了Python中base.simpletype.SimpleType.ifc2asa方法的典型用法代码示例。如果您正苦于以下问题:Python SimpleType.ifc2asa方法的具体用法?Python SimpleType.ifc2asa怎么用?Python SimpleType.ifc2asa使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base.simpletype.SimpleType
的用法示例。
在下文中一共展示了SimpleType.ifc2asa方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ifc2asa
# 需要导入模块: from base.simpletype import SimpleType [as 别名]
# 或者: from base.simpletype.SimpleType import ifc2asa [as 别名]
def ifc2asa(self, no_asa_cfg_stack, asa_cfg_list):
'''Override the default implementation for modify action:
Need to issue no command to delete old one and then issue command to set the new one.
'''
if self.get_action() == State.MODIFY:
old_cli = self.get_old_cli()
if old_cli:
self.generate_cli(no_asa_cfg_stack, 'no ' + old_cli)
SimpleType.ifc2asa(self, no_asa_cfg_stack, asa_cfg_list)
示例2: ifc2asa
# 需要导入模块: from base.simpletype import SimpleType [as 别名]
# 或者: from base.simpletype.SimpleType import ifc2asa [as 别名]
def ifc2asa(self, no_asa_cfg_stack, asa_cfg_list):
'Override default implementation to deal with different CLI for no commands.'
tmp_no_asa_cfg_stack = []
result = SimpleType.ifc2asa(self, tmp_no_asa_cfg_stack, asa_cfg_list)
if tmp_no_asa_cfg_stack:
action = self.get_action()
if action == State.DESTROY and self.is_removable:
if self.get_asa_key() == 'ip audit info':
self.generate_cli(no_asa_cfg_stack, 'no ip audit info')
else:
self.generate_cli(no_asa_cfg_stack, 'no ip audit attack')
return result
示例3: gen_ifc2asa
# 需要导入模块: from base.simpletype import SimpleType [as 别名]
# 或者: from base.simpletype.SimpleType import ifc2asa [as 别名]
def gen_ifc2asa(self, no_asa_cfg_stack, asa_cfg_list):
'''Generate ASA configuration from IFC configuration delta.
@see SimpleType.ifc2asa for parameter details
'''
SimpleType.ifc2asa(self, no_asa_cfg_stack, asa_cfg_list)