Beispiel #1
0
 def test_rack_device_valid_invalid_dict(self):
     devices_str = '[{' + json.dumps(RACK_DEVICE_1) + ']'
     lob_object = config_types.ListOfObjects(bounds=True)
     self.assertRaises(SyntaxError, lob_object, devices_str)
               help=_('Connection Limit')),
    cfg.IntOpt('conn_resume',
               min=1,
               max=1000000,
               default=None,
               help=_('Connection Resume')),
    cfg.StrOpt('template_server',
               default=None,
               help=_('Provide an existing Server template name on VThunder '
                      'to associate with server')),
]

A10_HARDWARE_THUNDER_OPTS = [
    config_types.ListOfDictOpt('devices',
                               default=[],
                               item_type=config_types.ListOfObjects(),
                               bounds=True,
                               help=_('List of all device configuration'))
]

A10_HEALTH_MANAGER_OPTS = [
    cfg.IPOpt('udp_server_ip_address',
              help=_('Server IP address that sends udp packets for '
                     'health manager.')),
    cfg.IPOpt('bind_ip',
              default='127.0.0.1',
              help=_('IP address the controller will listen on for '
                     'heart beats')),
    cfg.IntOpt('failover_timeout',
               default=600,
               help=_('Interval(in seconds) to wait before considering '
Beispiel #3
0
 def test_rack_device_valid_invalid_array(self):
     devices_str = '[' + json.dumps(RACK_DEVICE_1)
     lob_object = config_types.ListOfObjects(bounds=True)
     self.assertRaises(ValueError, lob_object, devices_str)