当前位置: 首页>>代码示例>>Python>>正文


Python SimpleType.__init__方法代码示例

本文整理汇总了Python中translator.base.simpletype.SimpleType.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SimpleType.__init__方法的具体用法?Python SimpleType.__init__怎么用?Python SimpleType.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在translator.base.simpletype.SimpleType的用法示例。


在下文中一共展示了SimpleType.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
    def __init__(self, ifc_key='ScanningThreatRate', asa_key = ScanningThreatDetection.THREAT_DETECTION_SCANNING_RATE):
        '''Constructor'''
        self.extra_cli = None

        SimpleType.__init__(self, ifc_key = ifc_key, asa_key = asa_key,
            asa_gen_template = ScanningThreatDetection.THREAT_DETECTION_SCANNING_RATE + ' rate-interval %(rate_interval)s average-rate %(average_rate)s burst-rate %(burst_rate)s',
            response_parser = ScanningThreatDetection.ignore_msg_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:9,代码来源:scanning_threat_detect.py

示例2: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self, name, asa_key = "flow-export destination"):
     '''Constructor'''
     
     self.interface = None
     SimpleType.__init__(self, name, asa_key,
         asa_gen_template = 'flow-export destination %(interface)s %(host)s %(port)s',
         response_parser = TemplateAndCollectors.ignore_msg_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:9,代码来源:netflow_objects.py

示例3: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self, name):
     SimpleType.__init__(
         self,
         name,
         asa_gen_template="failover link %(interface_name)s %(interface)s",
         response_parser=failover_response_parser,
     )
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:9,代码来源:failover.py

示例4: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
    def __init__(self):
        '''
        Constructor
        '''

        SimpleType.__init__(self, ifc_key = 'IPSSettings', asa_key = 'ips',
                            asa_gen_template='ips %(operate_mode)s %(fail_mode)s',
                            response_parser = cli_interaction.ignore_warning_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:10,代码来源:ips_settings.py

示例5: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
    def __init__(self, ifc_key='BasicThreatDetectionRateAclDrop', asa_key='threat-detection rate acl-drop'):
        '''Constructor '''

        self.rate_type = None
        self.extra_cli = None
        SimpleType.__init__(self, ifc_key, asa_key,
            asa_gen_template = 'threat-detection rate %(rate)s rate-interval %(rate_interval)s average-rate %(average_rate)s burst-rate %(burst_rate)s',
            response_parser = cli_interaction.ignore_warning_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:10,代码来源:basic_threat_detect.py

示例6: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self, name):
     '''@todo: use Route.__init__ instead of SimpleType.__init__
        Route.__init__(self, name, defaults=None, asa_gen_template = 'ipv6 route %(interface)s %(prefix)s %(gateway)s')
     '''
     SimpleType.__init__(self, name,
                         asa_gen_template = 'ipv6 route %(interface)s %(prefix)s %(gateway)s %(hop_count)s %(tunneled)s',
                         defaults = {'hop_count': '', 'tunneled': ''},
                         response_parser = static_route_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:10,代码来源:static_route.py

示例7: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self):
     SimpleType.__init__(self, ifc_key = 'health_check',
                         asa_key = 'health-check',
                         asa_mode_template = 'cluster group %(group_name)s',
                         asa_gen_template = 'health-check holdtime %(health_check)s')
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:7,代码来源:cluster.py

示例8: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self):
     SimpleType.__init__(
         self,
         ifc_key=AccessGroupGlobal.__name__,
         asa_key='access-group',
         asa_gen_template='access-group %(access_list_name)s global')
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:8,代码来源:access_rule.py

示例9: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self):
     '''
     Constructor
     '''
     SimpleType.__init__(self, 'timeout_idle', 'set connection timeout idle', asa_gen_template='set connection timeout idle %(idle_time)s', defaults={'idle_time': IDLE_TIME_DEFAULT})
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:7,代码来源:connection_limits.py

示例10: __init__

# 需要导入模块: from translator.base.simpletype import SimpleType [as 别名]
# 或者: from translator.base.simpletype.SimpleType import __init__ [as 别名]
 def __init__(self, name, asa_key):
     '''Constructor'''
     self.stat_type = name[len('AdvancedThreatDetection'):].lower()
     self.folder_name = name
     SimpleType.__init__(self, name, asa_key,
         response_parser = cli_interaction.ignore_warning_response_parser)
开发者ID:AlexFengCisco,项目名称:ACI_REST_Project,代码行数:8,代码来源:advanced_threat_detect.py


注:本文中的translator.base.simpletype.SimpleType.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。