Add support for LLDP neighbors

This commit is contained in:
Julian Kornberger 2016-07-13 16:11:25 +02:00
parent f76f6b34a8
commit 4a9b78367c

View File

@ -2,6 +2,7 @@ package data
type Neighbours struct { type Neighbours struct {
Batadv map[string]BatadvNeighbours `json:"batadv"` Batadv map[string]BatadvNeighbours `json:"batadv"`
LLDP map[string]LLDPNeighbours `json:"lldp"`
//WifiNeighbours map[string]WifiNeighbours `json:"wifi"` //WifiNeighbours map[string]WifiNeighbours `json:"wifi"`
NodeId string `json:"node_id"` NodeId string `json:"node_id"`
} }
@ -17,6 +18,11 @@ type BatmanLink struct {
Tq int `json:"tq"` Tq int `json:"tq"`
} }
type LLDPLink struct {
Name string `json:"name"`
Description string `json:"descr"`
}
type BatadvNeighbours struct { type BatadvNeighbours struct {
Neighbours map[string]BatmanLink `json:"neighbours"` Neighbours map[string]BatmanLink `json:"neighbours"`
} }
@ -24,3 +30,5 @@ type BatadvNeighbours struct {
type WifiNeighbours struct { type WifiNeighbours struct {
Neighbours map[string]WifiLink `json:"neighbours"` Neighbours map[string]WifiLink `json:"neighbours"`
} }
type LLDPNeighbours map[string]LLDPLink