diff --git a/lower-constraints.txt b/lower-constraints.txt index 6608e778e77..c1e002de288 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -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 diff --git a/neutron/privileged/agent/linux/ip_lib.py b/neutron/privileged/agent/linux/ip_lib.py index 5e62385d9e6..a9fcaa20204 100644 --- a/neutron/privileged/agent/linux/ip_lib.py +++ b/neutron/privileged/agent/linux/ip_lib.py @@ -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() diff --git a/requirements.txt b/requirements.txt index a4faf2c917a..8f5fb0433ea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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