From 4a9b78367c298c37dbfc8be5569bb7422db2c5a8 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Wed, 13 Jul 2016 16:11:25 +0200 Subject: [PATCH] Add support for LLDP neighbors --- data/neighbours.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/neighbours.go b/data/neighbours.go index 9d43353..ffe4086 100644 --- a/data/neighbours.go +++ b/data/neighbours.go @@ -2,6 +2,7 @@ package data type Neighbours struct { Batadv map[string]BatadvNeighbours `json:"batadv"` + LLDP map[string]LLDPNeighbours `json:"lldp"` //WifiNeighbours map[string]WifiNeighbours `json:"wifi"` NodeId string `json:"node_id"` } @@ -17,6 +18,11 @@ type BatmanLink struct { Tq int `json:"tq"` } +type LLDPLink struct { + Name string `json:"name"` + Description string `json:"descr"` +} + type BatadvNeighbours struct { Neighbours map[string]BatmanLink `json:"neighbours"` } @@ -24,3 +30,5 @@ type BatadvNeighbours struct { type WifiNeighbours struct { Neighbours map[string]WifiLink `json:"neighbours"` } + +type LLDPNeighbours map[string]LLDPLink