]> git.puffer.fish Git - matthieu/frr.git/commitdiff
staticd: remove redundant checks from vty
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 22 Oct 2020 14:22:23 +0000 (17:22 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:48 +0000 (21:35 +0300)
These checks are moved to NB layer.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_vty.c

index 489fa9663f7157234ac9542dad03dbf7c29c2ce7..8cccecfed7506c8ca540bbd50e7a802b328dcb10 100644 (file)
@@ -500,12 +500,6 @@ DEFPY_YANG(ip_route_blackhole,
       "Table to configure\n"
       "The table number to configure\n")
 {
-       if (table_str && vrf && !vrf_is_backend_netns()) {
-               vty_out(vty,
-                       "%% table param only available when running on netns-based vrfs\n");
-               return CMD_WARNING_CONFIG_FAILED;
-       }
-
        return static_route(vty, AFI_IP, SAFI_UNICAST, no, prefix,
                            mask_str, NULL, NULL, NULL, flag, tag_str,
                            distance_str, vrf, label, table_str);
@@ -819,12 +813,6 @@ DEFPY_YANG(ipv6_route_blackhole,
       "Table to configure\n"
       "The table number to configure\n")
 {
-       if (table_str && vrf && !vrf_is_backend_netns()) {
-               vty_out(vty,
-                       "%% table param only available when running on netns-based vrfs\n");
-               return CMD_WARNING_CONFIG_FAILED;
-       }
-
        return static_route(vty, AFI_IP6, SAFI_UNICAST, no, prefix_str,
                            NULL, from_str, NULL, NULL, flag, tag_str,
                            distance_str, vrf, label, table_str);