1
# Copyright 2013 Mellanox Technologies, Ltd
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
7
# http://www.apache.org/licenses/LICENSE-2.0
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
16
from oslo_config import cfg
18
from neutron.agent.common import config
20
DEFAULT_INTERFACE_MAPPINGS = []
23
cfg.ListOpt('physical_interface_mappings',
24
default=DEFAULT_INTERFACE_MAPPINGS,
25
help=_("List of <physical_network>:<physical_interface>")),
26
cfg.StrOpt('daemon_endpoint',
27
default='tcp://127.0.0.1:60001',
28
help=_('eswitch daemon end point')),
29
cfg.IntOpt('request_timeout', default=3000,
30
help=_("The number of milliseconds the agent will wait for "
31
"response on request to daemon.")),
32
cfg.IntOpt('retries', default=3,
33
help=_("The number of retries the agent will send request "
34
"to daemon before giving up")),
35
cfg.IntOpt('backoff_rate', default=2,
36
help=_("backoff rate multiplier for waiting period between "
37
"retries for request to daemon, i.e. value of 2 will "
38
" double the request timeout each retry")),
42
cfg.IntOpt('polling_interval', default=2,
43
help=_("The number of seconds the agent will wait between "
44
"polling for local device changes.")),
48
cfg.CONF.register_opts(eswitch_opts, "ESWITCH")
49
cfg.CONF.register_opts(agent_opts, "AGENT")
50
config.register_agent_state_opts_helper(cfg.CONF)