Recent change in pyroute2 introduced partial proxy to postpone the import,
on the downside this broke isinstance() check within LNST that did
comparison of unresolved IPRSocket object. More details in
https://github.com/svinota/pyroute2/issues/109
To do the check we can import the class directly from the lower pyroute2
module as suggested by Pete Saveliev.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Common/ConnectionHandler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/ConnectionHandler.py b/lnst/Common/ConnectionHandler.py
index 36349dc..8beaafc 100644
--- a/lnst/Common/ConnectionHandler.py
+++ b/lnst/Common/ConnectionHandler.py
@@ -15,7 +15,7 @@ import select
import cPickle
import socket
from _multiprocessing import Connection
-from pyroute2 import IPRSocket
+from pyroute2.netlink.rtnl import IPRSocket
def send_data(s, data):
try:
--
1.9.3