abf5cbd68e
Add the functional bgp driver. Currently, only driver based on ryu is supported. Change-Id: I85206e387de79a3da8c2929cd4163cf341fea704 Partially-implements: blueprint bgp-dynamic-routing
41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
# 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
|
|
|
|
from dragonflow._i18n import _
|
|
|
|
|
|
df_bgp_app_opts = [
|
|
cfg.IntOpt(
|
|
'pulse_interval',
|
|
default=5,
|
|
help=_('The interval(in seconds) of BGP service to get data updates '
|
|
'and advertise BGP routes')),
|
|
cfg.StrOpt('bgp_speaker_driver',
|
|
default='neutron_dynamic_routing.services.bgp.agent.driver.'
|
|
'ryu.driver.RyuBgpDriver',
|
|
help=_("BGP speaker driver class to be instantiated.")),
|
|
cfg.StrOpt('bgp_router_id',
|
|
default='127.0.0.1',
|
|
help=_("32-bit BGP identifier, typically an IPv4 address "
|
|
"owned by the system running the BGP DrAgent."))
|
|
]
|
|
|
|
|
|
def register_opts():
|
|
cfg.CONF.register_opts(df_bgp_app_opts, group='df_bgp')
|
|
|
|
|
|
def list_opts():
|
|
return {'df_bgp': df_bgp_app_opts}
|