* [PATCH] nexthop: Fix Deletion display
@ 2020-05-30 12:16 Donald Sharp
2020-05-30 19:31 ` Roopa Prabhu
0 siblings, 1 reply; 2+ messages in thread
From: Donald Sharp @ 2020-05-30 12:16 UTC (permalink / raw)
To: netdev, dsahern, roopa
Actually display that deletions are happening
when monitoring nexthops.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
---
ip/ipnexthop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c
index 99f89630..c33cef0c 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])
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nexthop: Fix Deletion display
2020-05-30 12:16 [PATCH] nexthop: Fix Deletion display Donald Sharp
@ 2020-05-30 19:31 ` Roopa Prabhu
0 siblings, 0 replies; 2+ messages in thread
From: Roopa Prabhu @ 2020-05-30 19:31 UTC (permalink / raw)
To: Donald Sharp; +Cc: netdev, David Ahern, Stephen Hemminger
On Sat, May 30, 2020 at 5:16 AM Donald Sharp <sharpd@cumulusnetworks.com> wrote:
>
> Actually display that deletions are happening
> when monitoring nexthops.
>
> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
> ---
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This can go to iproute2 net
Thanks Donald.
> ip/ipnexthop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c
> index 99f89630..c33cef0c 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])
> --
> 2.26.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-30 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 12:16 [PATCH] nexthop: Fix Deletion display Donald Sharp
2020-05-30 19:31 ` Roopa Prabhu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.