]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vrf: bring up vrf master when ALL or CLASS
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 5 Aug 2016 18:32:21 +0000 (11:32 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Sun, 7 Aug 2016 19:41:30 +0000 (12:41 -0700)
commit79cf576411582c4f0ce2868dda04acd5c3e131f9
tree010e668cfa100fb0cb34677a5dec4ca560ac131b
parent1a72dc5af531f2261bfffe332552b13e776c462a
addons: vrf: bring up vrf master when ALL or CLASS

Ticket: CM-12084
Reviewed By: julien, nikhil
Testing Done: Tested ifreload/ifup/ifdown --allow=<class>

vrf slave brings up the master if master is not up yet.
Today this is done only when ALL (auto) option is set
just as an optimization. because you dont want to bring
up the master in cases where user just wants to
bring up the vrf slave. eg ifup -v eth0.

This does not work so well, when user uses
--allow classes to bring up vrf master and slaves
together (eg mgmt vrf).

This patch removes the ALL check when bringing
up master and replaces it with an ALL or
CLASS check. ie make sure vrf master belongs to the
same class as you when CLASS is specified.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
addons/vrf.py