26707bdbe7
We have git to track authorship, so let's not pad source files with it as well. A hacking check has been added for this. The value is N322. Change-Id: Iab0b64d417e0bb41a6b455e2ac377deee64ec3ee
58 lines
2.5 KiB
Python
58 lines
2.5 KiB
Python
# Copyright 2014 Alcatel-Lucent USA Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from oslo.config import cfg
|
|
|
|
|
|
restproxy_opts = [
|
|
cfg.StrOpt('server', default='localhost:8800',
|
|
help=_("IP Address and Port of Nuage's VSD server")),
|
|
cfg.StrOpt('serverauth', default='username:password',
|
|
secret=True,
|
|
help=_("Username and password for authentication")),
|
|
cfg.BoolOpt('serverssl', default=False,
|
|
help=_("Boolean for SSL connection with VSD server")),
|
|
cfg.StrOpt('base_uri', default='/',
|
|
help=_("Nuage provided base uri to reach out to VSD")),
|
|
cfg.StrOpt('organization', default='system',
|
|
help=_("Organization name in which VSD will orchestrate "
|
|
"network resources using openstack")),
|
|
cfg.StrOpt('auth_resource', default='',
|
|
help=_("Nuage provided uri for initial authorization to "
|
|
"access VSD")),
|
|
cfg.StrOpt('default_net_partition_name',
|
|
default='OpenStackDefaultNetPartition',
|
|
help=_("Default Network partition in which VSD will "
|
|
"orchestrate network resources using openstack")),
|
|
cfg.IntOpt('default_floatingip_quota',
|
|
default=254,
|
|
help=_("Per Net Partition quota of floating ips")),
|
|
]
|
|
|
|
syncmanager_opts = [
|
|
cfg.BoolOpt('enable_sync', default=False,
|
|
help=_("Nuage plugin will sync resources between openstack "
|
|
"and VSD")),
|
|
cfg.IntOpt('sync_interval', default=0,
|
|
help=_("Sync interval in seconds between openstack and VSD. "
|
|
"It defines how often the synchronization is done. "
|
|
"If not set, value of 0 is assumed and sync will be "
|
|
"performed only once, at the Neutron startup time.")),
|
|
]
|
|
|
|
|
|
def nuage_register_cfg_opts():
|
|
cfg.CONF.register_opts(restproxy_opts, "RESTPROXY")
|
|
cfg.CONF.register_opts(syncmanager_opts, "SYNCMANAGER")
|