]> git.proxmox.com Git - mirror_ifupdown2.git/commit - addons/vrf.py
addons: vrf: add a check and error for reserved system table names
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 27 Apr 2016 23:05:09 +0000 (16:05 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 28 Apr 2016 03:07:21 +0000 (20:07 -0700)
commitf6466fcb907464676c482082ffc86197063e59e1
tree1eab2570fba9852c298ea00349776979eaef3c9a
parentbaa909c6d0bdd23a9f82dce4437a6db7ba0406a9
addons: vrf: add a check and error for reserved system table names

Ticket:
Reviewed By: dsa, nikhil, julien
Testing Done: Tested with system reserved table names

example: err msg:
$ifquery default
auto default
iface default
vrf-table auto

error: default: cannot use system reserved ['253', '0', '254',
'255'] table names

This patch makes all tables in  /etc/iproute2/rt_tables reserved

$cat /etc/iproute2/rt_tables
255 local
254 main
253 default
0 unspec

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