summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols_segment-routing.xml.in
blob: cab1e69459354551a849babc48dda7a7eaec06be (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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="protocols">
    <children>
       <node name="segment-routing" owner="${vyos_conf_scripts_dir}/protocols_segment-routing.py">
        <properties>
          <help>Segment-Routing (SR) parameters</help>
          <priority>900</priority>
        </properties>
        <children>
          <tagNode name="interface">
            <properties>
              <help>Interface specific Segment-Routing options</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces</script>
              </completionHelp>
              <valueHelp>
                <format>txt</format>
                <description>Interface name</description>
              </valueHelp>
              <constraint>
                #include <include/constraint/interface-name.xml.i>
              </constraint>
            </properties>
            <children>
              <node name="srv6">
                <properties>
                  <help>Accept SR-enabled IPv6 packets on this interface</help>
                </properties>
                <children>
                  <leafNode name="hmac">
                    <properties>
                      <help>Define HMAC policy for ingress SR-enabled packets on this interface</help>
                      <completionHelp>
                        <list>accept drop ignore</list>
                      </completionHelp>
                      <valueHelp>
                        <format>accept</format>
                        <description>Accept packets without HMAC, validate packets with HMAC</description>
                      </valueHelp>
                      <valueHelp>
                        <format>drop</format>
                        <description>Drop packets without HMAC, validate packets with HMAC</description>
                      </valueHelp>
                      <valueHelp>
                        <format>ignore</format>
                        <description>Ignore HMAC field.</description>
                      </valueHelp>
                      <constraint>
                        <regex>(accept|drop|ignore)</regex>
                      </constraint>
                    </properties>
                    <defaultValue>accept</defaultValue>
                  </leafNode>
                </children>
              </node>
            </children>
          </tagNode>
          <node name="srv6">
            <properties>
              <help>Segment-Routing SRv6 configuration</help>
            </properties>
            <children>
              <node name="encapsulation">
                <properties>
                  <help>Segment Routing SRv6 encapsulation</help>
                </properties>
                <children>
                  #include <include/source-address-ipv6.xml.i>
                </children>
              </node>
              <tagNode name="locator">
                <properties>
                  <help>Segment-Routing SRv6 locators configuration</help>
                  <constraint>
                    #include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
                  </constraint>
                </properties>
                <children>
                  <leafNode name="behavior-usid">
                    <properties>
                      <help>Set SRv6 behavior uSID</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="prefix">
                    <properties>
                      <help>SRv6 locator prefix</help>
                      <valueHelp>
                        <format>ipv6net</format>
                        <description>SRv6 locator prefix</description>
                      </valueHelp>
                      <constraint>
                        <validator name="ipv6-prefix"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="block-len">
                    <properties>
                      <help>Configure SRv6 locator block length in bits</help>
                      <valueHelp>
                        <format>u32:16-64</format>
                        <description>Specify SRv6 locator block length in bits</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 16-64"/>
                      </constraint>
                    </properties>
                    <defaultValue>40</defaultValue>
                  </leafNode>
                  <leafNode name="func-bits">
                    <properties>
                      <help>Configure SRv6 locator function length in bits</help>
                      <valueHelp>
                        <format>u32:0-64</format>
                        <description>Specify SRv6 locator function length in bits</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 0-64"/>
                      </constraint>
                    </properties>
                    <defaultValue>16</defaultValue>
                  </leafNode>
                  <leafNode name="node-len">
                    <properties>
                      <help>Configure SRv6 locator node length in bits</help>
                      <valueHelp>
                        <format>u32:16-64</format>
                        <description>Configure SRv6 locator node length in bits</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 16-64"/>
                      </constraint>
                    </properties>
                    <defaultValue>24</defaultValue>
                  </leafNode>
                  <leafNode name="format">
                    <properties>
                      <help>SRv6 SID format</help>
                      <completionHelp>
                        <list>uncompressed-f4024 usid-f3216</list>
                      </completionHelp>
                      <valueHelp>
                        <format>uncompressed-f4024</format>
                        <description>Uncompressed f4024 format</description>
                      </valueHelp>
                      <valueHelp>
                        <format>usid-f3216</format>
                        <description>usid-f3216 format</description>
                      </valueHelp>
                      <constraint>
                        <regex>(uncompressed-f4024|usid-f3216)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                </children>
              </tagNode>
            </children>
          </node>
          <node name="traffic-engineering">
            <properties>
              <help>SR Traffic Engineering (TE) configuration</help>
            </properties>
            <children>
              <node name="database-import-protocol">
                <properties>
                  <help>Traffic Engineering Database (TED) IGP import protocol</help>
                </properties>
                <children>
                  <leafNode name="isis">
                    <properties>
                      <help>IS-IS originated Traffic Engineering (TE) database</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="ospf">
                    <properties>
                      <help>OSPF originated Traffic Engineering (TE) database</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                </children>
              </node>
              <tagNode name="segment-list">
                <properties>
                  <help>Segment List</help>
                  <valueHelp>
                    <format>txt</format>
                    <description>Segment List Name</description>
                  </valueHelp>
                  <constraint>
                    #include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
                  </constraint>
                </properties>
                <children>
                  <tagNode name="index">
                    <properties>
                      <help>Traffic engineering index value for segment list</help>
                      <valueHelp>
                        <format>u32</format>
                        <description>Segment list index value</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 0-4294967295"/>
                      </constraint>
                    </properties>
                    <children>
                      <node name="mpls">
                        <properties>
                          <help>MPLS label for index</help>
                        </properties>
                        <children>
                          <leafNode name="label">
                            <properties>
                              <help>MPLS label value for index</help>
                              <valueHelp>
                                <format>u32:16-1048575</format>
                                <description>MPLS label value for index</description>
                              </valueHelp>
                              <constraint>
                                <validator name="numeric" argument="--range 16-1048575"/>
                              </constraint>
                            </properties>
                          </leafNode>
                        </children>
                      </node>
                      <node name="nai">
                        <properties>
                          <help>Node or Adjacency identifier (NAI) for index</help>
                        </properties>
                        <children>
                          <node name="adjacency">
                            <properties>
                              <help>Adjacency identifier for index</help>
                            </properties>
                            <children>
                              <node name="ipv4">
                                <properties>
                                  <help>IPv4 address</help>
                                </properties>
                                <children>
                                  <leafNode name="source-identifier">
                                    <properties>
                                      <help>Adjacency source address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv4</format>
                                          <description>IPv4 adjacency source address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv4-address"/>
                                        </constraint>
                                    </properties>
                                  </leafNode>
                                  <leafNode name="destination-identifier">
                                    <properties>
                                      <help>Adjacency destination address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv4</format>
                                          <description>IPv4 adjacency destination address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv4-address"/>
                                        </constraint>
                                    </properties>
                                  </leafNode>
                                </children>
                              </node>
                              <node name="ipv6">
                                <properties>
                                  <help>IPv6 address</help>
                                </properties>
                                <children>
                                  <leafNode name="source-identifier">
                                    <properties>
                                      <help>Adjacency source address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv6</format>
                                          <description>IPv6 adjacency source address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv6-address"/>
                                        </constraint>
                                    </properties>
                                  </leafNode>
                                  <leafNode name="destination-identifier">
                                    <properties>
                                      <help>Adjacency destination address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv6</format>
                                          <description>IPv6 adjacency destination address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv6-address"/>
                                        </constraint>
                                    </properties>
                                  </leafNode>
                                </children>
                              </node>
                            </children>
                          </node>
                          <node name="prefix">
                            <properties>
                              <help>IGP prefix identifier for index</help>
                            </properties>
                            <children>
                              <node name="ipv4">
                                <properties>
                                  <help>IPv4 address</help>
                                </properties>
                                <children>
                                  <tagNode name="prefix-identifier">
                                    <properties>
                                      <help>IPv4 IGP prefix address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv4net</format>
                                          <description>IPv4 adjacency source address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv4-prefix"/>
                                        </constraint>
                                    </properties>
                                    <children>
                                      #include <include/segment-routing/algorithm.xml.i>
                                    </children>
                                  </tagNode>
                                </children>
                              </node>
                              <node name="ipv6">
                                <properties>
                                  <help>IPv6 address</help>
                                </properties>
                                <children>
                                  <tagNode name="prefix-identifier">
                                    <properties>
                                      <help>IPv6 IGP prefix address identifier for index</help>
                                        <valueHelp>
                                          <format>ipv6net</format>
                                          <description>IPv6 adjacency source address identifier</description>
                                        </valueHelp>
                                        <constraint>
                                          <validator name="ipv6-prefix"/>
                                        </constraint>
                                    </properties>
                                    <children>
                                      #include <include/segment-routing/algorithm.xml.i>
                                    </children>
                                  </tagNode>
                                </children>
                              </node>
                            </children>
                          </node>
                        </children>
                      </node>
                    </children>
                  </tagNode>
                </children>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>