diff options
author | vdhingra <vdhingra@vmware.com> | 2020-08-10 09:00:09 +0200 |
---|---|---|
committer | vdhingra <vdhingra@vmware.com> | 2020-09-01 06:12:21 +0200 |
commit | b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch) | |
tree | 100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_vty.c | |
parent | Merge pull request #7017 from xThaid/netlink_fix (diff) | |
download | frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.tar.xz frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.zip |
staticd : Added the warning log for route when VRF is not ready.
During the yangification of staticd, refactoring of code
around static_hold_route data struct has been done, In this
context warning log message when VRF is not ready had been
removed. This should not be removed, adding it back.
I have missed one MPLS validation too, adding it back.
Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'staticd/static_vty.c')
-rw-r--r-- | staticd/static_vty.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 476340693..91a8379da 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1124,19 +1124,17 @@ DEFPY_YANG(ipv6_route_vrf, ifname, flag, tag_str, distance_str, label, table_str, false, color_str); } -DEFPY_YANG(debug_staticd, - debug_staticd_cmd, - "[no] debug static [{events$events}]", - NO_STR - DEBUG_STR - STATICD_STR - "Debug events\n") +DEFPY_YANG(debug_staticd, debug_staticd_cmd, + "[no] debug static [{events$events|route$route}]", + NO_STR DEBUG_STR STATICD_STR + "Debug events\n" + "Debug route\n") { /* If no specific category, change all */ if (strmatch(argv[argc - 1]->text, "static")) - static_debug_set(vty->node, !no, true); + static_debug_set(vty->node, !no, true, true); else - static_debug_set(vty->node, !no, !!events); + static_debug_set(vty->node, !no, !!events, !!route); return CMD_SUCCESS; } |