Debian Codegraph @

blazar_tempest_plugin/config.py

raw
1 # Copyright 2014 Intel Corporation
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 from oslo_config import cfg
17
18
19 service_available_group = cfg.OptGroup(name="service_available",
20 title="Available OpenStack Services")
21
22 service_option = [
23 cfg.BoolOpt("blazar",
24 default=True,
25 help="Whether or not blazar is expected to be available"),
26 ]
27
28 resource_reservation_group = cfg.OptGroup(name='resource_reservation',
29 title='Resource reservation service '
30 'options')
31
32 ResourceReservationGroup = [
33 cfg.StrOpt('endpoint_type',
34 default='publicURL',
35 choices=['public', 'admin', 'internal',
36 'publicURL', 'adminURL', 'internalURL'],
37 help="The endpoint type to use for the resource_reservation "
38 "service."),
39 cfg.IntOpt('lease_interval',
40 default=10,
41 help="Time in seconds between lease status checks."),
42 cfg.IntOpt('lease_end_timeout',
43 default=300,
44 help="Timeout in seconds to wait for a lease to finish.")
45 ]