<div dir="ltr">Great, worked perfectly.<div><br></div><div>Thanks,</div><div>Sam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 4:01 PM, Thomas Egerer <span dir="ltr"><<a href="mailto:hakke_007@gmx.de" target="_blank">hakke_007@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Hi Sam,<br>
<span class=""><br>
On 02/16/2016 09:24 PM, Sam Johnson wrote:<br>
> Hello all!<br>
><br>
> I have been using the python VICI library with a lot of success, but I am<br>
> running into one minor issue. I have a lot of connections setup (~70k), and<br>
> I want to be able to list the status of a single connection. I saw on the<br>
> python documentation that `list_conns` takes a filter argument. Per the<br>
> documentation on Vici I have this function call:<br>
><br>
>>>> conn_gen = s.list_conns({"ike": ['29709fce5f05498bbfe57a560524c712']})<br>
>>>> len(list(conn_gen))<br>
> 72209<br>
><br>
> For some reason it is still returning every single connection. I obviously<br>
> can iterate through this and grab the one I want, but the initial<br>
> load_conns takes a long time (5-10 seconds). I was hoping that by filtering<br>
> to the connection I wanted it would return quicker.<br>
</span>try omitting the array:<br>
<span class="">> conn_gen = s.list_conns({"ike": '29709fce5f05498bbfe57a560524c712'})<br>
</span>maybe this helps.<br>
<br>
Cheers,<br>
Thomas<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQIcBAEBCAAGBQJWw44IAAoJEGK31ONirBTG7tQQAKaNrKiK9unru8hFBFQu4XtK<br>
sdeXZyLM3QTx9uolltJ1UrkYpKM7Ot8w6fWWMSvFduD1t1+JioEGnlLJMEqrvibd<br>
O54D04LJBr1D27WWMYjdaOOzUX0mV+/viJoy7F3vaEIRgz4pMu7/lBMFb45ui6xm<br>
eOsreZwiUGWKkojlSyjjrQHuGvILDrC5eAiKfgIC9THn8bfcAxC1dn+N00fUcUO+<br>
bEuq8+B+D3h8noqy8twOJN7xIVHg1uqIbUcDK/VlSkzT0TR3RvfG7fYC6FP55GtK<br>
d8JmD9ISNXiWypGju4Vz7p+4kEnZqQxgtwIHaMOEgcnxofHp5g2Hnz0/QDWkMph3<br>
StrEM7xR0CI7GsXV9as7TAwW0agCRvSdw0Qc8mpeV3ZrffUdILNVg2JreG5OzF4j<br>
eO+su+BUUan6jm2K11/Kya55r5VF+opV52frQO4Qy8/tf/ZnR//I6aB7xw+167Q6<br>
QRxUeToHF2aWFRwgXsiy4xZB8elzjfL82diNi7zuEV/QuynIWbfmFfLOQFB1lSNS<br>
DKsFydliHpTo0g1RsGbLx5nxa0IxwhLzRs3TB8Vab8VbWtET7sOmRhuI8bC1F5Mg<br>
/CmbSNULW9tHsda2JDG5dKqVA2So3eEKtrYLy+dxvukKVF1OMDVKEGyJi7UUpjpY<br>
R5KXaJkNPLDeBKJQ7o/s<br>
=MA9r<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.strongswan.org">Users@lists.strongswan.org</a><br>
<a href="https://lists.strongswan.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.strongswan.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Sam Johnson | Lead Software Engineer<div><a href="mailto:sam@80pct.com" target="_blank">sam@80pct.com</a></div></div></div>
</div>