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