Native Python interface for strongSwan's VICI protocol
Project description
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
>>> 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')]))])
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-5.5.3dev2.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for vici-5.5.3dev2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb1f93f66d31c24cb56fd1c81c1a7996b26f7fc240ddd292bf7d335af6973cba |
|
MD5 | dfa393e6f9fd204ef98473ea4f32cd5f |
|
BLAKE2b-256 | 352a091964f91fa5c264ddbad11e571d2b1a2ff9fbb601fefb83f9f9c328a1c7 |