neutron/neutron/extensions/ecmp_routes.py
XiaoYu Zhu 9b2983743b L3 router support ECMP
This patch changes the policy for updating routes to support ECMP,
and will now add ECMP routes to the Neutron router namespace when
there are multiple routes pointing to the same destination address.

Change-Id: I842c1408ee0235bc54441e9ed69c8b87ea30651b
Related-Bug: #1880532
2021-07-13 15:13:29 +08:00

21 lines
846 B
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 neutron_lib.api.definitions import ecmp_routes as apidef
from neutron_lib.api import extensions
class Ecmp_routes(extensions.APIExtensionDescriptor):
"""Extension class supporting configuration of ECMP routes."""
api_definition = apidef