-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitch.go
21 lines (19 loc) · 982 Bytes
/
switch.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package bsn
type Switch struct {
Connected bool `json:"connected"`
ConnectedSince string `json:"connected-since"`
DPID string `json:"dpid"`
FabricConnectionState string `json:"fabric-connection-state"`
FabricLastSeenTime string `json:"fabric-last-seen-time"`
FabricRole string `json:"fabric-role"`
HandshakeState string `json:"handshake-state"`
InetAddress InetAddress `json:"inet-address"`
LACPInterfaceOffset int `json:"lacp-interface-offset"`
LACPSystemMAC string `json:"lacp-system-mac"`
LeafGroup string `json:"leaf-group"`
ModelNumberDescription string `json:"model-number-description"`
Name string `json:"name"`
SerialNumberDescription string `json:"serial-number-description"`
Shutdown bool `json:"shutdown"`
}
type Switches []Switch