From 6842c2c7657cf8d23a03d62d5491484895fa9611 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 22 Oct 2020 17:22:23 +0300 Subject: [PATCH] staticd: remove redundant checks from vty These checks are moved to NB layer. Signed-off-by: Igor Ryzhov --- staticd/static_vty.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 489fa9663f..8cccecfed7 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -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); -- 2.39.5