The imp module is gone from Python 3.12, but importlib has
the same reload() function. Let's use it.
Change-Id: Iab4381e743a443285a86941de195189e26e9e0fc
As is described in the doc[1], we should not iterate over sys.modules
directly because sys.modules can be changed during iterations.
[1] https://docs.python.org/3/library/sys.html#sys.modules
Change-Id: Iad4e19744ee78996728e44f3a1446c1c282ad437
In a recent test run for neutron-dynamic-routing I noticed
the command 'sudo sudo docker images'. Remove the superfluous
'sudo' as it is unnecessary.
Trivialfix
Change-Id: I89479892b2a8f887fecce597d288898707ae4127
The quagga container failed to work because docker now seems to reset
the permissions of the /run folder on starting. The solution is to
set the permissions in the startup script.
Use the opportunity to switch to a newer base container. We cannot go
beyond ubuntu:20.04 though, since after that quagga has been replaced by
frr, which will require some deeper changes.
Change-Id: I6bbd88c0d66bffa0a310364e26cd73286524fee3
Enforce new msgpack format (use_bin_type=True) in
ryu.services.protocols.bgp.net_ctrl.RpcSession; this option
is already used in ryu.lib.rpc.MessageEncoder
Backport from https://github.com/faucetsdn/ryu/commit/8990ed
Story: #2009283
Task: #46863
Change-Id: I2f04d74f85ade54e0826494f078c88a2a3e24a55
The library "nose", used for unit testing, is removed. This library
is in maintenance mode and is not compatible with Python3.10 [1].
Now all checks are implemented using "unittest". The methods are not
loaded in realtime into the test case execution; instead of this, this
patch uses "testscenarios.WithScenarios", that allows to execute the
same test with different defined scenarios.
NOTE: "BgpSpeakerTestBase" tests are disable temporarily. It is needed
to configure "docker" in the system in order to execute them.
[1]https://nose.readthedocs.io/en/latest/
Story: #2010063
Task: #45519
Change-Id: I92e9547a26e9bec6c2a9a011c49a70b82dbb373e
The library "distutils" will be deprecated in Python 3.10:
https://peps.python.org/pep-0632/
Story: #45393
Change-Id: I7cf48a5e56c28d6161c6dfef162871cedb1f1c46
This fixes a bug in RYU StreamServer where SSLContext was modified for
each connection. Now the SSLContext of the server socket is modified
only once in __init__
Backport from https://github.com/faucetsdn/ryu/commit/906b3a3e
Story: #2009283
Task: #43562
Change-Id: Ie7c2f4e202edff1f4286de31cf8314fdbec85f2d
* Encoding parameter is removed. UTF-8 is used always. [0]
* strict_map_key is changed to False to keep the older behaviour.
Default is changed to True in 1.0.0
Signed-off-by: Manu B <manu.b@est.tech>
[0]: https://github.com/msgpack/msgpack-python#major-breaking-changes-in-msgpack-10
Change-Id: I0e5902c4b13ab11f45f44bb9d9d9540d9630c9bb
Please note that this is a stop-gap measure. Also add a basic SSL
server test.
Co-authored-by: alex <atoptsoglou@suse.com>
Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Backport from https://github.com/faucetsdn/ryu/commit/01a09a0e
Story: #2009283
Task: #43614
Change-Id: I6c1ca6bb847581050faccb52570bfdfb2d26b448
Sometimes you don't know 'datapath_id', you need to initialize the class with 'br_name'
Backported from
c565ec6f77
Story: #2009283
Task: #43558
Change-Id: I51ccf9c91e2126b2229b86a7afa763499ccab586
This commit fixes a parsing error when a BGP update contains a "withdraw label"
equal to 0x000000 instead of 0x8000000 as stated in RFC 3107. This commits
treats both labels as "withdraw label"
Signed-off-by: Benjamin Villain <villainb@amazon.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Backported from
62b4c07464
Story: #2009283
Task: #43557
Change-Id: I53f1e09af54c12b1724ab8e93373885c0ab11bab
…te advertisements:
tunnel_endpoint_ip: To allow for VTEP IPs other than the implicit local
router ID
mac_mobility: To insert an extended community with a sequence number
for managing MAC Mobility
Backport of https://github.com/faucetsdn/ryu/commit/5722c7c8
Story: #2009283
Task: #43619
Change-Id: I3c72752ee0894e8e1f3f9b50bbc7e8033e7efa4d