Commit Graph

16 Commits

Author SHA1 Message Date
elajkat c021b106d9 Use bgp api-def from neutron-lib
As neutron-dynamic-routing is a Neutron stadium project the api-def
and the api-ref should be in neutron-lib.

Change-Id: Idccc69f025a0d1ec0453d13a7d81b94e3a15149d
Depends-On: https://review.opendev.org/c/openstack/neutron-lib/+/788322
2021-05-31 12:32:55 +00:00
zhanghao f8f9463cf7 Remove usage of six
With python3.x, classes can use 'metaclass=' instead of
'six.add_metaclass', 'six.integer_type' can be replaced
by 'int', 'six.string_type' and 'six.text_type' are just
'str'.

Change-Id: I40a020aa4a8e69a8dd7e800352dc54a9e694d500
2020-05-27 06:58:27 -04:00
YAMAMOTO Takashi 39d9d0de9e Fix TypeError for BgpSpeakerRescheduleError
Inherit Conflicts to be consistent with RouterReschedulingFailed.

Closes-Bug: #1738983
Change-Id: If2d6151c161d1b0848ecb28bdb823676249e1221
2018-03-06 19:16:22 +09:00
YAMAMOTO Takashi 78ae7cb8f5 Update after agent extension rehome
After the recent Neutron change. [1]

[1] I18aebec1e2b5b361d9b96192d4a59e5424c6a80b

Closes-Bug: #1734265
Change-Id: I2d4624013e0df9670b17d73a89d17f8e2b5bdb0a
2017-11-24 18:08:58 +09:00
Hirofumi Ichihara 972756f603 Support 4-Byte AS Numbers
Now neutron_dynamic_routing supports 2 byte AS numbers only.
This patch expands AS numbers constraint so that it supports
4 byte AS numbers. It expects that operators use asplain
notation to set AS numbers[1]. That's backward compatible with
existing 2 byte AS numbers.

[1]: https://tools.ietf.org/html/rfc5396

Change-Id: I06ae0c42d983e88e1f38c501d5c85a7956f195ad
Closes-Bug: #1573092
2017-11-06 09:39:34 +00:00
Armando Migliaccio c576ffd48d Use FAULT_MAP from neutron-lib
According to Ib051555ea8496ed7eec8ed30733c964012e31c32

Change-Id: Icc92e767d1d60e235a152490864ea4cd14c3ad53
2017-11-04 16:28:31 -07:00
fumihiko kakuma 0e7e93051e Reschedule a bgp speaker binded to a down dr-agent
If a bgp speaker is binded to a down dr-agent, unbind and reschedule it.
If there is an unbinded bgp speaker, schedule it.

Change-Id: If5de81f1ca9b7781f48fd9bea84848f4261ccbe6
2017-08-29 08:33:25 +09:00
Gary Kotton 6a4916e313 Use flake8-import-order plugin
Automate the process

Change-Id: Ic2ff59ed8b5e4677117a5fca5ab32c26b2401724
2017-07-07 07:06:10 +00:00
Roey Chen 64699728bd Fix exception message for DuplicateBgpPeerIpException
Exception message was located under '_message' field of the exception
object, instead of the expected 'message' field.

TrivialFix

Change-Id: I4243bc7d08973d4753141ce1047913af4d16c525
2017-05-16 05:36:28 -07:00
Henry Gessau 130861b86b Use ExtensionDescriptor from neutron-lib
ExtensionDescriptor has been rehomed to neutron-lib and is being
removed from neutron core.

See https://review.openstack.org/398113

Depends-On: I5a111e0033e518e39b3042f047ee9eebba77a0d5

Change-Id: Ida8c5302d5ad632d48ca79034ceb36b7637dd341
2016-11-28 15:33:04 -08:00
Henry Gessau e1bf61996a Use DB field sizes instead of _MAX_LEN constants
The following _MAX_LEN constants are being removed from
neutron/api/v2/attributes.py in [1]. The corresponding DB field size
constants from neutron_lib.db.constants should be used instead.

 NAME_MAX_LEN              -->  NAME_FIELD_SIZE
 TENANT_ID_MAX_LEN         -->  PROJECT_ID_FIELD_SIZE
 DESCRIPTION_MAX_LEN       -->  DESCRIPTION_FIELD_SIZE
 LONG_DESCRIPTION_MAX_LEN  -->  LONG_DESCRIPTION_FIELD_SIZE
 DEVICE_ID_MAX_LEN         -->  DEVICE_ID_FIELD_SIZE
 DEVICE_OWNER_MAX_LEN      -->  DEVICE_NAME_FIELD_SIZE

In alembic migration scripts, the raw numerical value shall be used.

For more information, see [2].

[1] https://review.openstack.org/399891
[2] http://lists.openstack.org/pipermail/openstack-dev/2016-October/105789.html

Change-Id: I038d6d32eefa57c5fc57b870a33d09bef1db296c
2016-11-26 00:14:16 -05:00
Henry Gessau 59d082e988 Remove PLURALS
PLURALS is being removed from neutron core.
See https://review.openstack.org/398489

Change-Id: Ifb3bd755a1d453a7fb86a6bf9f46512661ead74d
2016-11-25 15:00:26 -05:00
Armando Migliaccio 04538fc4c9 Switch to using plugins directory in lieu of neutron manager
Partially-implements: blueprint neutron-lib

Depends-on: I7331e914234c5f0b7abe836604fdd7e4067551cf
Change-Id: Id8d55cce14489fa06ec6542ebefb317623ea5d2d
2016-11-11 16:47:18 -08:00
fumihiko kakuma 635a4df588 Fix no attribute error for 'convert_to_boolean'
convert_to_boolean has been moved from neutron.api.v2.attributes to
neutron_lib.api.converters.

Partial-Bug: #1640319
Change-Id: Id894814c8fbdabd80b708add01c2d99be1e10d6a
2016-11-09 21:02:09 +09:00
Gary Kotton 8214a8a2b7 Fix exception translation
An exception should not have a log translation.

Please see http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: I57a3c09193e9b289196d07d1c36352c9133b86e0
2016-06-06 22:41:46 -07:00
Ryan Tidwell 270b37f22b Move BGP service plugin, agent, and tests out of Neutron repo
This patch moves the BGP service plugin, agent, driver, and
tests out of the neutron repository and into the
neutron-dynamic-routing repository.

Partially-Implements: blueprint bgp-spinout
Partial-Bug: #1560003
Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com>

Change-Id: I80ea28a51d7b18e67d6ed4cd2da22520f950300f
2016-05-16 12:22:24 +00:00