]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vrf: don't delete vrf map file at init if mgmt vrf already exists
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 13 Aug 2016 06:49:29 +0000 (23:49 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 13 Aug 2016 06:53:31 +0000 (23:53 -0700)
commitd9e75535d4f3e634c40e85a31f63a6901ad73ca7
tree5309577d918adf6bc8218ec0cff1f15e755c045e
parentfa01b1741335630de81b7853739fb8719158f869
addons: vrf: don't delete vrf map file at init if mgmt vrf already exists

Ticket: CM-12084
Reviewed By: julien, nikhil
Testing Done: tested with --allow=mgmt class

This fixes a problem where vrf map file was getting deleted
at boot during the second invocation of ifup. This is because
the code uses PERFMODE to check it is boot..but does
not realize that this may not be the first invocation of
ifup during the boot.

This patch adds additional checks for mgmt netdev to
make sure we delete the vrf map file only the first time.

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