summaryrefslogtreecommitdiff
path: root/interface-definitions/ipoe-server.xml
blob: 46ac2357ac7d56018ae2f8bf467a7de278e39372 (plain)
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="service">
    <children>
      <node name="ipoe-server" owner="${vyos_conf_scripts_dir}/ipoe_server.py">
        <properties>
          <help>Internet Protocol over Ethernet (IPoE) Server</help>
          <priority>900</priority>
        </properties>
        <children>
          <tagNode name="interface">
            <properties>
              <help>Network interface to server IPoE</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="network-mode">
                <properties>
                  <help>Network Layer IPoE serves on</help>
                  <completionHelp>
                    <list>L2 L3</list>
                  </completionHelp>
                  <constraint>
                    <regex>^(L2|L3)</regex>
                  </constraint>
                  <valueHelp>
                    <format>L2</format>
                    <description>client share the same subnet</description>
                  </valueHelp>
                  <valueHelp>
                    <format>L3</format>
                    <description>clients are behind this router</description>
                  </valueHelp>
                </properties>
              </leafNode>
              <leafNode name="network">
                <properties>
                  <help>Enables clients to share the same network or each client has its own vlan</help>
                  <completionHelp>
                    <list>shared vlan</list>
                  </completionHelp>
                  <constraint>
                    <regex>^(shared|vlan)</regex>
                  </constraint>
                  <valueHelp>
                    <format>shared</format>
                    <description>Multiple clients share the same network</description>
                  </valueHelp>
                  <valueHelp>
                    <format>vlan</format>
                    <description>One VLAN per client</description>    
                  </valueHelp>
                </properties>
              </leafNode>
              <leafNode name="client-subnet">
                <properties>
                  <help>Client address pool</help>
                  <valueHelp>
                    <format>ipv4net</format>
                    <description>IPv4 address and prefix length</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ipv4-prefix"/>
                  </constraint>
                </properties>
              </leafNode>
              <node name="external-dhcp">
                <properties>
                  <help>DHCP requests will be forwarded</help>
                </properties>
                <children>
                  <leafNode name="dhcp-relay">
                    <properties>
                      <help>DHCP Server the request will be redirected to.</help>
                      <valueHelp>
                        <format>ipv4</format>
                        <description>IPv4 address of the DHCP Server</description>
                      </valueHelp>
                      <constraint>
                        <validator name="ipv4-address"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="giaddr">
                    <properties>
                      <help>address of the relay agent (Relay Agent IP Address)</help>
                    </properties>
                  </leafNode>
                </children>
              </node>
            </children>
          </tagNode>
          <node name="dns-server">
            <properties>
              <help>DNS servers offered via internal DHCP</help>
            </properties>
            <children>
              <leafNode name="server-1">
                <properties>
                  <help>IP address of the primary DNS server</help>
                  <constraint>
                    <validator name="ipv4-address"/>
                  </constraint>
                </properties>
              </leafNode>
              <leafNode name="server-2">
                <properties>
                  <help>IP address of the secondary DNS server</help>
                  <constraint>
                    <validator name="ipv4-address"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </node>
          <node name="dnsv6-server">
            <properties>
              <help>DNSv6 servers offered via internal DHCPv6</help>
            </properties>
            <children>
              <leafNode name="server-1">
                <properties>
                  <help>IP address of the primary DNS server</help>
                  <constraint>
                    <validator name="ipv6-address"/>
                  </constraint>
                </properties>
              </leafNode>
              <leafNode name="server-2">
                <properties>
                  <help>IP address of the secondary DNS server</help>
                  <constraint>
                    <validator name="ipv6-address"/>
                  </constraint>
                </properties>
              </leafNode>
              <leafNode name="server-3">
                <properties>
                  <help>IP address of the tertiary DNS server</help>
                  <constraint>
                    <validator name="ipv6-address"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </node>
          <node name="client-ipv6-pool">
            <properties>
              <help>Pool of client IPv6 addresses</help>
            </properties>
            <children>
              <leafNode name="prefix">
                <properties>
                  <help>Format: ipv6prefix/mask,prefix_len (e.g.: fc00:0:1::/48,64 - divides prefix into /64 subnets for clients)</help>
                  <multi />
                </properties>
              </leafNode>
              <leafNode name="delegate-prefix">
                <properties>
                  <help>Format: ipv6prefix/mask,prefix_len (delegates prefix  to clients via DHCPv6 prefix delegation</help>
                  <multi />
                </properties>
              </leafNode>
            </children>
          </node>
          <node name="authentication">
            <properties>
              <help>Client authentication methods</help>
            </properties>
            <children>
              <leafNode name="mode">
                <properties>
                  <help>Authetication mode</help>
                  <completionHelp>
                    <list>local radius noauth</list>
                  </completionHelp>
                  <constraint>
                    <regex>^(local|radius|noauth)</regex>
                  </constraint>
                  <valueHelp>
                    <format>local</format>
                    <description>Authentication based on local definition</description>
                  </valueHelp>
                  <valueHelp>
                    <format>radius</format>
                    <description>Authentication based on a RADIUS server</description>
                  </valueHelp>
                  <valueHelp>
                    <format>noauth</format>
                    <description>Authentication disabled</description>
                  </valueHelp>
                </properties>
                </leafNode>
                <tagNode name="interface">
                  <properties>
                    <help>Network interface the client mac will appear on</help>
                    <completionHelp>
                      <script>${vyos_completion_dir}/list_interfaces.py</script>
                    </completionHelp>
                  </properties>
                  <children>
                    <tagNode name="mac-address">
                      <properties>
                        <help>Client mac address allowed to receive an IP address</help>
                        <valueHelp>
                          <format>h:h:h:h:h:h</format>
                          <description>Hardware (MAC) address</description>
                        </valueHelp>
                        <constraint>
                          <validator name="mac-address"/>
                        </constraint>
                      </properties>
                      <children>
                        <node name="rate-limit">
                          <properties>
                            <help>Upload/Download speed limits</help>
                          </properties>
                          <children>
                            <leafNode name="upload">
                              <properties>
                                <help>Upload bandwidth limit in kbits/sec</help>
                                <constraint>
                                  <validator name="numeric" argument="--range 1-65535"/>
                                </constraint>
                              </properties>
                            </leafNode>
                            <leafNode name="download">
                              <properties>
                                <help>Download bandwidth limit in kbits/sec</help>
                                <constraint>
                                  <validator name="numeric" argument="--range 1-65535"/>
                                </constraint>
                              </properties>
                            </leafNode>
                          </children>
                        </node>
                      </children>
                    </tagNode>
                  </children>
                </tagNode> 
                <tagNode name="radius-server">
                  <properties>
                    <help>IP address of RADIUS server</help>
                    <valueHelp>
                      <format>ipv4</format>
                        <description>IP address of RADIUS server</description>
                    </valueHelp>
                  </properties>
                  <children>
                    <leafNode name="secret">
                      <properties>
                        <help>Key for accessing the specified server</help>
                      </properties>
                    </leafNode>
                   <leafNode name="req-limit">
                      <properties>
                        <help>Maximum number of simultaneous requests to server (default: unlimited)</help>
                      </properties>
                    </leafNode>
                    <leafNode name="fail-time">
                      <properties>
                        <help>If server doesn't responds mark it as unavailable for this amount of time in seconds</help>
                      </properties>
                    </leafNode>
                  </children>
                </tagNode>
                <node name="radius-settings">
                  <properties>
                    <help>RADIUS settings</help>
                  </properties>
                  <children>
                    <leafNode name="timeout">
                      <properties>
                        <help>Timeout to wait response from server (seconds)</help>
                      </properties>
                    </leafNode>
                    <leafNode name="acct-timeout">
                      <properties>
                        <help>Timeout to wait reply for Interim-Update packets. (default 3 seconds)</help>
                      </properties>
                    </leafNode>
                    <leafNode name="max-try">
                      <properties>
                        <help>Maximum number of tries to send Access-Request/Accounting-Request queries</help>
                      </properties>
                    </leafNode>
                    <leafNode name="nas-identifier">
                      <properties>
                        <help>Value to send to RADIUS server in NAS-Identifier attribute and to be matched in DM/CoA requests.</help>
                      </properties>
                    </leafNode>
                    <leafNode name="nas-ip-address">
                      <properties>
                        <help>Value to send to RADIUS server in NAS-IP-Address attribute and to be matched in DM/CoA requests. Also DM/CoA server will bind to that address.</help>
                        <valueHelp>
                          <format>ipv4</format>
                          <description>IPv4 address of the DAE Server</description>
                        </valueHelp>
                        <constraint>
                          <validator name="ipv4-address"/>
                        </constraint>
                      </properties>
                    </leafNode>
                    <node name="dae-server">
                      <properties>
                        <help>IPv4 address and port to bind Dynamic Authorization Extension server (DM/CoA)</help>
                      </properties>
                      <children>
                        <leafNode name="ip-address">
                          <properties>
                            <help>IP address for Dynamic Authorization Extension server (DM/CoA)</help>
                            <valueHelp>
                              <format>ipv4</format>
                              <description>IPv4 address of the DAE Server</description>
                            </valueHelp>
                            <constraint>
                              <validator name="ipv4-address"/>
                            </constraint>
                          </properties>
                        </leafNode>
                        <leafNode name="port">
                          <properties>
                            <help>Port for Dynamic Authorization Extension server (DM/CoA)</help>
                            <valueHelp>
                              <format>number</format>
                                <description>port number</description>
                            </valueHelp>
                            <constraint>
                              <validator name="numeric" argument="--range 1-65535"/>
                            </constraint>
                          </properties>
                        </leafNode>
                        <leafNode name="secret">
                          <properties>
                            <help>Secret for Dynamic Authorization Extension server (DM/CoA)</help>
                          </properties>
                        </leafNode>
                      </children>
                    </node>
                  </children>
                </node>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>