-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller_network.go
42 lines (40 loc) · 1.31 KB
/
controller_network.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2021, huangjunwei <[email protected]>. All rights reserved.
package zerotier
// ControllerNetwork .
type ControllerNetwork struct {
ID string `json:"id"`
NWID string `json:"nwid"`
ObjType string `json:"objtype"`
Name string `json:"name"`
CreationTime int64 `json:"creationTime"`
Private bool `json:"private"`
EnableBroadcast bool `json:"enableBroadcast"`
V4AssignMode struct {
ZT bool `json:"zt"`
} `json:"v4AssignMode"`
V6AssignMode struct {
SixPlane bool `json:"6plane"`
RFC4193 bool `json:"rfc4193"`
ZT bool `json:"zt"`
} `json:"v6AssignMode"`
MTU uint `json:"mtu"`
MulticastLimit uint `json:"multicastLimit"`
Revision uint `json:"revision"`
Routes []struct {
Target string `json:"target"`
Via string `json:"via"`
} `json:"routes"`
IPAssignmentPools []struct {
IPRangeStart string `json:"ipRangeStart"`
IPRangeEnd string `json:"ipRangeEnd"`
}
Rules []struct {
Not bool `json:"not"`
Or bool `json:"or"`
Type string `json:"type"`
} `json:"rules"`
Capabilities []interface{} `json:"capabilities"`
Tags []interface{} `json:"tags"`
RemoteTraceTarget string `json:"remoteTraceTarget"`
RemoteTraceLevel uint `json:"remoteTraceLevel"`
}