strongswan/src/libcharon/plugins/vici/python
odi79 0d66b01a81 vici: Fix type error exception in Python bindings
Line 66 yields "TypeError: can't concat bytes to str" using Python 3.4.
"requestdata" was introduced in 22f08609f1 but is not actually used.
Since the original "request" is not used anywhere else this can be changed
to be similar to the other UTF-8 encoding changes in that commit.

Fixes: 22f08609f1 ("vici: Explicitly set the Python encoding type").
Closes strongswan/strongswan#66.
2017-04-19 10:00:21 +02:00
..
vici vici: Fix type error exception in Python bindings 2017-04-19 10:00:21 +02:00
.gitignore vici: Generate a version specific setup.py for setuptools installation 2015-03-18 13:59:14 +01:00
LICENSE vici: Move event (un-)registration to a helper method in Python library 2015-08-17 11:12:17 +02:00
MANIFEST.in vici: Add README.rst to be used as description on PyPI 2016-05-11 11:16:43 +02:00
Makefile.am vici: Put source distribution in the dist dir in the build directory 2016-05-11 14:33:08 +02:00
README.rst vici: Add README.rst to be used as description on PyPI 2016-05-11 11:16:43 +02:00
setup.py.in vici: Add README.rst to be used as description on PyPI 2016-05-11 11:16:43 +02:00

README.rst

About
-----

The strongSwan VICI protocol allows external applications to monitor, configure
and control the IKE daemon charon. This Python package provides a native client
side implementation of the VICI protocol, well suited to script automated tasks
in a reliable way.


Example Usage
-------------

.. code-block:: python

    >>> import vici
    >>> s = vici.Session()
    >>> s.version()
    OrderedDict([('daemon', b'charon'), ('version', b'5.4.0'),
    ('sysname', b'Linux'), ('release', b'3.13.0-27-generic'), ('machine', b'x86_64')])
    >>> s.load_pool({"p1": {"addrs": "10.0.0.0/24"}})
    OrderedDict([('success', b'yes')])
    >>> s.get_pools()
    OrderedDict([('p1', OrderedDict([('base', b'10.0.0.0'), ('size', b'254'),
    ('online', b'0'), ('offline', b'0')]))])