aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-05-30 08:16:37 -0400
committerStephen Hemminger <stephen@networkplumber.org>2020-06-01 08:08:46 -0700
commit2c78aba2fbae44b9edc94de9aa6e15a7a12aab11 (patch)
tree3ecafd50ec191ef1956e603b025a12f5d76b888a
parent6facadcfb6d9a1b619e5c986505b87760336c483 (diff)
downloadiproute2-2c78aba2fbae44b9edc94de9aa6e15a7a12aab11.tar.gz
nexthop: Fix Deletion display
Actually display that deletions are happening when monitoring nexthops. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--ip/ipnexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c
index 99f89630e..c33cef0c9 100644
--- a/ip/ipnexthop.c
+++ b/ip/ipnexthop.c
@@ -224,7 +224,7 @@ int print_nexthop(struct nlmsghdr *n, void *arg)
open_json_object(NULL);
- if (n->nlmsg_type == RTM_DELROUTE)
+ if (n->nlmsg_type == RTM_DELNEXTHOP)
print_bool(PRINT_ANY, "deleted", "Deleted ", true);
if (tb[NHA_ID])