[strongSwan] Direct inclusion of certificate string in python client is failing

2019-05-07 Thread Joshua Marshall
I'm trying to directly load certificate data into a connection configuration dict in python with the following structure: ``` { "my_conn": { "local": {"cert": {"data": } } } } ``` This is not working. How can I change it to work? We are doing this because out infrastructure passes around certif

Re: [strongSwan] Python Vici client does not accept configurations specifying the 'pools' field

2019-05-02 Thread Joshua Marshall
That seems to have done it. I would have never guessed that from the given error. On Thu, May 2, 2019 at 10:26 AM Tobias Brunner wrote: > Hi Joshua, > > > How can I get this to work? > > "pools" takes a list of strings, not a single identifier. So pass this > as `"pools": [ pool_id ],`. > > Re

[strongSwan] Python Vici client does not accept configurations specifying the 'pools' field

2019-05-02 Thread Joshua Marshall
When feeding in a dict to vici.Session().load_conn() with anything that has 'pools' as a option in a configuration, it gets rejected with "vici.exception.CommandException: Command failed: b'unknown option: pools, config discarded'". { connection_name: { ..., "pools":