]> git.proxmox.com Git - mirror_frr.git/blame - ldpd/ldp_vty.xml
release: FRR 3.0-rc1
[mirror_frr.git] / ldpd / ldp_vty.xml
CommitLineData
eac6e3f0 1<?xml version="1.0"?>
7758fe9f 2<file init="ldp_vty_init" cmdprefix="ldp" header="ldpd/ldp_vty.h">
eac6e3f0
RW
3 <!-- address-family -->
4 <options name="address-family">
5 <option name="ipv4" help="IPv4 Address Family"/>
6 <option name="ipv6" help="IPv6 Address Family"/>
7 </options>
8
9 <!-- ipv4/ipv6 address -->
10 <options name="addr">
11 <option input="ipv4" help="IPv4 address"/>
12 <option input="ipv6" help="IPv6 address"/>
13 </options>
14
15 <!-- pseudowire control-word options -->
16 <options name="cword">
17 <option name="exclude" help="Exclude control-word in pseudowire packets"/>
18 <option name="include" help="Include control-word in pseudowire packets"/>
19 </options>
20
21 <!-- pseudowire types -->
22 <options name="pwtype">
23 <option name="ethernet" help="Ethernet (type 5)"/>
24 <option name="ethernet-tagged" help="Ethernet-tagged (type 4)"/>
25 </options>
26
27 <!-- packet direction -->
28 <options name="dir">
29 <option name="recv" help="Received messages"/>
30 <option name="sent" help="Sent messages"/>
31 </options>
32
45a8eba9
RW
33 <!-- ACL -->
34 <options name="acl">
35 <option input="acl_range" help="IP access-list number"/>
36 <option input="acl_expanded_range" help="IP access-list number (expanded range)"/>
37 <option input="word" help="IP access-list name"/>
38 </options>
39
eac6e3f0 40 <!-- shared subtrees -->
45a8eba9
RW
41 <subtree name="label_local_acls">
42 <option name="to" help="IP Access-list specifying controls on LDP Peers">
43 <select options="acl" arg="to_acl" function="inherited">
44 <option name="for" help="IP access-list for destination prefixes">
45 <select options="acl" arg="for_acl" function="inherited"/>
46 </option>
47 </select>
48 </option>
49 <option name="for" help="IP access-list for destination prefixes">
50 <select options="acl" arg="for_acl" function="inherited">
51 <option name="to" help="IP Access-list specifying controls on LDP Peers">
52 <select options="acl" arg="to_acl" function="inherited"/>
53 </option>
54 </select>
55 </option>
56 </subtree>
57
58 <subtree name="label_remote_acls">
59 <option name="from" help="Neighbor from whom to accept label advertisement">
60 <select options="acl" arg="from_acl" function="inherited">
61 <option name="for" help="IP access-list for destination prefixes">
62 <select options="acl" arg="for_acl" function="inherited"/>
63 </option>
64 </select>
65 </option>
66 <option name="for" help="IP access-list for destination prefixes">
67 <select options="acl" arg="for_acl" function="inherited">
68 <option name="from" help="Neighbor from whom to accept label advertisement">
69 <select options="acl" arg="from_acl" function="inherited"/>
70 </option>
71 </select>
72 </option>
73 </subtree>
74
eac6e3f0
RW
75 <subtree name="discovery_link">
76 <option name="discovery" help="Configure discovery parameters">
77 <option name="hello" arg="hello_type" help="LDP Link Hellos">
78 <option name="holdtime" help="Hello holdtime">
79 <option input="disc_time" arg="seconds" help="Time (seconds) - 65535 implies infinite" function="ldp_vty_disc_holdtime"/>
80 </option>
81 <option name="interval" help="Hello interval">
82 <option input="disc_time" arg="seconds" help="Time (seconds)" function="ldp_vty_disc_interval"/>
83 </option>
84 </option>
85 </option>
86 </subtree>
87
88 <subtree name="discovery_targeted">
89 <option name="discovery" help="Configure discovery parameters">
90 <option name="targeted-hello" arg="hello_type" help="LDP Targeted Hellos">
91 <option name="holdtime" help="Targeted hello holdtime">
92 <option input="disc_time" arg="seconds" help="Time (seconds) - 65535 implies infinite" function="ldp_vty_disc_holdtime"/>
93 </option>
94 <option name="interval" help="Targeted hello interval">
95 <option input="disc_time" arg="seconds" help="Time (seconds)" function="ldp_vty_disc_interval"/>
96 </option>
97 </option>
98 </option>
99 </subtree>
100
101 <subtree name="session_holdtime">
102 <option name="session" help="Configure session parameters">
103 <option name="holdtime" help="Configure session holdtime">
104 <option input="session_time" arg="seconds" help="Time (seconds)" function="ldp_vty_session_holdtime"/>
105 </option>
106 </option>
107 </subtree>
108
109 <subtree name="af_common">
110 <include subtree="discovery_link"/>
111 <include subtree="discovery_targeted"/>
112 <option name="discovery" help="Configure discovery parameters">
113 <option name="targeted-hello" arg="hello_type" help="LDP Targeted Hellos">
45a8eba9
RW
114 <option name="accept" help="Accept and respond to targeted hellos" function="ldp_vty_targeted_hello_accept">
115 <option name="from" help="Access list to specify acceptable targeted hello source">
116 <select options="acl" arg="from_acl" function="inherited"/>
117 </option>
118 </option>
eac6e3f0
RW
119 </option>
120 </option>
121 <option name="label" help="Configure label control and policies">
122 <option name="local" help="Configure local label control and policies">
45a8eba9
RW
123 <option name="advertise" help="Configure outbound label advertisement control" function="ldp_vty_label_advertise">
124 <include subtree="label_local_acls"/>
125 <option name="explicit-null" help="Configure explicit-null advertisement" function="ldp_vty_label_expnull">
126 <option name="for" help="IP access-list for destination prefixes">
127 <select options="acl" arg="for_acl" function="inherited"/>
128 </option>
129 </option>
130 </option>
131 <option name="allocate" help="Configure label allocation control">
132 <option name="for" help="IP access-list">
133 <select options="acl" arg="for_acl" function="ldp_vty_label_allocate"/>
134 </option>
135 <option name="host-routes" arg="host-routes" help="allocate local label for host routes only" function="ldp_vty_label_allocate"/>
136 </option>
137 </option>
138 <option name="remote" help="Configure remote/peer label control and policies">
139 <option name="accept" help="Configure inbound label acceptance control" function="ldp_vty_label_accept">
140 <include subtree="label_remote_acls"/>
eac6e3f0
RW
141 </option>
142 </option>
143 </option>
144 <option name="ttl-security" help="LDP ttl security check">
145 <option name="disable" help="Disable ttl security" function="ldp_vty_ttl_security"/>
146 </option>
147 <include subtree="session_holdtime"/>
148 <option name="interface" help="Enable LDP on an interface and enter interface submode">
149 <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_interface"/>
150 </option>
151 </subtree>
152
153 <!-- global -->
154 <subtree name="__global">
155 <option name="mpls" help="Global MPLS configuration subcommands">
156 <option name="ldp" help="Label Distribution Protocol" function="ldp_vty_mpls_ldp"/>
157 </option>
158 <option name="l2vpn" help="Configure l2vpn commands">
159 <option input="word" arg="name" help="L2VPN name">
160 <option name="type" help="L2VPN type">
161 <option name="vpls" help="Virtual Private LAN Service" function="ldp_vty_l2vpn"/>
162 </option>
163 </option>
164 </option>
165 </subtree>
166 <tree name="global">
167 <include subtree="__global"/>
168 <option name="no" arg="no" help="Negate a command or set its defaults">
169 <include subtree="__global"/>
170 </option>
171 </tree>
172
173 <!-- ldp node -->
174 <subtree name="__ldp_node">
175 <option name="address-family" help="Configure Address Family and its parameters">
176 <option name="ipv4" arg="address-family" help="IPv4" function="ldp_vty_address_family"/>
177 <option name="ipv6" arg="address-family" help="IPv6" function="ldp_vty_address_family"/>
178 </option>
179 <include subtree="discovery_link"/>
180 <include subtree="discovery_targeted"/>
181 <option name="dual-stack" help="Configure dual stack parameters">
182 <option name="transport-connection" help="Configure TCP transport parameters">
183 <option name="prefer" help="Configure prefered address family for TCP transport connection with neighbor">
184 <option name="ipv4" help="IPv4" function="ldp_vty_trans_pref_ipv4"/>
185 </option>
186 </option>
187 <option name="cisco-interop" help="Use Cisco non-compliant format to send and interpret the Dual-Stack capability TLV" function="ldp_vty_ds_cisco_interop"/>
188 </option>
189 <option name="neighbor" help="Configure neighbor parameters">
190 <option input="ipv4" arg="lsr_id" help="LDP Id of neighbor">
191 <option name="password" help="Configure password for MD5 authentication">
192 <option input="word" arg="password" help="The password" function="ldp_vty_neighbor_password"/>
193 </option>
194 <include subtree="session_holdtime"/>
195 <option name="ttl-security" help="LDP ttl security check">
196 <option name="disable" help="Disable ttl security" function="ldp_vty_neighbor_ttl_security"/>
197 <option name="hops" help="IP hops">
198 <option input="hops" arg="hops" help="maximum number of hops" function="ldp_vty_neighbor_ttl_security"/>
199 </option>
200 </option>
201 </option>
202 </option>
203 <option name="router-id" help="Configure router Id">
204 <option input="ipv4" arg="addr" help="LSR Id (in form of an IPv4 address)" function="ldp_vty_router_id"/>
205 </option>
206 </subtree>
207 <tree name="ldp_node">
208 <include subtree="__ldp_node"/>
209 <option name="no" arg="no" help="Negate a command or set its defaults">
210 <include subtree="__ldp_node"/>
211 </option>
212 </tree>
213
214 <!-- address-family ipv4 -->
215 <subtree name="__ldp_ipv4_node">
216 <include subtree="af_common"/>
217 <option name="discovery" help="Configure discovery parameters">
218 <option name="transport-address" help="Specify transport address for TCP connection">
219 <option input="ipv4" arg="addr" help="IP address to be used as transport address" function="ldp_vty_trans_addr"/>
220 </option>
221 </option>
222 <option name="neighbor" help="Configure neighbor parameters">
223 <option input="ipv4" arg="addr" help="IP address of neighbor">
224 <option name="targeted" help="Establish targeted session" function="ldp_vty_neighbor_targeted"/>
225 </option>
226 </option>
227 </subtree>
228 <tree name="ldp_ipv4_node">
229 <include subtree="__ldp_ipv4_node"/>
230 <option name="no" arg="no" help="Negate a command or set its defaults">
231 <include subtree="__ldp_ipv4_node"/>
232 </option>
233 </tree>
234
235 <!-- address-family ipv6 -->
236 <subtree name="__ldp_ipv6_node">
237 <include subtree="af_common"/>
238 <option name="discovery" help="Configure discovery parameters">
239 <option name="transport-address" help="Specify transport address for TCP connection">
240 <option input="ipv6" arg="addr" help="IPv6 address to be used as transport address" function="ldp_vty_trans_addr"/>
241 </option>
242 </option>
243 <option name="neighbor" help="Configure neighbor parameters">
244 <option input="ipv6" arg="addr" help="IPv6 address of neighbor">
245 <option name="targeted" help="Establish targeted session" function="ldp_vty_neighbor_targeted"/>
246 </option>
247 </option>
248 </subtree>
249 <tree name="ldp_ipv6_node">
250 <include subtree="__ldp_ipv6_node"/>
251 <option name="no" arg="no" help="Negate a command or set its defaults">
252 <include subtree="__ldp_ipv6_node"/>
253 </option>
254 </tree>
255
256 <!-- ldp ipv4 interface node -->
257 <subtree name="__ldp_ipv4_iface_node">
258 <include subtree="discovery_link"/>
259 </subtree>
260 <tree name="ldp_ipv4_iface_node">
261 <include subtree="__ldp_ipv4_iface_node"/>
262 <option name="no" arg="no" help="Negate a command or set its defaults">
263 <include subtree="__ldp_ipv4_iface_node"/>
264 </option>
265 </tree>
266
267 <!-- ldp ipv6 interface node -->
268 <subtree name="__ldp_ipv6_iface_node">
269 <include subtree="discovery_link"/>
270 </subtree>
271 <tree name="ldp_ipv6_iface_node">
272 <include subtree="__ldp_ipv6_iface_node"/>
273 <option name="no" arg="no" help="Negate a command or set its defaults">
274 <include subtree="__ldp_ipv6_iface_node"/>
275 </option>
276 </tree>
277
278 <!-- l2vpn -->
279 <subtree name="__ldp_l2vpn">
280 <option name="bridge" help="Bridge interface">
281 <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_bridge"/>
282 </option>
283 <option name="mtu" help="set Maximum Transmission Unit">
284 <option input="mtu" arg="mtu" help="Maximum Transmission Unit value" function="ldp_vty_l2vpn_mtu"/>
285 </option>
286 <option name="member" help="L2VPN member configuration">
287 <option name="interface" help="Local interface">
288 <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_interface"/>
289 </option>
290 <option name="pseudowire" help="Pseudowire interface">
291 <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_pseudowire"/>
292 </option>
293 </option>
294 <option name="vc" help="Virtual Circuit options">
295 <option name="type" help="Virtual Circuit type to use">
296 <select options="pwtype" arg="type" function="ldp_vty_l2vpn_pwtype"/>
297 </option>
298 </option>
299 </subtree>
300 <tree name="ldp_l2vpn">
301 <include subtree="__ldp_l2vpn"/>
302 <option name="no" arg="no" help="Negate a command or set its defaults">
303 <include subtree="__ldp_l2vpn"/>
304 </option>
305 </tree>
306
307 <!-- l2vpn pseudowire -->
308 <subtree name="__ldp_pseudowire">
309 <option name="control-word" help="Control-word options">
310 <select options="cword" arg="preference" function="ldp_vty_l2vpn_pw_cword"/>
311 </option>
312 <option name="neighbor" help="Remote endpoint configuration">
313 <option name="address" help="Specify the IPv4 or IPv6 address of the remote endpoint">
314 <select options="addr" arg="addr" function="ldp_vty_l2vpn_pw_nbr_addr"/>
315 </option>
316 <option name="lsr-id" help="Specify the LSR-ID of the remote endpoint">
317 <option input="ipv4" arg="lsr-id" help="IPv4 address" function="ldp_vty_l2vpn_pw_nbr_id"/>
318 </option>
319 </option>
320 <option name="pw-id" help="Set the Virtual Circuit ID">
321 <option input="pwid" arg="pwid" help="Virtual Circuit ID value" function="ldp_vty_l2vpn_pw_pwid"/>
322 </option>
323 <option name="pw-status" help="Configure PW status">
324 <option name="disable" help="Disable PW status" function="ldp_vty_l2vpn_pw_pwstatus"/>
325 </option>
326 </subtree>
327 <tree name="ldp_pseudowire">
328 <include subtree="__ldp_pseudowire"/>
329 <option name="no" arg="no" help="Negate a command or set its defaults">
330 <include subtree="__ldp_pseudowire"/>
331 </option>
332 </tree>
333
334 <!-- exec mode commands -->
335 <subtree name="ldp_show_af">
bc0eb287
RW
336 <option name="binding" help="Label Information Base (LIB) information" function="ldp_vty_show_binding">
337 <option name="json" arg="json" help="JavaScript Object Notation" function="ldp_vty_show_binding"/>
338 <option name="detail" arg="detail" help="Show detailed information">
339 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_binding"/>
340 </option>
a5d10512 341 </option>
bc0eb287
RW
342 <option name="discovery" help="Discovery Hello Information" function="ldp_vty_show_discovery">
343 <option name="json" arg="json" help="JavaScript Object Notation" function="ldp_vty_show_discovery"/>
344 <option name="detail" arg="detail" help="Show detailed information">
345 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_discovery"/>
346 </option>
a5d10512
RW
347 </option>
348 <option name="interface" help="interface information">
349 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_interface"/>
350 </option>
eac6e3f0
RW
351 </subtree>
352 <tree name="ldp_exec">
353 <option name="show" help="Show running system information">
354 <option name="mpls" help="MPLS information">
355 <option name="ldp" help="Label Distribution Protocol">
99cfc17f
RW
356 <option name="capabilities" help="Display LDP Capabilities information">
357 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_capabilities"/>
358 </option>
bc0eb287 359 <option name="neighbor" help="Neighbor information" function="ldp_vty_show_neighbor">
99cfc17f
RW
360 <option name="capabilities" arg="capabilities" help="Display neighbor capability information">
361 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_neighbor"/>
362 </option>
bc0eb287
RW
363 <option name="json" arg="json" help="JavaScript Object Notation" function="ldp_vty_show_neighbor"/>
364 <option name="detail" arg="detail" help="Show detailed information">
365 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_neighbor"/>
366 </option>
a5d10512 367 </option>
eac6e3f0
RW
368 <include subtree="ldp_show_af"/>
369 <select options="address-family" arg="address-family">
370 <include subtree="ldp_show_af"/>
371 </select>
372 </option>
373 </option>
374 <option name="l2vpn" help="Show information about Layer2 VPN">
375 <option name="atom" help="Show Any Transport over MPLS information">
a5d10512
RW
376 <option name="binding" help="Show AToM label binding information">
377 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_atom_binding"/>
378 </option>
379 <option name="vc" help="Show AToM virtual circuit information">
380 <option name="json" arg="json" optional="true" help="JavaScript Object Notation" function="ldp_vty_show_atom_vc"/>
381 </option>
eac6e3f0
RW
382 </option>
383 </option>
384 <option name="debugging" help="Debugging functions">
385 <option name="mpls" help="MPLS information">
386 <option name="ldp" help="Label Distribution Protocol" function="ldp_vty_show_debugging"/>
387 </option>
388 </option>
389 </option>
390 <option name="clear" help="Reset functions">
391 <option name="mpls" help="Reset MPLS statistical information">
392 <option name="ldp" help="Clear LDP state">
393 <option name="neighbor" help="Clear LDP neighbor sessions" function="ldp_vty_clear_nbr">
394 <select options="addr" arg="addr" function="ldp_vty_clear_nbr"/>
395 </option>
396 </option>
397 </option>
398 </option>
399 </tree>
400
401 <!-- debug commands -->
402 <subtree name="__ldp_debug">
403 <option name="debug" help="Debugging functions">
404 <option name="mpls" help="MPLS information">
405 <option name="ldp" help="Label Distribution Protocol">
406 <option name="discovery" arg="type" help="Discovery messages">
407 <option name="hello" help="Discovery hello message">
408 <select options="dir" arg="dir" function="ldp_vty_debug"/>
409 </option>
410 </option>
411 <option name="errors" arg="type" help="Errors" function="ldp_vty_debug"/>
412 <option name="event" arg="type" help="LDP event information" function="ldp_vty_debug"/>
413 <option name="messages" arg="type" help="Messages">
414 <option name="recv" arg="dir" help="Received messages, excluding periodic Keep Alives" function="ldp_vty_debug">
415 <option name="all" arg="all" help="Received messages, including periodic Keep Alives" function="ldp_vty_debug"/>
416 </option>
417 <option name="sent" arg="dir" help="Sent messages, excluding periodic Keep Alives" function="ldp_vty_debug">
418 <option name="all" arg="all" help="Sent messages, including periodic Keep Alives" function="ldp_vty_debug"/>
419 </option>
420 </option>
421 <option name="zebra" arg="type" help="LDP zebra information" function="ldp_vty_debug"/>
422 </option>
423 </option>
424 </option>
425 </subtree>
426 <tree name="ldp_debug">
427 <include subtree="__ldp_debug"/>
428 <option name="no" arg="no" help="Negate a command or set its defaults">
429 <include subtree="__ldp_debug"/>
430 </option>
431 </tree>
432
433 <!-- nodes -->
434 <node name="CONFIG">
435 <include tree="global"/>
436 <include tree="ldp_debug"/>
437 </node>
438 <node install="1" install_default="1" config_write="ldp_config_write" name="LDP">
439 <include tree="ldp_node"/>
440 </node>
441 <node install="1" install_default="1" config_write="NULL" name="LDP_IPV4">
442 <include tree="ldp_ipv4_node"/>
443 </node>
444 <node install="1" install_default="1" config_write="NULL" name="LDP_IPV6">
445 <include tree="ldp_ipv6_node"/>
446 </node>
447 <node install="1" install_default="1" config_write="NULL" name="LDP_IPV4_IFACE">
448 <include tree="ldp_ipv4_iface_node"/>
449 </node>
450 <node install="1" install_default="1" config_write="NULL" name="LDP_IPV6_IFACE">
451 <include tree="ldp_ipv6_iface_node"/>
452 </node>
453 <node install="1" install_default="1" config_write="ldp_l2vpn_config_write" name="LDP_L2VPN">
454 <include tree="ldp_l2vpn"/>
455 </node>
456 <node install="1" install_default="1" config_write="NULL" name="LDP_PSEUDOWIRE">
457 <include tree="ldp_pseudowire"/>
458 </node>
459 <node install="1" config_write="ldp_debug_config_write" name="LDP_DEBUG"/>
460 <node name="ENABLE">
eac6e3f0
RW
461 <include tree="ldp_debug"/>
462 </node>
463 <node name="VIEW">
464 <include tree="ldp_exec"/>
465 </node>
466</file>