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:
@ -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
|
||||
|
Reference in New Issue
Block a user