Fix in the iteration to obtain address_scope linked to a subnet.
A network can be linked to more than one subnet (ipv4 and ipv6),
but if one of them does not have an address_scope, a null object
element access failure occurs.
Closes-bug: #1998104
Change-Id: Ic6d48a86043aaf4b458bb2230883a355fc841ee9
(cherry picked from commit feff164b608d00bf8163ea259305c3a64e68c1da)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron- dynamic- routing/ +/883583 /opendev. org/openstack/ neutron- dynamic- routing/ commit/ 962bb66743caf8b 9052776a32ab71c 83403dcd54
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit 962bb66743caf8b 9052776a32ab71c 83403dcd54
Author: ROBERTO BARTZEN ACOSTA <email address hidden>
Date: Fri Nov 4 17:01:08 2022 -0300
Fix address_scope calculation
Fix in the iteration to obtain address_scope linked to a subnet.
A network can be linked to more than one subnet (ipv4 and ipv6),
but if one of them does not have an address_scope, a null object
element access failure occurs.
Closes-bug: #1998104 4b458bb2230883a 355fc841ee9 f8163ea259305c3 a64e68c1da)
Change-Id: Ic6d48a86043aaf
(cherry picked from commit feff164b608d00b