From: Roopa Prabhu <roopa@cumulusnetworks.com>
To: stephen@networkplumber.org, netdev@vger.kernel.org
Cc: anuradhak@cumulusnetworks.com, nikolay@cumulusnetworks.com,
julien@cumulusnetworks.com
Subject: [PATCH iproute2 net-next v3 4/5] bridge: add json schema for bridge fdb show
Date: Mon, 20 Jun 2016 23:39:46 -0700 [thread overview]
Message-ID: <1466491187-8536-5-git-send-email-roopa@cumulusnetworks.com> (raw)
In-Reply-To: <1466491187-8536-1-git-send-email-roopa@cumulusnetworks.com>
From: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
we think storing the schema file for the json
format will be useful.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
---
schema/bridge_fdb_schema.json | 62 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
create mode 100644 schema/bridge_fdb_schema.json
diff --git a/schema/bridge_fdb_schema.json b/schema/bridge_fdb_schema.json
new file mode 100644
index 0000000..3e5be8d
--- /dev/null
+++ b/schema/bridge_fdb_schema.json
@@ -0,0 +1,62 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "description": "bridge fdb show",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "dev": {
+ "type": "string"
+ },
+ "dst": {
+ "description" : "host name or ip address",
+ "type": "string"
+ },
+ "flags": {
+ "type": "array",
+ "items": {
+ "enum": ["self", "master", "router", "offload"]
+ },
+ "uniqueItems": true
+ },
+ "linkNetNsId": {
+ "type": "integer"
+ },
+ "mac": {
+ "type": "string"
+ },
+ "master": {
+ "type": "string"
+ },
+ "opCode": {
+ "description" : "used to indicate fdb entry del",
+ "enum": ["deleted"]
+ },
+ "port": {
+ "type": "integer"
+ },
+ "state": {
+ "description" : "permanent, static, stale, state=#x",
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ },
+ "viaIf": {
+ "type": "string"
+ },
+ "viaIfIndex": {
+ "type": "integer"
+ },
+ "vlan": {
+ "type": "integer"
+ },
+ "vni": {
+ "type": "integer"
+ }
+ }
+ }
+}
--
1.9.1
next prev parent reply other threads:[~2016-06-21 6:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-21 6:39 [PATCH iproute2 net-next v3 0/5] bridge: json support for fdb and vlan show Roopa Prabhu
2016-06-21 6:39 ` [PATCH iproute2 net-next v3 1/5] json_writer: allow base json data type to be array or object Roopa Prabhu
2016-06-21 16:12 ` Stephen Hemminger
2016-06-21 16:24 ` Anuradha Karuppiah
2016-06-21 16:52 ` Stephen Hemminger
2016-06-21 6:39 ` [PATCH iproute2 net-next v3 2/5] bridge: add json support for bridge vlan show Roopa Prabhu
2016-06-21 6:39 ` [PATCH iproute2 net-next v3 3/5] bridge: add json support for bridge fdb show Roopa Prabhu
2016-06-21 6:39 ` Roopa Prabhu [this message]
2016-06-21 6:39 ` [PATCH iproute2 net-next v3 5/5] bridge: update man page Roopa Prabhu
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=1466491187-8536-5-git-send-email-roopa@cumulusnetworks.com \
--to=roopa@cumulusnetworks.com \
--cc=anuradhak@cumulusnetworks.com \
--cc=julien@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=stephen@networkplumber.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).