1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vrf: unable to create vrf-max-count (missing +1)

A missing "+1" in a loop condition prevents ifupdown2 from creating
N vrfs up to vrf-max-count. We are stuck at vrf-max-count - 1

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2022-04-06 16:45:44 +02:00
parent 82b0d9217e
commit 265bf3d3b0

View File

@ -348,7 +348,7 @@ class vrf(Addon, moduleBase):
table_id_start = self.vrf_table_id_start
else:
table_id_start = self.last_used_vrf_table + 1
for t in range(table_id_start, self.vrf_table_id_end):
for t in range(table_id_start, self.vrf_table_id_end + 1):
if (not self.iproute2_vrf_map.get(t)
and t not in self.user_reserved_vrf_table):
self.last_used_vrf_table = t