]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix missing table identifier passed for ip route vrf commands 2719/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 25 Jul 2018 09:32:13 +0000 (11:32 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 27 Jul 2018 06:42:14 +0000 (08:42 +0200)
The parameter was missing in that vty command. Then it is being added.
Also some documentation is refreshed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
doc/user/zebra.rst
zebra/zebra_vty.c

index 08606c2128a268e5f23b0fd9a1a3850f2bb78a4a..a9431b16e3efa74e98627315abcb46b6b7a96392 100644 (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
index bed3b7f77cd3d69821d002bc99069759a5602c87..5aa6286314a8da075763c0a7fc411bd404d5f189 100644 (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. */