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

addons: vrf: fix check for max vrf dev count

Ticket: CM-10465
Reviewed By: julien, nikhil
Testing Done: Tested creating more than 64 vrf devices

example config:
{noformat}
%for v in range(1, 66):
auto vrf${v}
iface vrf${v}
        vrf-table auto
%endfor
{noformat}

also, since vrf module already does a link up on vrf dev, remove
link up of vrf dev from ifupdownmain scheduler callback
This commit is contained in:
Roopa Prabhu
2016-04-23 22:57:41 -07:00
parent f05e1e6d05
commit c8a3b44e94
2 changed files with 8 additions and 4 deletions

View File

@@ -112,6 +112,8 @@ class ifupdownMain(ifupdownBase):
# there is no real interface behind it
if ifaceobj.type == ifaceType.BRIDGE_VLAN:
return
if ifaceobj.link_kind & ifaceLinkKind.VRF:
return
if (ifaceobj.addr_method and
ifaceobj.addr_method == 'manual'):
return