From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roopa Prabhu 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 Message-ID: <1466491187-8536-5-git-send-email-roopa@cumulusnetworks.com> References: <1466491187-8536-1-git-send-email-roopa@cumulusnetworks.com> Cc: anuradhak@cumulusnetworks.com, nikolay@cumulusnetworks.com, julien@cumulusnetworks.com To: stephen@networkplumber.org, netdev@vger.kernel.org Return-path: Received: from mail-pf0-f175.google.com ([209.85.192.175]:34606 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932093AbcFUGjz (ORCPT ); Tue, 21 Jun 2016 02:39:55 -0400 Received: by mail-pf0-f175.google.com with SMTP id h14so3469166pfe.1 for ; Mon, 20 Jun 2016 23:39:55 -0700 (PDT) In-Reply-To: <1466491187-8536-1-git-send-email-roopa@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Anuradha Karuppiah we think storing the schema file for the json format will be useful. Signed-off-by: Anuradha Karuppiah --- 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