[strongSwan-dev] python vici load-conn - possible bug

Vijaya Venkatachalam vlakshmi at rocketmail.com
Wed Apr 26 15:03:10 CEST 2017


ThanksTobias.Also I am finding that I cannot set the local_addrs and remote_addrs in the dictionary that I pass to load_conn.Not sure whether this is also resolved or not?I get the error as 

vici.exception.CommandException: Command failed: b'unknown option: local_addrs, config discarded.
load_config = { 'vv' :  {'local_addrs' : '%any' , 'remote_addrs' : '78.33.59.116', 'encap' : 'yes', 'mobike' : 'no', 'local' : { 'auth' : 'psk' } ,  'remote' : { 'auth' : 'psk' } , 'children' : { 'vv' : {'mode' : 'TRANSPORT'} }}}

This is what I am trying to load.  If I remove local_addrs and remote_addrs, it loads successfully. 

regards,
vijaya

      From: Tobias Brunner <tobias at strongswan.org>
 To: Vijaya Venkatachalam <vlakshmi at rocketmail.com>; "dev at lists.strongswan.org" <dev at lists.strongswan.org> 
 Sent: Wednesday, April 26, 2017 1:51 PM
 Subject: Re: [strongSwan-dev] python vici load-conn - possible bug
   
Hi Vijaya,

> So when I create a dictionary for the ipsec config and do a load_conn I
> got the error as unable to concat bytes and string.
> And I realized that this is because in the _named_request method above,
> we are packing request instead of requestdata.
> Possibly we need to change the length being passed to pack also.
> 
> When I replace request with requestdata, the error goes away and it
> proceeds with the trying to parse/load the connection from configuration.

A fix for this is already in master [1].

Regards,
Tobias

[1] https://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=0d66b01a



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20170426/0c3dfaf0/attachment.html>


More information about the Dev mailing list