[OVN] Allow IP allocation with different segments for OVN service ports

Allow IP allocation with different segments also for IPv6
auto allocation for OVN service ports.

See change: Ib51cde89ed873f48db4daebc27a0980da9cc0f19

Change-Id: Ic6db2f66be596756b1fed9ffeffc7b049f6e957f
Closes-Bug: #1944948
(cherry picked from commit 84b6db3b05)
This commit is contained in:
Harald Jensås 2021-09-29 13:26:36 +02:00 committed by Elvira García
parent b5d9bb9bab
commit a5518db3b7
1 changed files with 2 additions and 1 deletions

View File

@ -545,7 +545,8 @@ class IpamPluggableBackend(ipam_backend_mixin.IpamBackendMixin):
p.get(portbindings.HOST_ID),
p.get('device_owner'),
fixed_configured,
p.get('fixed_ips'))
p.get('fixed_ips'),
distributed_service=self._is_distributed_service(p))
if subnet['id'] not in [s['id'] for s in subnet_candidates]:
continue