~ubuntu-branches/ubuntu/vivid/neutron/vivid-updates

« back to all changes in this revision

Viewing changes to neutron/plugins/ml2/drivers/mlnx/agent/config.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-03-30 11:17:19 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20150330111719-h0gx7233p4jkkgfh
Tags: 1:2015.1~b3-0ubuntu1
* New upstream milestone release:
  - d/control: Align version requirements with upstream.
  - d/control: Add new dependency on oslo-log.
  - d/p/*: Rebase.
  - d/control,d/neutron-plugin-hyperv*: Dropped, decomposed into
    separate project upstream.
  - d/control,d/neutron-plugin-openflow*: Dropped, decomposed into
    separate project upstream.
  - d/neutron-common.install: Add neutron-rootwrap-daemon and 
    neutron-keepalived-state-change binaries.
  - d/rules: Ignore neutron-hyperv-agent when installing; only for Windows.
  - d/neutron-plugin-cisco.install: Drop neutron-cisco-cfg-agent as
    decomposed into separate project upstream.
  - d/neutron-plugin-vmware.install: Drop neutron-check-nsx-config and
    neutron-nsx-manage as decomposed into separate project upstream.
  - d/control: Add dependency on python-neutron-fwaas to neutron-l3-agent.
* d/pydist-overrides: Add overrides for oslo packages.
* d/control: Fixup type in package description (LP: #1263539).
* d/p/fixup-driver-test-execution.patch: Cherry pick fix from upstream VCS
  to support unit test exection in out-of-tree vendor drivers.
* d/neutron-common.postinst: Allow general access to /etc/neutron but limit
  access to root/neutron to /etc/neutron/neutron.conf to support execution
  of unit tests in decomposed vendor drivers.
* d/control: Add dependency on python-neutron-fwaas to neutron-l3-agent
  package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2013 Mellanox Technologies, Ltd
 
2
#
 
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
 
6
#
 
7
#    http://www.apache.org/licenses/LICENSE-2.0
 
8
#
 
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
 
12
# implied.
 
13
# See the License for the specific language governing permissions and
 
14
# limitations under the License.
 
15
 
 
16
from oslo_config import cfg
 
17
 
 
18
from neutron.agent.common import config
 
19
 
 
20
DEFAULT_INTERFACE_MAPPINGS = []
 
21
 
 
22
eswitch_opts = [
 
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")),
 
39
]
 
40
 
 
41
agent_opts = [
 
42
    cfg.IntOpt('polling_interval', default=2,
 
43
               help=_("The number of seconds the agent will wait between "
 
44
                      "polling for local device changes.")),
 
45
]
 
46
 
 
47
 
 
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)