diff mbox series

nexthop: Fix Deletion display

Message ID 20200530121637.1233527-1-sharpd@cumulusnetworks.com
State Accepted
Delegated to: stephen hemminger
Headers show
Series nexthop: Fix Deletion display | expand

Commit Message

Donald Sharp May 30, 2020, 12:16 p.m. UTC
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(-)

Comments

Roopa Prabhu May 30, 2020, 7:31 p.m. UTC | #1
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
>
diff mbox series

Patch

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])