[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1ad9fc74-db30-fee7-53c8-d1c208b8f9ec@nvidia.com>
Date: Thu, 20 Aug 2020 22:18:20 -0700
From: Roopa Prabhu <roopa@...dia.com>
To: Stephen Hemminger <stephen@...workplumber.org>,
Roopa Prabhu <roopa@...ulusnetworks.com>
CC: <dsahern@...il.com>, <netdev@...r.kernel.org>
Subject: Re: [PATCH iproute2 net-next] iplink: add support for protodown
reason
On 8/20/20 9:36 PM, Stephen Hemminger wrote:
>
>
> On Thu, 20 Aug 2020 20:52:02 -0700
> Roopa Prabhu <roopa@...ulusnetworks.com> wrote:
>
>> + if (tb[IFLA_PROTO_DOWN]) {
>> + if (rta_getattr_u8(tb[IFLA_PROTO_DOWN]))
>> + print_bool(PRINT_ANY,
>> + "proto_down", " protodown on ", true);
> In general my preference is to use print_null() for presence flags.
> Otherwise you have to handle the false case in JSON as a special case.
ok, i will look. But this is existing code moved into a new function and
has been
working fine for years.
Powered by blists - more mailing lists