privileges. If libcap-ng is installed, then Open vSwitch will
automatically build with support for it.
- - Python 2.7.
+ - Python 2.7. You must also have the Python six library.
On Linux, you may choose to compile the kernel module that comes with
the Open vSwitch distribution or to use the kernel module built into
from iproute2 (part of all major distributions and available at
http://www.linux-foundation.org/en/Net:Iproute2).
+ - Python 2.7. You must also have the Python six library.
+
On Linux you should ensure that /dev/urandom exists. To support TAP
devices, you must also ensure that /dev/net/tun exists.
python-all (>= 2.7),
python-qt4,
python-twisted-conch,
- python-zopeinterface
+ python-zopeinterface,
+ python-six
Standards-Version: 3.9.3
Homepage: http://openvswitch.org/
Package: openvswitch-common
Architecture: linux-any
Depends: openssl,
- python,
- python (>= 2.7) | python-argparse,
+ python (>= 2.7),
+ python-six,
${misc:Depends},
${shlibs:Depends}
Suggests: ethtool
fi
done
done
+ if test $ovs_cv_python != no; then
+ if test -x "$ovs_cv_python" && ! "$ovs_cv_python" -c 'import six' >/dev/null 2>&1; then
+ ovs_cv_python=no
+ AC_MSG_WARN([Missing Python six library.])
+ fi
+ fi
fi])
AC_SUBST([HAVE_PYTHON])
AM_MISSING_PROG([PYTHON], [python])
import exceptions
import sys
-import xmlrpclib
+import six.moves.xmlrpc_client
from twisted.internet import reactor
from twisted.internet.error import CannotListenError
from twisted.web import xmlrpc
Returns the ovs-test server IP address that the other ovs-test server
with the given ip will see.
"""
- server1 = xmlrpclib.Server("http://%s:%u/" % (his_ip, his_port))
+ server1 = six.moves.xmlrpc_client.Server("http://%s:%u/" %
+ (his_ip, his_port))
return server1.get_my_address()
def xmlrpc_create_udp_listener(self, port):
import signal
import subprocess
import re
-import xmlrpclib
+
+import six.moves.xmlrpc_client
def str_ip(ip_address):
def rpc_client(ip, port):
- return xmlrpclib.Server("http://%s:%u/" % (ip, port), allow_none=True)
+ return six.moves.xmlrpc_client.Server("http://%s:%u/" % (ip, port),
+ allow_none=True)
def sigint_intercept():
BuildRequires: autoconf automake libtool
BuildRequires: systemd-units openssl openssl-devel
-BuildRequires: python python-twisted-core python-zope-interface PyQt4
+BuildRequires: python python-twisted-core python-zope-interface PyQt4 python-six
BuildRequires: desktop-file-utils
BuildRequires: groff graphviz
# make check dependencies
License: ASL 2.0
BuildArch: noarch
Requires: python
+Requires: python-six
%description -n python-openvswitch
Python bindings for the Open vSwitch database
Release: 1
Source: openvswitch-%{version}.tar.gz
Buildroot: /tmp/openvswitch-rpm
-Requires: logrotate, python >= 2.7
+Requires: logrotate, python >= 2.7, python-six
BuildRequires: openssl-devel
%bcond_without check