Merge pull request #2719 from pguibert6WIND/fix_tableno_vrf

zebra: fix missing table identifier passed for ip route vrf commands
This commit is contained in:
Lou Berger 2018-07-28 10:42:07 -04:00 committed by GitHub
commit bf7bf2b99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -463,7 +463,7 @@ commands in relationship to VRF. Here is an extract of some of those commands:
.. clicmd:: vrf VRF
This command is available on configuration mode. By default, above command
permits accessing the vrf configuration mode. This mode is available for
permits accessing the VRF configuration mode. This mode is available for
both VRFs. It is to be noted that *Zebra* does not create Linux VRF.
The network administrator can however decide to provision this command in
configuration file to provide more clarity about the intended configuration.
@ -493,7 +493,10 @@ commands in relationship to VRF. Here is an extract of some of those commands:
This command is based on configuration mode. There, for default VRF, this
command is available for all modes. The ``TABLENO`` configured is one of the
tables from Default *Linux network namespace*.
tables from Default *Linux network namespace*. This command is also available
on vrf configuration mode, provided that *Zebra* is run with :option:`-n`
option. In that case, this command configures a network route in the given
``TABLENO`` of the *Linux network namespace* of the relevant VRF.
.. index:: show ip route vrf VRF
.. clicmd:: show ip route vrf VRF

View File

@ -1071,7 +1071,7 @@ DEFPY(ip_route_vrf,
return zebra_static_route_leak(
vty, zvrf, nh_zvrf, AFI_IP, SAFI_UNICAST, no, prefix, mask_str,
NULL, gate_str, ifname, flag, tag_str, distance_str, label,
NULL);
table_str);
}
/* New RIB. Detailed information for IPv4 route. */