From: Stephen Hemminger <stephen@networkplumber.org>
To: Roopa Prabhu <roopa@cumulusnetworks.com>
Cc: netdev@vger.kernel.org, anuradhak@cumulusnetworks.com,
nikolay@cumulusnetworks.com, julien@cumulusnetworks.com
Subject: Re: [PATCH iproute2 net-next 3/5] bridge: add json support for bridge fdb show
Date: Tue, 31 May 2016 11:59:55 -0700 [thread overview]
Message-ID: <20160531115955.4a45ff67@xeon-e3> (raw)
In-Reply-To: <1464410236-65044-4-git-send-email-roopa@cumulusnetworks.com>
On Fri, 27 May 2016 21:37:14 -0700
Roopa Prabhu <roopa@cumulusnetworks.com> wrote:
> Sample output:
> $bridge -j fdb show
> [{
> "mac": "44:38:39:00:69:88",
> "dev": "swp2s0",
> "vlan": 2,
> "master": "br0",
> "state": "permanent"
> },{
> "mac": "00:02:00:00:00:01",
> "dev": "swp2s0",
> "vlan": 2,
> "master": "br0"
> },{
> "mac": "00:02:00:00:00:02",
> "dev": "swp2s1",
> "vlan": 2,
> "master": "br0"
> },{
> "mac": "44:38:39:00:69:89",
> "dev": "swp2s1",
> "master": "br0",
> "state": "permanent"
> },{
> "mac": "44:38:39:00:69:89",
> "dev": "swp2s1",
> "vlan": 2,
> "master": "br0",
> "state": "permanent"
> },{
> "mac": "44:38:39:00:69:88",
> "dev": "br0",
> "master": "br0",
> "state": "permanent"
> }
> ]
In most JSON I have seen, the output would be:
{
"fdb" : [
{
"mac": "44:38:39:00:69:88",
"dev": "swp2s0",
"vlan": 2,
"master": "br0",
"state": "permanent"
},
...
]
}
I.e never a bare array.
next prev parent reply other threads:[~2016-05-31 18:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-28 4:37 [PATCH iproute2 net-next 3/5] bridge: add json support for bridge fdb show Roopa Prabhu
2016-05-31 18:59 ` Stephen Hemminger [this message]
2016-05-31 19:22 ` Anuradha Karuppiah
2016-06-17 18:04 ` Anuradha Karuppiah
2016-06-17 19:04 ` Stephen Hemminger
2016-06-17 19:07 ` Anuradha Karuppiah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160531115955.4a45ff67@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=anuradhak@cumulusnetworks.com \
--cc=julien@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=roopa@cumulusnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.