-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
types.go
163 lines (157 loc) · 5.35 KB
/
types.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
package ms_dhcp
import "encoding/xml"
type OptionValue struct {
Text string `xml:",chardata"`
OptionId string `xml:"OptionId"`
VendorClass string `xml:"VendorClass"`
UserClass string `xml:"UserClass"`
Value []string `xml:"Value"`
}
type Scope struct {
Text string `xml:",chardata"`
ScopeId string `xml:"ScopeId"`
Name string `xml:"Name"`
SubnetMask string `xml:"SubnetMask"`
StartRange string `xml:"StartRange"`
EndRange string `xml:"EndRange"`
LeaseDuration string `xml:"LeaseDuration"`
State string `xml:"State"`
Type string `xml:"Type"`
MaxBootpClients string `xml:"MaxBootpClients"`
NapEnable string `xml:"NapEnable"`
Delay string `xml:"Delay"`
NapProfile string `xml:"NapProfile"`
Description string `xml:"Description"`
ActivatePolicies string `xml:"ActivatePolicies"`
SuperScopeName string `xml:"SuperScopeName"`
OptionValues struct {
Text string `xml:",chardata"`
OptionValue []OptionValue `xml:"OptionValue"`
} `xml:"OptionValues"`
Reservations struct {
Text string `xml:",chardata"`
Reservation []Reservation `xml:"Reservation"`
} `xml:"Reservations"`
Leases struct {
Text string `xml:",chardata"`
Lease []Lease `xml:"Lease"`
} `xml:"Leases"`
}
type Lease struct {
Text string `xml:",chardata"`
IPAddress string `xml:"IPAddress"`
ScopeId string `xml:"ScopeId"`
ClientId string `xml:"ClientId"`
AddressState string `xml:"AddressState"`
ClientType string `xml:"ClientType"`
NapCapable string `xml:"NapCapable"`
DnsRR string `xml:"DnsRR"`
DnsRegistration string `xml:"DnsRegistration"`
LeaseExpiryTime string `xml:"LeaseExpiryTime"`
NapStatus string `xml:"NapStatus"`
HostName string `xml:"HostName"`
Description string `xml:"Description"`
}
type Reservation struct {
Text string `xml:",chardata"`
Name string `xml:"Name"`
IPAddress string `xml:"IPAddress"`
ClientId string `xml:"ClientId"`
Type string `xml:"Type"`
Description string `xml:"Description"`
OptionValues struct {
Text string `xml:",chardata"`
OptionValue OptionValue `xml:"OptionValue"`
} `xml:"OptionValues"`
}
// Generated by https://www.onlinetool.io/xmltogo/
type DHCPServer struct {
IPv6 struct {
Classes struct {
Text string `xml:",chardata"`
Class struct {
Text string `xml:",chardata"`
Name string `xml:"Name"`
Type string `xml:"Type"`
Data string `xml:"Data"`
Description string `xml:"Description"`
VendorId string `xml:"VendorId"`
} `xml:"Class"`
} `xml:"Classes"`
StatelessStore struct {
Text string `xml:",chardata"`
Enabled string `xml:"Enabled"`
PurgeInterval string `xml:"PurgeInterval"`
} `xml:"StatelessStore"`
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
OptionDefinitions struct {
Text string `xml:",chardata"`
OptionDefinition []struct {
Text string `xml:",chardata"`
Name string `xml:"Name"`
OptionId string `xml:"OptionId"`
Type string `xml:"Type"`
MultiValued string `xml:"MultiValued"`
DefaultValue string `xml:"DefaultValue"`
Description string `xml:"Description"`
VendorClass string `xml:"VendorClass"`
} `xml:"OptionDefinition"`
} `xml:"OptionDefinitions"`
} `xml:"IPv6"`
XMLName xml.Name `xml:"DHCPServer"`
MajorVersion struct {
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
} `xml:"MajorVersion"`
MinorVersion struct {
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
} `xml:"MinorVersion"`
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
IPv4 struct {
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
ConflictDetectionAttempts string `xml:"ConflictDetectionAttempts"`
NapEnabled string `xml:"NapEnabled"`
NpsUnreachableAction string `xml:"NpsUnreachableAction"`
ActivatePolicies string `xml:"ActivatePolicies"`
Classes struct {
Text string `xml:",chardata"`
Class []struct {
Text string `xml:",chardata"`
Name string `xml:"Name"`
Type string `xml:"Type"`
Data string `xml:"Data"`
Description string `xml:"Description"`
} `xml:"Class"`
} `xml:"Classes"`
OptionDefinitions struct {
Text string `xml:",chardata"`
OptionDefinition []struct {
Text string `xml:",chardata"`
Name string `xml:"Name"`
OptionId string `xml:"OptionId"`
Type string `xml:"Type"`
MultiValued string `xml:"MultiValued"`
Description string `xml:"Description"`
VendorClass string `xml:"VendorClass"`
DefaultValue string `xml:"DefaultValue"`
} `xml:"OptionDefinition"`
} `xml:"OptionDefinitions"`
OptionValues struct {
Text string `xml:",chardata"`
OptionValue OptionValue `xml:"OptionValue"`
} `xml:"OptionValues"`
Filters struct {
Text string `xml:",chardata"`
Allow string `xml:"Allow"`
Deny string `xml:"Deny"`
} `xml:"Filters"`
Scopes struct {
Text string `xml:",chardata"`
Scope []Scope `xml:"Scope"`
} `xml:"Scopes"`
} `xml:"IPv4"`
}