Example #1
0
 def __init__(self):
     DMObject.__init__(self, FailoverConfig.__name__)
     ifc_asa_keys = (("lan_unit", "failover lan unit"),
                     ("key_secret", "failover key"), ("key_in_hex",
                                                      "failover key hex"),
                     ("interface_policy", "failover interface-policy"))
     for ifc, asa in ifc_asa_keys:
         self.register_child(
             SimpleType(ifc, asa, response_parser=failover_response_parser))
     self.register_child(
         DMBoolean('http_replication',
                   'failover replication http',
                   on_value="enable",
                   response_parser=failover_response_parser))
     self.register_child(
         DMList('mgmt_standby_ip', MgmtStandbyIP, asa_key='ip address'))
     self.register_child(
         DMList('failover_lan_interface',
                FailoverLANInterface,
                asa_key='failover lan interface'))
     self.register_child(
         DMList('failover_link_interface',
                FailoverLinkInterface,
                asa_key='failover link'))
     self.register_child(
         DMList('failover_ip', FailoverIP, asa_key='failover interface ip'))
     self.register_child(
         DMList('polltime', FailoverPolltime, asa_key='failover polltime'))
     self.response_parser = failover_response_parser
     self.register_child(
         DMBoolean(ifc_key="failover",
                   asa_key="failover",
                   on_value="enable",
                   response_parser=failover_response_parser))
Example #2
0
    def __init__(self):
        '''
        Constructor
        '''

        DMObject.__init__(self,
                          ifc_key='InspectionSettings',
                          asa_key='inspect')
        self.mode_command = None

        for ifc, cli_prefix, is_default in InspectionSubCommands.ifc_asa_keys:
            self.register_child(DMBoolean(ifc, cli_prefix, on_value="enable"))
Example #3
0
    def __init__(self):
        DMObject.__init__(self, LoggingConfig.__name__)

        ifc_asa_keys = (("facility", "logging facility"), ("buffered_level",
                                                           "logging buffered"),
                        ("buffer_size", "logging buffer-size"),
                        ("flash_maximum_allocation",
                         "logging flash-maximum-allocation"),
                        ("flash_minimum_free", "logging flash-minimum-free"))
        for (ifc, asa) in ifc_asa_keys:
            self.register_child(
                SimpleType(ifc,
                           asa,
                           is_removable=True,
                           response_parser=cli_interaction.
                           ignore_warning_response_parser))

        self.register_child(LoggingTrap())
        ifc_asa_keys_boolean_type = (("enable_logging", "logging enable"),
                                     ("standby", "logging standby"),
                                     ("flash_bufferwrap",
                                      "logging flash-bufferwrap"),
                                     ("permit_hostdown",
                                      "logging permit-hostdown"))
        for (ifc, asa) in ifc_asa_keys_boolean_type:
            self.register_child(
                DMBoolean(ifc,
                          asa,
                          on_value="enable",
                          response_parser=cli_interaction.
                          ignore_warning_response_parser))

        self.register_child(
            DMList('logging_host', LoggingHost, asa_key='logging host'))
        self.register_child(
            DMList('logging_message',
                   LoggingMessage,
                   asa_key='logging message'))
        self.response_parser = cli_interaction.ignore_warning_response_parser
 def __init__(self, instance):
     DMBoolean.__init__(self, ifc_key = instance, asa_key = 'ipv6 enable', on_value="enable")
     self.cli_key = 'enable'
Example #5
0
 def __init__(self, instance):
     DMBoolean.__init__(self,
                        ifc_key=instance,
                        asa_key='ipv6 enable',
                        on_value="enable")
     self.cli_key = 'enable'
Example #6
0
 def __init__(self):
     DMBoolean.__init__(self, ifc_key = 'enable',
                         asa_key = 'enable',
                         on_value = 'enable',
                         response_parser=cluster_response_parser)
Example #7
0
 def __init__(self):
     DMBoolean.__init__(self, ifc_key = 'console_replicate',
                         asa_key = 'console-replicate',
                         on_value = 'enable')