Thursday, 2021-07-08

digitalsimbojaHello! 08:13
digitalsimboja@maysams, @ltomasbo: I suppose there can be more than one listeners in the KuryrLoadBalancer CRD? Correct?08:14
ltomasboyep08:14
maysamsyup, it's a list08:14
digitalsimbojadifferent 'id's?08:15
maysamsyes, all openstack resources have different IDs08:17
sunday_Hello!15:07
digitalsimboja@ltomasbo, @maysams: I am having trouble retrieving the listeners from openstack?15:08
digitalsimbojacould you point me to where I can find this. I am looking at the _find_listener implementation15:09
ltomasbowhat problem are you having? what error?15:10
digitalsimbojaBut I wonder if that is the right way of retrieving all listeners on OS15:10
ltomasboyeah, that methods should be a good pointer15:10
digitalsimbojagreat15:10
maysamsdigitalsimboja: https://docs.openstack.org/openstacksdk/latest/user/proxies/load_balancer_v2.html15:16
digitalsimbojaAwesome!15:17
maysamsthis link might be helpful, it contains all the possible openstackSDK calls with regards to load balancer and its resources15:17
digitalsimbojaSure!15:18
digitalsimboja@maysams: One more thing.15:36
digitalsimbojaHow to access the contents of the  generator15:37
digitalsimbojaobject15:37
digitalsimbojareturned?15:37
digitalsimbojaI tried with the 'id' field but returned None15:37
maysamsdigitalsimboja: if the type returned is a generator, you need to transform it to a list and access the data from there16:13
digitalsimbojaI did this:16:14
digitalsimbojalisteners_id = [l for l in listeners]16:14
digitalsimbojaGot it!16:16
digitalsimbojaThanks16:16

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!