Annotation of embedaddon/strongswan/src/libcharon/plugins/vici/python/README.rst, revision 1.1.1.1

1.1       misho       1: About
                      2: -----
                      3: 
                      4: The strongSwan VICI protocol allows external applications to monitor, configure
                      5: and control the IKE daemon charon. This Python package provides a native client
                      6: side implementation of the VICI protocol, well suited to script automated tasks
                      7: in a reliable way.
                      8: 
                      9: 
                     10: Example Usage
                     11: -------------
                     12: 
                     13: .. code-block:: python
                     14: 
                     15:     >>> import vici
                     16:     >>> s = vici.Session()
                     17:     >>> s.version()
                     18:     OrderedDict([('daemon', b'charon'), ('version', b'5.4.0'),
                     19:     ('sysname', b'Linux'), ('release', b'3.13.0-27-generic'), ('machine', b'x86_64')])
                     20:     >>> s.load_pool({"p1": {"addrs": "10.0.0.0/24"}})
                     21:     OrderedDict([('success', b'yes')])
                     22:     >>> s.get_pools()
                     23:     OrderedDict([('p1', OrderedDict([('base', b'10.0.0.0'), ('size', b'254'),
                     24:     ('online', b'0'), ('offline', b'0')]))])

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>