]> git.proxmox.com Git - mirror_ifupdown2.git/commit - addons/vrf.py
addons: vrf: be more friendly to older iproute2 versions
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 2 Sep 2016 22:10:24 +0000 (15:10 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 2 Sep 2016 22:10:24 +0000 (15:10 -0700)
commit6f5b74f7cc318f3a8836ac4f2502fc45d5939e22
treec571610818a0f91ca091b2501004ce100cc227ab
parente02167ed35e4b701eb12bab23ab49622fca1b97f
addons: vrf: be more friendly to older iproute2 versions

Ticket: CM-12049
Reviewed By: dsa, julien, nikhil
Testing Done: tested with and without /etc/iproute2/rt_tables.d/

OS does not have /etc/iproute2/rt_tables.d, on errors just info:
$ifreload -a -v
info: unable to save iproute2 vrf to table map ([Errno 2] No such file
or directory: '/etc/iproute2/rt_tables.d/ifupdown2_vrf_map.conf')

info: cannot find /etc/iproute2/rt_tables.d. pls check if your iproute2
version supports rt_tables.d

OS has /etc/iproute2/rt_tables.d, on errors warn:
$ifreload -a
warn: unable to save iproute2 vrf to table map ([Errno 2] No such file

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