From c34e030887c1f27b5732d7b931b1345a2e636b1a Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Tue, 19 Jan 2021 17:22:11 +0100
Subject: [PATCH] updated peer-info schema with new snmp field

---
 README.md | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4485cffe..e3741088 100644
--- a/README.md
+++ b/README.md
@@ -723,8 +723,17 @@ Any non-empty responses are JSON formatted messages.
                         "items": {"$ref": "#/definitions/service-info"}
                     }
                 }
+            },
+            "snmp-info": {
+                "type": "object",
+                "properties": {
+                    "hostname": {"type": "string"},
+                    "oid": {"type": "string"},
+                    "community": {"type": "string"}
+                },
+                "required": ["oid", "community", "hostname"],
+                "additionalProperties": False
             }
-
         },
 
         "type": "object",
@@ -736,7 +745,11 @@ Any non-empty responses are JSON formatted messages.
                 "type": "array",
                 "items": {"$ref": "#/definitions/interface-lookup-info"}
             },
-            "locations": {"$ref": "#/definitions/locations-list"}
+            "locations": {"$ref": "#/definitions/locations-list"},
+            "snmp": {
+                "type": "array",
+                "items": {"$ref": "#/definitions/snmp-info"}
+            }
         },
         "additionalProperties": False
     }
-- 
GitLab