Fix Subnet retrival when creating Service without Selector
When retrieving a Subnet for creating the LB member with OVN for a SVC without selector, only the subnet is retrieved when it should be the subnet and the cidr, as it's needed to verify whether the member ip is present on the cidr. This commit fixes the issue by calling the correct method. Change-Id: I3288d849d1ad427b837cda2e07a8c971237cb303 Closes-bug: 1917557
This commit is contained in:
parent
2a60e04954
commit
cc800ae1fc
|
@ -361,7 +361,7 @@ class KuryrLoadBalancerHandler(k8s_base.ResourceEventHandler):
|
|||
subnet_id = self._get_pod_subnet(target_pod, target_ip)
|
||||
else:
|
||||
subnet = utils.get_subnet_by_ip(
|
||||
self._drv_nodes_subnets.get_nodes_subnets(), target_ip)
|
||||
self._get_nodes_subnets(), target_ip)
|
||||
if subnet:
|
||||
subnet_id = subnet[0]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue