From 888e40e600f4851e62d213eb0db3122e8d72c5a5 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 16 Mar 2016 22:37:26 +0000 Subject: NMS: Nuke port-state, update switch-state On its way. Not done. --- web/nms.gathering.org/api/API.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'web/nms.gathering.org/api/API.rst') diff --git a/web/nms.gathering.org/api/API.rst b/web/nms.gathering.org/api/API.rst index 4751ee5..61fbb5a 100644 --- a/web/nms.gathering.org/api/API.rst +++ b/web/nms.gathering.org/api/API.rst @@ -46,15 +46,15 @@ Update frequency: on user input Lists comments. -/api/private/port-state ------------------------ +/api/private/snmp +----------------- Methods: GET Update frequency: Every few seconds, based on SNMP data. -Returns detailed per-port statistics. Being somewhat reorganized but will -remain highly relevant. +Returns full SNMP-data, split into two trees. 'misc' and 'ports'. + /api/private/switches-management -------------------------------- @@ -70,10 +70,15 @@ List management information for switches. Methods: POST -Add switches, supports same format as tools/add_switches.txt.pl +Add or update switches, supports same format as tools/add_switches.txt.pl Accepts an array of switches. +Magic: If you set placement to be "reset", it will re-calculate placement +based on sysname. For new switches, this is redundant as an empty +placement-field will trigger the same behavior. + + Public ...... -- cgit v1.2.3