<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">pls ignore this mail. This is because I didn't specify the local_addrs as a list. It works fine once I do that.<br><div id="yui_3_16_0_ym19_1_1493213806906_19532"><span></span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1493213806906_19533"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1493213806906_19546" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1493213806906_19545"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1493213806906_19544"> <div dir="ltr" id="yui_3_16_0_ym19_1_1493213806906_19543"> <font id="yui_3_16_0_ym19_1_1493213806906_19547" size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Vijaya Venkatachalam <vlakshmi@rocketmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Tobias Brunner <tobias@strongswan.org>; "dev@lists.strongswan.org" <dev@lists.strongswan.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 26, 2017 2:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [strongSwan-dev] python vici load-conn - possible bug<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1301185913"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3423"><span></span></div><div class="yiv1301185913qtdSeparateBR" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3424"><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3482">ThanksTobias.</div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3483">Also I am finding that I cannot set the local_addrs and remote_addrs in the dictionary that I pass to load_conn.</div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3527">Not sure whether this is also resolved or not?</div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3605">I get the error as <br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3606"><br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3607">vici.exception.CommandException: Command failed: b'unknown option: local_addrs, config discarded.</div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3678"><br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3677">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'} }}}<br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3526"><br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3763">This is what I am trying to load.  If I remove local_addrs and remote_addrs, it loads successfully. <br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3764"><br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3776">regards,<br clear="none"></div><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3525">vijaya<br clear="none"></div><br clear="none"></div><div class="yiv1301185913yqt4519730705" id="yiv1301185913yqt37598"><div class="yiv1301185913yahoo_quoted" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3522" style="display:block;">  <div id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3521" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3520" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3524"> <font id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3523" size="2" face="Arial"> </font><hr id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3676" size="1"> <b><span style="font-weight:bold;">From:</span></b> Tobias Brunner <tobias@strongswan.org><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Vijaya Venkatachalam <vlakshmi@rocketmail.com>; "dev@lists.strongswan.org" <dev@lists.strongswan.org> <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Wednesday, April 26, 2017 1:51 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [strongSwan-dev] python vici load-conn - possible bug<br clear="none">  </div> <div class="yiv1301185913y_msg_container" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3519"><br clear="none"><div dir="ltr" id="yiv1301185913yui_3_16_0_ym19_1_1493211520186_3518">Hi Vijaya,<div class="yiv1301185913yqt9095016493" id="yiv1301185913yqtfd24812"><br clear="none"><br clear="none">> So when I create a dictionary for the ipsec config and do a load_conn I<br clear="none">> got the error as unable to concat bytes and string.<br clear="none">> And I realized that this is because in the _named_request method above,<br clear="none">> we are packing request instead of requestdata.<br clear="none">> Possibly we need to change the length being passed to pack also.<br clear="none">> <br clear="none">> When I replace request with requestdata, the error goes away and it<br clear="none">> proceeds with the trying to parse/load the connection from configuration.</div><br clear="none"><br clear="none">A fix for this is already in master [1].<br clear="none"><br clear="none">Regards,<br clear="none">Tobias<br clear="none"><br clear="none">[1] <a rel="nofollow" shape="rect" target="_blank" href="https://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=0d66b01a">https://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=0d66b01a</a><div class="yiv1301185913yqt9095016493" id="yiv1301185913yqtfd73134"><br clear="none"><br clear="none"></div></div><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></div></div><br><br></div> </div> </div>  </div></div></body></html>