Library talking vici to strongSwan
Project description
A simple python library that allow control of strongSwan over the vici interface which was introduced in version 5.2.0. It is aimed to be straight forward and easy to use.
Example usage
>>> import vici
>>> s = vici.Session()
>>> s.version()
{'release': '3.18.6-1-ARCH', 'sysname': 'Linux', 'daemon': 'charon',
'version': '5.2.2', 'machine': 'x86_64'}
>>> s.load_pool({"p1": {"addrs": "10.0.0.0/24"}})
CommandResult(success=True, errmsg=None, log=None)
>>> s.get_pools()
{'p1': {'offline': '0', 'base': '10.0.0.0', 'online': '0', 'size': '254'}}
Installation
Simply install by using pip;
$ pip install vici
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vici-0.0.1.tar.gz
(6.4 kB
view hashes)