diff options
author | Stephen Worley <sworley@nvidia.com> | 2020-10-27 16:27:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 16:27:39 +0100 |
commit | 7ecc433cdc0e4b61375bcb6d7c42e899512bf792 (patch) | |
tree | 3cdd06d9c9901067603e3ef7d8e2f32704ee117e | |
parent | Merge pull request #7189 from maduri111/bgpd-conditional-adv (diff) | |
parent | staticd: remove redundant checks from vty (diff) | |
download | frr-7ecc433cdc0e4b61375bcb6d7c42e899512bf792.tar.xz frr-7ecc433cdc0e4b61375bcb6d7c42e899512bf792.zip |
Merge pull request #7329 from idryzhov/fix-ip-route-table
staticd: fix checks for table param in "ip route" commands
-rw-r--r-- | staticd/static_vty.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index e2eb8cb7a..c3c453f42 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -499,12 +499,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); @@ -818,12 +812,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); |