diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-03 20:54:20 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-06 13:42:23 -0400 | 
| commit | c447ad08b2c880d5f3ef35af2e4055fcbc970961 (patch) | |
| tree | a61e6ee854e6262c4716452b2923bbabcb270b3e /zebra/zebra_vrf.c | |
| parent | 56e7825479d12a9a9cf5e108c02432ea17e5b236 (diff) | |
doc, zebra: Remove "table X" command
This command is broken and has been broken since the introduction
of vrf's.  Since no-one has complained it is safe to assume that
there is no call for this specialized linux command.  Remove
from the system with extreme prejudice.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vrf.c')
| -rw-r--r-- | zebra/zebra_vrf.c | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 2d721ec8a1..315d5b4905 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -326,15 +326,13 @@ struct route_table *zebra_vrf_table_with_table_id(afi_t afi, safi_t safi,  		return NULL;  	if (vrf_id == VRF_DEFAULT) { -		if (table_id == RT_TABLE_MAIN -		    || table_id == zrouter.rtm_table_default) +		if (table_id == RT_TABLE_MAIN)  			table = zebra_vrf_table(afi, safi, vrf_id);  		else  			table = zebra_vrf_other_route_table(afi, table_id,  							    vrf_id);  	} else if (vrf_is_backend_netns()) { -		if (table_id == RT_TABLE_MAIN -		    || table_id == zrouter.rtm_table_default) +		if (table_id == RT_TABLE_MAIN)  			table = zebra_vrf_table(afi, safi, vrf_id);  		else  			table = zebra_vrf_other_route_table(afi, table_id, @@ -452,10 +450,8 @@ struct route_table *zebra_vrf_other_route_table(afi_t afi, uint32_t table_id,  	if (afi >= AFI_MAX)  		return NULL; -	if ((table_id != RT_TABLE_MAIN) -	    && (table_id != zrouter.rtm_table_default)) { -		if (zvrf->table_id == RT_TABLE_MAIN || -		    zvrf->table_id == zrouter.rtm_table_default) { +	if (table_id != RT_TABLE_MAIN) { +		if (zvrf->table_id == RT_TABLE_MAIN) {  			/* this VRF use default table  			 * so in all cases, it does not use specific table  			 * so it is possible to configure tables in this VRF  | 
