Merge "Specify C shared library in Pyroute2 namespace context"

This commit is contained in:
Zuul 2020-08-07 06:26:22 +00:00 committed by Gerrit Code Review
commit 77e9a52e52
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ PyMySQL==0.7.6
pyOpenSSL==17.1.0
pyparsing==2.1.0
pyperclip==1.5.27
pyroute2==0.5.7
pyroute2==0.5.13
python-dateutil==2.5.3
python-designateclient==2.7.0
python-editor==1.0.3

View File

@ -190,7 +190,7 @@ def get_iproute(namespace):
# `NetNS` -- RTNL API to another network namespace
if namespace:
# do not try and create the namespace
return pyroute2.NetNS(namespace, flags=0)
return pyroute2.NetNS(namespace, flags=0, libc=priv_linux.get_cdll())
else:
return pyroute2.IPRoute()

View File

@ -47,7 +47,7 @@ os-ken >= 0.3.0 # Apache-2.0
ovs>=2.8.0 # Apache-2.0
ovsdbapp>=1.3.0 # Apache-2.0
psutil>=3.2.2 # BSD
pyroute2>=0.5.7;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
pyroute2>=0.5.13;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
pyOpenSSL>=17.1.0 # Apache-2.0
python-novaclient>=9.1.0 # Apache-2.0