]>
Commit | Line | Data |
---|---|---|
eac6e3f0 RW |
1 | <?xml version="1.0"?> |
2 | <file init="ldp_vty_init" cmdprefix="ldp" header="ldp_vty.h"> | |
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 | ||
33 | <!-- shared subtrees --> | |
34 | <subtree name="discovery_link"> | |
35 | <option name="discovery" help="Configure discovery parameters"> | |
36 | <option name="hello" arg="hello_type" help="LDP Link Hellos"> | |
37 | <option name="holdtime" help="Hello holdtime"> | |
38 | <option input="disc_time" arg="seconds" help="Time (seconds) - 65535 implies infinite" function="ldp_vty_disc_holdtime"/> | |
39 | </option> | |
40 | <option name="interval" help="Hello interval"> | |
41 | <option input="disc_time" arg="seconds" help="Time (seconds)" function="ldp_vty_disc_interval"/> | |
42 | </option> | |
43 | </option> | |
44 | </option> | |
45 | </subtree> | |
46 | ||
47 | <subtree name="discovery_targeted"> | |
48 | <option name="discovery" help="Configure discovery parameters"> | |
49 | <option name="targeted-hello" arg="hello_type" help="LDP Targeted Hellos"> | |
50 | <option name="holdtime" help="Targeted hello holdtime"> | |
51 | <option input="disc_time" arg="seconds" help="Time (seconds) - 65535 implies infinite" function="ldp_vty_disc_holdtime"/> | |
52 | </option> | |
53 | <option name="interval" help="Targeted hello interval"> | |
54 | <option input="disc_time" arg="seconds" help="Time (seconds)" function="ldp_vty_disc_interval"/> | |
55 | </option> | |
56 | </option> | |
57 | </option> | |
58 | </subtree> | |
59 | ||
60 | <subtree name="session_holdtime"> | |
61 | <option name="session" help="Configure session parameters"> | |
62 | <option name="holdtime" help="Configure session holdtime"> | |
63 | <option input="session_time" arg="seconds" help="Time (seconds)" function="ldp_vty_session_holdtime"/> | |
64 | </option> | |
65 | </option> | |
66 | </subtree> | |
67 | ||
68 | <subtree name="af_common"> | |
69 | <include subtree="discovery_link"/> | |
70 | <include subtree="discovery_targeted"/> | |
71 | <option name="discovery" help="Configure discovery parameters"> | |
72 | <option name="targeted-hello" arg="hello_type" help="LDP Targeted Hellos"> | |
73 | <option name="accept" help="Accept and respond to targeted hellos" function="ldp_vty_targeted_hello_accept"/> | |
74 | </option> | |
75 | </option> | |
76 | <option name="label" help="Configure label control and policies"> | |
77 | <option name="local" help="Configure local label control and policies"> | |
78 | <option name="advertise" help="Configure outbound label advertisement control"> | |
79 | <option name="explicit-null" help="Configure explicit-null advertisement" function="ldp_vty_explicit_null"/> | |
80 | </option> | |
81 | </option> | |
82 | </option> | |
83 | <option name="ttl-security" help="LDP ttl security check"> | |
84 | <option name="disable" help="Disable ttl security" function="ldp_vty_ttl_security"/> | |
85 | </option> | |
86 | <include subtree="session_holdtime"/> | |
87 | <option name="interface" help="Enable LDP on an interface and enter interface submode"> | |
88 | <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_interface"/> | |
89 | </option> | |
90 | </subtree> | |
91 | ||
92 | <!-- global --> | |
93 | <subtree name="__global"> | |
94 | <option name="mpls" help="Global MPLS configuration subcommands"> | |
95 | <option name="ldp" help="Label Distribution Protocol" function="ldp_vty_mpls_ldp"/> | |
96 | </option> | |
97 | <option name="l2vpn" help="Configure l2vpn commands"> | |
98 | <option input="word" arg="name" help="L2VPN name"> | |
99 | <option name="type" help="L2VPN type"> | |
100 | <option name="vpls" help="Virtual Private LAN Service" function="ldp_vty_l2vpn"/> | |
101 | </option> | |
102 | </option> | |
103 | </option> | |
104 | </subtree> | |
105 | <tree name="global"> | |
106 | <include subtree="__global"/> | |
107 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
108 | <include subtree="__global"/> | |
109 | </option> | |
110 | </tree> | |
111 | ||
112 | <!-- ldp node --> | |
113 | <subtree name="__ldp_node"> | |
114 | <option name="address-family" help="Configure Address Family and its parameters"> | |
115 | <option name="ipv4" arg="address-family" help="IPv4" function="ldp_vty_address_family"/> | |
116 | <option name="ipv6" arg="address-family" help="IPv6" function="ldp_vty_address_family"/> | |
117 | </option> | |
118 | <include subtree="discovery_link"/> | |
119 | <include subtree="discovery_targeted"/> | |
120 | <option name="dual-stack" help="Configure dual stack parameters"> | |
121 | <option name="transport-connection" help="Configure TCP transport parameters"> | |
122 | <option name="prefer" help="Configure prefered address family for TCP transport connection with neighbor"> | |
123 | <option name="ipv4" help="IPv4" function="ldp_vty_trans_pref_ipv4"/> | |
124 | </option> | |
125 | </option> | |
126 | <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"/> | |
127 | </option> | |
128 | <option name="neighbor" help="Configure neighbor parameters"> | |
129 | <option input="ipv4" arg="lsr_id" help="LDP Id of neighbor"> | |
130 | <option name="password" help="Configure password for MD5 authentication"> | |
131 | <option input="word" arg="password" help="The password" function="ldp_vty_neighbor_password"/> | |
132 | </option> | |
133 | <include subtree="session_holdtime"/> | |
134 | <option name="ttl-security" help="LDP ttl security check"> | |
135 | <option name="disable" help="Disable ttl security" function="ldp_vty_neighbor_ttl_security"/> | |
136 | <option name="hops" help="IP hops"> | |
137 | <option input="hops" arg="hops" help="maximum number of hops" function="ldp_vty_neighbor_ttl_security"/> | |
138 | </option> | |
139 | </option> | |
140 | </option> | |
141 | </option> | |
142 | <option name="router-id" help="Configure router Id"> | |
143 | <option input="ipv4" arg="addr" help="LSR Id (in form of an IPv4 address)" function="ldp_vty_router_id"/> | |
144 | </option> | |
145 | </subtree> | |
146 | <tree name="ldp_node"> | |
147 | <include subtree="__ldp_node"/> | |
148 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
149 | <include subtree="__ldp_node"/> | |
150 | </option> | |
151 | </tree> | |
152 | ||
153 | <!-- address-family ipv4 --> | |
154 | <subtree name="__ldp_ipv4_node"> | |
155 | <include subtree="af_common"/> | |
156 | <option name="discovery" help="Configure discovery parameters"> | |
157 | <option name="transport-address" help="Specify transport address for TCP connection"> | |
158 | <option input="ipv4" arg="addr" help="IP address to be used as transport address" function="ldp_vty_trans_addr"/> | |
159 | </option> | |
160 | </option> | |
161 | <option name="neighbor" help="Configure neighbor parameters"> | |
162 | <option input="ipv4" arg="addr" help="IP address of neighbor"> | |
163 | <option name="targeted" help="Establish targeted session" function="ldp_vty_neighbor_targeted"/> | |
164 | </option> | |
165 | </option> | |
166 | </subtree> | |
167 | <tree name="ldp_ipv4_node"> | |
168 | <include subtree="__ldp_ipv4_node"/> | |
169 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
170 | <include subtree="__ldp_ipv4_node"/> | |
171 | </option> | |
172 | </tree> | |
173 | ||
174 | <!-- address-family ipv6 --> | |
175 | <subtree name="__ldp_ipv6_node"> | |
176 | <include subtree="af_common"/> | |
177 | <option name="discovery" help="Configure discovery parameters"> | |
178 | <option name="transport-address" help="Specify transport address for TCP connection"> | |
179 | <option input="ipv6" arg="addr" help="IPv6 address to be used as transport address" function="ldp_vty_trans_addr"/> | |
180 | </option> | |
181 | </option> | |
182 | <option name="neighbor" help="Configure neighbor parameters"> | |
183 | <option input="ipv6" arg="addr" help="IPv6 address of neighbor"> | |
184 | <option name="targeted" help="Establish targeted session" function="ldp_vty_neighbor_targeted"/> | |
185 | </option> | |
186 | </option> | |
187 | </subtree> | |
188 | <tree name="ldp_ipv6_node"> | |
189 | <include subtree="__ldp_ipv6_node"/> | |
190 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
191 | <include subtree="__ldp_ipv6_node"/> | |
192 | </option> | |
193 | </tree> | |
194 | ||
195 | <!-- ldp ipv4 interface node --> | |
196 | <subtree name="__ldp_ipv4_iface_node"> | |
197 | <include subtree="discovery_link"/> | |
198 | </subtree> | |
199 | <tree name="ldp_ipv4_iface_node"> | |
200 | <include subtree="__ldp_ipv4_iface_node"/> | |
201 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
202 | <include subtree="__ldp_ipv4_iface_node"/> | |
203 | </option> | |
204 | </tree> | |
205 | ||
206 | <!-- ldp ipv6 interface node --> | |
207 | <subtree name="__ldp_ipv6_iface_node"> | |
208 | <include subtree="discovery_link"/> | |
209 | </subtree> | |
210 | <tree name="ldp_ipv6_iface_node"> | |
211 | <include subtree="__ldp_ipv6_iface_node"/> | |
212 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
213 | <include subtree="__ldp_ipv6_iface_node"/> | |
214 | </option> | |
215 | </tree> | |
216 | ||
217 | <!-- l2vpn --> | |
218 | <subtree name="__ldp_l2vpn"> | |
219 | <option name="bridge" help="Bridge interface"> | |
220 | <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_bridge"/> | |
221 | </option> | |
222 | <option name="mtu" help="set Maximum Transmission Unit"> | |
223 | <option input="mtu" arg="mtu" help="Maximum Transmission Unit value" function="ldp_vty_l2vpn_mtu"/> | |
224 | </option> | |
225 | <option name="member" help="L2VPN member configuration"> | |
226 | <option name="interface" help="Local interface"> | |
227 | <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_interface"/> | |
228 | </option> | |
229 | <option name="pseudowire" help="Pseudowire interface"> | |
230 | <option input="ifname" arg="ifname" help="Interface's name" function="ldp_vty_l2vpn_pseudowire"/> | |
231 | </option> | |
232 | </option> | |
233 | <option name="vc" help="Virtual Circuit options"> | |
234 | <option name="type" help="Virtual Circuit type to use"> | |
235 | <select options="pwtype" arg="type" function="ldp_vty_l2vpn_pwtype"/> | |
236 | </option> | |
237 | </option> | |
238 | </subtree> | |
239 | <tree name="ldp_l2vpn"> | |
240 | <include subtree="__ldp_l2vpn"/> | |
241 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
242 | <include subtree="__ldp_l2vpn"/> | |
243 | </option> | |
244 | </tree> | |
245 | ||
246 | <!-- l2vpn pseudowire --> | |
247 | <subtree name="__ldp_pseudowire"> | |
248 | <option name="control-word" help="Control-word options"> | |
249 | <select options="cword" arg="preference" function="ldp_vty_l2vpn_pw_cword"/> | |
250 | </option> | |
251 | <option name="neighbor" help="Remote endpoint configuration"> | |
252 | <option name="address" help="Specify the IPv4 or IPv6 address of the remote endpoint"> | |
253 | <select options="addr" arg="addr" function="ldp_vty_l2vpn_pw_nbr_addr"/> | |
254 | </option> | |
255 | <option name="lsr-id" help="Specify the LSR-ID of the remote endpoint"> | |
256 | <option input="ipv4" arg="lsr-id" help="IPv4 address" function="ldp_vty_l2vpn_pw_nbr_id"/> | |
257 | </option> | |
258 | </option> | |
259 | <option name="pw-id" help="Set the Virtual Circuit ID"> | |
260 | <option input="pwid" arg="pwid" help="Virtual Circuit ID value" function="ldp_vty_l2vpn_pw_pwid"/> | |
261 | </option> | |
262 | <option name="pw-status" help="Configure PW status"> | |
263 | <option name="disable" help="Disable PW status" function="ldp_vty_l2vpn_pw_pwstatus"/> | |
264 | </option> | |
265 | </subtree> | |
266 | <tree name="ldp_pseudowire"> | |
267 | <include subtree="__ldp_pseudowire"/> | |
268 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
269 | <include subtree="__ldp_pseudowire"/> | |
270 | </option> | |
271 | </tree> | |
272 | ||
273 | <!-- exec mode commands --> | |
274 | <subtree name="ldp_show_af"> | |
275 | <option name="binding" help="Label Information Base (LIB) information" function="ldp_vty_show_binding"/> | |
276 | <option name="discovery" help="Discovery Hello Information" function="ldp_vty_show_discovery"/> | |
277 | <option name="interface" help="interface information" function="ldp_vty_show_interface"/> | |
278 | </subtree> | |
279 | <tree name="ldp_exec"> | |
280 | <option name="show" help="Show running system information"> | |
281 | <option name="mpls" help="MPLS information"> | |
282 | <option name="ldp" help="Label Distribution Protocol"> | |
283 | <option name="neighbor" help="Neighbor information" function="ldp_vty_show_neighbor"/> | |
284 | <include subtree="ldp_show_af"/> | |
285 | <select options="address-family" arg="address-family"> | |
286 | <include subtree="ldp_show_af"/> | |
287 | </select> | |
288 | </option> | |
289 | </option> | |
290 | <option name="l2vpn" help="Show information about Layer2 VPN"> | |
291 | <option name="atom" help="Show Any Transport over MPLS information"> | |
292 | <option name="binding" help="Show AToM label binding information" function="ldp_vty_show_atom_binding"/> | |
293 | <option name="vc" help="Show AToM virtual circuit information" function="ldp_vty_show_atom_vc"/> | |
294 | </option> | |
295 | </option> | |
296 | <option name="debugging" help="Debugging functions"> | |
297 | <option name="mpls" help="MPLS information"> | |
298 | <option name="ldp" help="Label Distribution Protocol" function="ldp_vty_show_debugging"/> | |
299 | </option> | |
300 | </option> | |
301 | </option> | |
302 | <option name="clear" help="Reset functions"> | |
303 | <option name="mpls" help="Reset MPLS statistical information"> | |
304 | <option name="ldp" help="Clear LDP state"> | |
305 | <option name="neighbor" help="Clear LDP neighbor sessions" function="ldp_vty_clear_nbr"> | |
306 | <select options="addr" arg="addr" function="ldp_vty_clear_nbr"/> | |
307 | </option> | |
308 | </option> | |
309 | </option> | |
310 | </option> | |
311 | </tree> | |
312 | ||
313 | <!-- debug commands --> | |
314 | <subtree name="__ldp_debug"> | |
315 | <option name="debug" help="Debugging functions"> | |
316 | <option name="mpls" help="MPLS information"> | |
317 | <option name="ldp" help="Label Distribution Protocol"> | |
318 | <option name="discovery" arg="type" help="Discovery messages"> | |
319 | <option name="hello" help="Discovery hello message"> | |
320 | <select options="dir" arg="dir" function="ldp_vty_debug"/> | |
321 | </option> | |
322 | </option> | |
323 | <option name="errors" arg="type" help="Errors" function="ldp_vty_debug"/> | |
324 | <option name="event" arg="type" help="LDP event information" function="ldp_vty_debug"/> | |
325 | <option name="messages" arg="type" help="Messages"> | |
326 | <option name="recv" arg="dir" help="Received messages, excluding periodic Keep Alives" function="ldp_vty_debug"> | |
327 | <option name="all" arg="all" help="Received messages, including periodic Keep Alives" function="ldp_vty_debug"/> | |
328 | </option> | |
329 | <option name="sent" arg="dir" help="Sent messages, excluding periodic Keep Alives" function="ldp_vty_debug"> | |
330 | <option name="all" arg="all" help="Sent messages, including periodic Keep Alives" function="ldp_vty_debug"/> | |
331 | </option> | |
332 | </option> | |
333 | <option name="zebra" arg="type" help="LDP zebra information" function="ldp_vty_debug"/> | |
334 | </option> | |
335 | </option> | |
336 | </option> | |
337 | </subtree> | |
338 | <tree name="ldp_debug"> | |
339 | <include subtree="__ldp_debug"/> | |
340 | <option name="no" arg="no" help="Negate a command or set its defaults"> | |
341 | <include subtree="__ldp_debug"/> | |
342 | </option> | |
343 | </tree> | |
344 | ||
345 | <!-- nodes --> | |
346 | <node name="CONFIG"> | |
347 | <include tree="global"/> | |
348 | <include tree="ldp_debug"/> | |
349 | </node> | |
350 | <node install="1" install_default="1" config_write="ldp_config_write" name="LDP"> | |
351 | <include tree="ldp_node"/> | |
352 | </node> | |
353 | <node install="1" install_default="1" config_write="NULL" name="LDP_IPV4"> | |
354 | <include tree="ldp_ipv4_node"/> | |
355 | </node> | |
356 | <node install="1" install_default="1" config_write="NULL" name="LDP_IPV6"> | |
357 | <include tree="ldp_ipv6_node"/> | |
358 | </node> | |
359 | <node install="1" install_default="1" config_write="NULL" name="LDP_IPV4_IFACE"> | |
360 | <include tree="ldp_ipv4_iface_node"/> | |
361 | </node> | |
362 | <node install="1" install_default="1" config_write="NULL" name="LDP_IPV6_IFACE"> | |
363 | <include tree="ldp_ipv6_iface_node"/> | |
364 | </node> | |
365 | <node install="1" install_default="1" config_write="ldp_l2vpn_config_write" name="LDP_L2VPN"> | |
366 | <include tree="ldp_l2vpn"/> | |
367 | </node> | |
368 | <node install="1" install_default="1" config_write="NULL" name="LDP_PSEUDOWIRE"> | |
369 | <include tree="ldp_pseudowire"/> | |
370 | </node> | |
371 | <node install="1" config_write="ldp_debug_config_write" name="LDP_DEBUG"/> | |
372 | <node name="ENABLE"> | |
eac6e3f0 RW |
373 | <include tree="ldp_debug"/> |
374 | </node> | |
375 | <node name="VIEW"> | |
376 | <include tree="ldp_exec"/> | |
377 | </node> | |
378 | </file> |