]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vrf: more fixes and cleanups for mgmt and data vrf handling
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 31 Mar 2016 06:32:59 +0000 (23:32 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 31 Mar 2016 06:49:51 +0000 (23:49 -0700)
commit0ba04b380335385ec4602c7b9858cffd184138df
treefdc8302de6a5fd0f5e4eb405d1d909c3e4f81489
parent858a230f91f73060fce9183f503e2bb115881fe1
addons: vrf: more fixes and cleanups for mgmt and data vrf handling

Ticket: CM-10188, CM-9881
Reviewed By: nikhil, julien, dsa, daniel
Testing Done: Tested mgmt vrf bringup, teardown, static routes at boot
etc

This patch fixes a few things:
- kill existing ssh clients on enslavement change for mgmt vrf (original patch by NikhilG)
- bring vrf master up first during vrf slave enslavement if
master does not exist. This was originally done only for
vrf dhcp slaves. With this patch we do it for all vrf slaves.
needed for static routes on vrf slaves (CM-10188).
- cleanup: reorganize code and a few cleanups and corner case handling

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Nikhil Gajendrakumar <nikhil@cumulusnetworks.com>
addons/vrf.py
ifupdown/ifupdownmain.py