From 521191140d0e5d9e0aed1ee7ee51a6a0c8d4bab8 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Wed, 25 Jul 2018 11:32:13 +0200 Subject: [PATCH] zebra: fix missing table identifier passed for ip route vrf commands The parameter was missing in that vty command. Then it is being added. Also some documentation is refreshed. Signed-off-by: Philippe Guibert --- doc/user/zebra.rst | 7 +++++-- zebra/zebra_vty.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/user/zebra.rst b/doc/user/zebra.rst index 08606c2128..a9431b16e3 100644 --- a/doc/user/zebra.rst +++ b/doc/user/zebra.rst @@ -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 diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index bed3b7f77c..5aa6286314 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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. */ -- 2.39.5