2 * Copyright (C) 2016 by Open Source Routing.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 #include "ldpd/ldpd.h"
27 #include "ldpd/ldp_vty.h"
28 #ifndef VTYSH_EXTRACT_PL
29 #include "ldpd/ldp_vty_cmds_clippy.c"
32 DEFUN_NOSH(ldp_mpls_ldp
,
35 "Global MPLS configuration subcommands\n"
36 "Label Distribution Protocol\n")
38 return (ldp_vty_mpls_ldp(vty
, NULL
));
41 DEFPY (no_ldp_mpls_ldp
,
45 "Global MPLS configuration subcommands\n"
46 "Label Distribution Protocol\n")
48 return (ldp_vty_mpls_ldp(vty
, "no"));
53 "l2vpn WORD type vpls",
54 "Configure l2vpn commands\n"
57 "Virtual Private LAN Service\n")
62 argv_find(argv
, argc
, "WORD", &idx
);
63 name
= argv
[idx
]->arg
;
65 return (ldp_vty_l2vpn(vty
, 0, name
));
70 "no l2vpn WORD$l2vpn_name type vpls",
72 "Configure l2vpn commands\n"
75 "Virtual Private LAN Service\n")
77 return (ldp_vty_l2vpn(vty
, "no", l2vpn_name
));
80 DEFUN_NOSH(ldp_address_family
,
81 ldp_address_family_cmd
,
82 "address-family <ipv4|ipv6>",
83 "Configure Address Family and its parameters\n"
90 argv_find(argv
, argc
, "address-family", &idx
);
91 af
= argv
[idx
+ 1]->text
;
93 return (ldp_vty_address_family(vty
, 0, af
));
96 DEFPY (no_ldp_address_family
,
97 no_ldp_address_family_cmd
,
98 "no address-family <ipv4|ipv6>$af",
100 "Configure Address Family and its parameters\n"
104 return (ldp_vty_address_family(vty
, "no", af
));
107 DEFUN_NOSH(ldp_exit_address_family
,
108 ldp_exit_address_family_cmd
,
109 "exit-address-family",
110 "Exit from Address Family configuration mode\n")
112 if (vty
->node
== LDP_IPV4_NODE
|| vty
->node
== LDP_IPV6_NODE
)
113 vty
->node
= LDP_NODE
;
117 DEFPY (ldp_discovery_link_holdtime
,
118 ldp_discovery_link_holdtime_cmd
,
119 "[no] discovery hello holdtime (1-65535)$holdtime",
121 "Configure discovery parameters\n"
124 "Time (seconds) - 65535 implies infinite\n")
126 return (ldp_vty_disc_holdtime(vty
, no
, HELLO_LINK
, holdtime
));
129 DEFPY (ldp_discovery_targeted_holdtime
,
130 ldp_discovery_targeted_holdtime_cmd
,
131 "[no] discovery targeted-hello holdtime (1-65535)$holdtime",
133 "Configure discovery parameters\n"
134 "LDP Targeted Hellos\n"
136 "Time (seconds) - 65535 implies infinite\n")
138 return (ldp_vty_disc_holdtime(vty
, no
, HELLO_TARGETED
, holdtime
));
141 DEFPY (ldp_discovery_link_interval
,
142 ldp_discovery_link_interval_cmd
,
143 "[no] discovery hello interval (1-65535)$interval",
145 "Configure discovery parameters\n"
150 return (ldp_vty_disc_interval(vty
, no
, HELLO_LINK
, interval
));
153 DEFPY (ldp_discovery_targeted_interval
,
154 ldp_discovery_targeted_interval_cmd
,
155 "[no] discovery targeted-hello interval (1-65535)$interval",
157 "Configure discovery parameters\n"
158 "LDP Targeted Hellos\n"
162 return (ldp_vty_disc_interval(vty
, no
, HELLO_TARGETED
, interval
));
165 DEFPY (ldp_dual_stack_transport_connection_prefer_ipv4
,
166 ldp_dual_stack_transport_connection_prefer_ipv4_cmd
,
167 "[no] dual-stack transport-connection prefer ipv4",
169 "Configure dual stack parameters\n"
170 "Configure TCP transport parameters\n"
171 "Configure prefered address family for TCP transport connection with neighbor\n"
174 return (ldp_vty_trans_pref_ipv4(vty
, no
));
177 DEFPY (ldp_dual_stack_cisco_interop
,
178 ldp_dual_stack_cisco_interop_cmd
,
179 "[no] dual-stack cisco-interop",
181 "Configure dual stack parameters\n"
182 "Use Cisco non-compliant format to send and interpret the Dual-Stack capability TLV\n")
184 return (ldp_vty_ds_cisco_interop(vty
, no
));
187 DEFPY (ldp_neighbor_password
,
188 ldp_neighbor_password_cmd
,
189 "[no] neighbor A.B.C.D$neighbor password WORD$password",
191 "Configure neighbor parameters\n"
192 "LDP Id of neighbor\n"
193 "Configure password for MD5 authentication\n"
196 return (ldp_vty_neighbor_password(vty
, no
, neighbor
, password
));
199 DEFPY (ldp_neighbor_session_holdtime
,
200 ldp_neighbor_session_holdtime_cmd
,
201 "[no] neighbor A.B.C.D$neighbor session holdtime (15-65535)$holdtime",
203 "Configure neighbor parameters\n"
204 "LDP Id of neighbor\n"
205 "Configure session parameters\n"
206 "Configure session holdtime\n"
209 return (ldp_vty_nbr_session_holdtime(vty
, no
, neighbor
, holdtime
));
212 DEFPY (ldp_neighbor_ttl_security
,
213 ldp_neighbor_ttl_security_cmd
,
214 "[no] neighbor A.B.C.D$neighbor ttl-security <disable|hops (1-254)$hops>",
216 "Configure neighbor parameters\n"
217 "LDP Id of neighbor\n"
218 "LDP ttl security check\n"
219 "Disable ttl security\n"
221 "maximum number of hops\n")
223 return (ldp_vty_neighbor_ttl_security(vty
, no
, neighbor
, hops_str
));
226 DEFPY (ldp_router_id
,
228 "[no] router-id A.B.C.D$address",
230 "Configure router Id\n"
231 "LSR Id (in form of an IPv4 address)\n")
233 return (ldp_vty_router_id(vty
, no
, address
));
236 DEFPY (ldp_discovery_targeted_hello_accept
,
237 ldp_discovery_targeted_hello_accept_cmd
,
238 "[no] discovery targeted-hello accept [from <(1-199)|(1300-2699)|WORD>$from_acl]",
240 "Configure discovery parameters\n"
241 "LDP Targeted Hellos\n"
242 "Accept and respond to targeted hellos\n"
243 "Access list to specify acceptable targeted hello source\n"
244 "IP access-list number\n"
245 "IP access-list number (expanded range)\n"
246 "IP access-list name\n")
248 return (ldp_vty_targeted_hello_accept(vty
, no
, from_acl
));
251 DEFPY (ldp_discovery_transport_address_ipv4
,
252 ldp_discovery_transport_address_ipv4_cmd
,
253 "[no] discovery transport-address A.B.C.D$address",
255 "Configure discovery parameters\n"
256 "Specify transport address for TCP connection\n"
257 "IP address to be used as transport address\n")
259 return (ldp_vty_trans_addr(vty
, no
, address_str
));
262 DEFPY (ldp_discovery_transport_address_ipv6
,
263 ldp_discovery_transport_address_ipv6_cmd
,
264 "[no] discovery transport-address X:X::X:X$address",
266 "Configure discovery parameters\n"
267 "Specify transport address for TCP connection\n"
268 "IPv6 address to be used as transport address\n")
270 return (ldp_vty_trans_addr(vty
, no
, address_str
));
273 DEFPY (ldp_label_local_advertise
,
274 ldp_label_local_advertise_cmd
,
275 "[no] label local advertise [{to <(1-199)|(1300-2699)|WORD>$to_acl|for <(1-199)|(1300-2699)|WORD>$for_acl}]",
277 "Configure label control and policies\n"
278 "Configure local label control and policies\n"
279 "Configure outbound label advertisement control\n"
280 "IP Access-list specifying controls on LDP Peers\n"
281 "IP access-list number\n"
282 "IP access-list number (expanded range)\n"
283 "IP access-list name\n"
284 "IP access-list for destination prefixes\n"
285 "IP access-list number\n"
286 "IP access-list number (expanded range)\n"
287 "IP access-list name\n")
289 return (ldp_vty_label_advertise(vty
, no
, to_acl
, for_acl
));
292 DEFPY (ldp_label_local_advertise_explicit_null
,
293 ldp_label_local_advertise_explicit_null_cmd
,
294 "[no] label local advertise explicit-null [for <(1-199)|(1300-2699)|WORD>$for_acl]",
296 "Configure label control and policies\n"
297 "Configure local label control and policies\n"
298 "Configure outbound label advertisement control\n"
299 "Configure explicit-null advertisement\n"
300 "IP access-list for destination prefixes\n"
301 "IP access-list number\n"
302 "IP access-list number (expanded range)\n"
303 "IP access-list name\n")
305 return (ldp_vty_label_expnull(vty
, no
, for_acl
));
308 DEFPY (ldp_label_local_allocate
,
309 ldp_label_local_allocate_cmd
,
310 "[no] label local allocate <host-routes$host_routes|for <(1-199)|(1300-2699)|WORD>$for_acl>",
312 "Configure label control and policies\n"
313 "Configure local label control and policies\n"
314 "Configure label allocation control\n"
315 "allocate local label for host routes only\n"
317 "IP access-list number\n"
318 "IP access-list number (expanded range)\n"
319 "IP access-list name\n")
321 return (ldp_vty_label_allocate(vty
, no
, host_routes
, for_acl
));
324 DEFPY (ldp_label_remote_accept
,
325 ldp_label_remote_accept_cmd
,
326 "[no] label remote accept {from <(1-199)|(1300-2699)|WORD>$from_acl|for <(1-199)|(1300-2699)|WORD>$for_acl}",
328 "Configure label control and policies\n"
329 "Configure remote/peer label control and policies\n"
330 "Configure inbound label acceptance control\n"
331 "Neighbor from whom to accept label advertisement\n"
332 "IP access-list number\n"
333 "IP access-list number (expanded range)\n"
334 "IP access-list name\n"
335 "IP access-list for destination prefixes\n"
336 "IP access-list number\n"
337 "IP access-list number (expanded range)\n"
338 "IP access-list name\n")
340 return (ldp_vty_label_accept(vty
, no
, from_acl
, for_acl
));
343 DEFPY (ldp_ttl_security_disable
,
344 ldp_ttl_security_disable_cmd
,
345 "[no] ttl-security disable",
347 "LDP ttl security check\n"
348 "Disable ttl security\n")
350 return (ldp_vty_ttl_security(vty
, no
));
353 DEFPY (ldp_session_holdtime
,
354 ldp_session_holdtime_cmd
,
355 "[no] session holdtime (15-65535)$holdtime",
357 "Configure session parameters\n"
358 "Configure session holdtime\n"
361 return (ldp_vty_af_session_holdtime(vty
, no
, holdtime
));
364 DEFUN_NOSH(ldp_interface
,
367 "Enable LDP on an interface and enter interface submode\n"
368 "Interface's name\n")
373 argv_find(argv
, argc
, "IFNAME", &idx
);
374 ifname
= argv
[idx
]->arg
;
376 return (ldp_vty_interface(vty
, 0, ifname
));
379 DEFPY (no_ldp_interface
,
380 no_ldp_interface_cmd
,
381 "no interface IFNAME$ifname",
383 "Enable LDP on an interface and enter interface submode\n"
384 "Interface's name\n")
386 return (ldp_vty_interface(vty
, "no", ifname
));
389 DEFPY (ldp_neighbor_ipv4_targeted
,
390 ldp_neighbor_ipv4_targeted_cmd
,
391 "[no] neighbor A.B.C.D$address targeted",
393 "Configure neighbor parameters\n"
394 "IP address of neighbor\n"
395 "Establish targeted session\n")
397 return (ldp_vty_neighbor_targeted(vty
, no
, address_str
));
400 DEFPY (ldp_neighbor_ipv6_targeted
,
401 ldp_neighbor_ipv6_targeted_cmd
,
402 "[no] neighbor X:X::X:X$address targeted",
404 "Configure neighbor parameters\n"
405 "IPv6 address of neighbor\n"
406 "Establish targeted session\n")
408 return (ldp_vty_neighbor_targeted(vty
, no
, address_str
));
413 "[no] bridge IFNAME$ifname",
416 "Interface's name\n")
418 return (ldp_vty_l2vpn_bridge(vty
, no
, ifname
));
423 "[no] mtu (1500-9180)$mtu",
425 "Set Maximum Transmission Unit\n"
426 "Maximum Transmission Unit value\n")
428 return (ldp_vty_l2vpn_mtu(vty
, no
, mtu
));
431 DEFPY (ldp_member_interface
,
432 ldp_member_interface_cmd
,
433 "[no] member interface IFNAME$ifname",
435 "L2VPN member configuration\n"
437 "Interface's name\n")
439 return (ldp_vty_l2vpn_interface(vty
, no
, ifname
));
442 DEFUN_NOSH(ldp_member_pseudowire
,
443 ldp_member_pseudowire_cmd
,
444 "member pseudowire IFNAME",
445 "L2VPN member configuration\n"
446 "Pseudowire interface\n"
447 "Interface's name\n")
452 argv_find(argv
, argc
, "IFNAME", &idx
);
453 ifname
= argv
[idx
]->arg
;
455 return (ldp_vty_l2vpn_pseudowire(vty
, 0, ifname
));
458 DEFPY (no_ldp_member_pseudowire
,
459 no_ldp_member_pseudowire_cmd
,
460 "no member pseudowire IFNAME$ifname",
462 "L2VPN member configuration\n"
463 "Pseudowire interface\n"
464 "Interface's name\n")
466 return (ldp_vty_l2vpn_pseudowire(vty
, "no", ifname
));
471 "[no] vc type <ethernet|ethernet-tagged>$vc_type",
473 "Virtual Circuit options\n"
474 "Virtual Circuit type to use\n"
475 "Ethernet (type 5)\n"
476 "Ethernet-tagged (type 4)\n")
478 return (ldp_vty_l2vpn_pwtype(vty
, no
, vc_type
));
481 DEFPY (ldp_control_word
,
482 ldp_control_word_cmd
,
483 "[no] control-word <exclude|include>$preference",
485 "Control-word options\n"
486 "Exclude control-word in pseudowire packets\n"
487 "Include control-word in pseudowire packets\n")
489 return (ldp_vty_l2vpn_pw_cword(vty
, no
, preference
));
492 DEFPY (ldp_neighbor_address
,
493 ldp_neighbor_address_cmd
,
494 "[no] neighbor address <A.B.C.D|X:X::X:X>$pw_address",
496 "Remote endpoint configuration\n"
497 "Specify the IPv4 or IPv6 address of the remote endpoint\n"
501 return (ldp_vty_l2vpn_pw_nbr_addr(vty
, no
, pw_address_str
));
504 DEFPY (ldp_neighbor_lsr_id
,
505 ldp_neighbor_lsr_id_cmd
,
506 "[no] neighbor lsr-id A.B.C.D$address",
508 "Remote endpoint configuration\n"
509 "Specify the LSR-ID of the remote endpoint\n"
512 return (ldp_vty_l2vpn_pw_nbr_id(vty
, no
, address
));
517 "[no] pw-id (1-4294967295)$pwid",
519 "Set the Virtual Circuit ID\n"
520 "Virtual Circuit ID value\n")
522 return (ldp_vty_l2vpn_pw_pwid(vty
, no
, pwid
));
525 DEFPY (ldp_pw_status_disable
,
526 ldp_pw_status_disable_cmd
,
527 "[no] pw-status disable",
529 "Configure PW status\n"
530 "Disable PW status\n")
532 return (ldp_vty_l2vpn_pw_pwstatus(vty
, no
));
535 DEFPY (ldp_clear_mpls_ldp_neighbor
,
536 ldp_clear_mpls_ldp_neighbor_cmd
,
537 "clear mpls ldp neighbor [<A.B.C.D|X:X::X:X>]$address",
539 "Reset MPLS statistical information\n"
541 "Clear LDP neighbor sessions\n"
545 return (ldp_vty_clear_nbr(vty
, address_str
));
548 DEFPY (ldp_debug_mpls_ldp_discovery_hello
,
549 ldp_debug_mpls_ldp_discovery_hello_cmd
,
550 "[no] debug mpls ldp discovery hello <recv|sent>$dir",
552 "Debugging functions\n"
554 "Label Distribution Protocol\n"
555 "Discovery messages\n"
556 "Discovery hello message\n"
557 "Received messages\n"
560 return (ldp_vty_debug(vty
, no
, "discovery", dir
, NULL
));
563 DEFPY (ldp_debug_mpls_ldp_type
,
564 ldp_debug_mpls_ldp_type_cmd
,
565 "[no] debug mpls ldp <errors|event|labels|zebra>$type",
567 "Debugging functions\n"
569 "Label Distribution Protocol\n"
571 "LDP event information\n"
572 "LDP label allocation information\n"
573 "LDP zebra information\n")
575 return (ldp_vty_debug(vty
, no
, type
, NULL
, NULL
));
578 DEFPY (ldp_debug_mpls_ldp_messages_recv
,
579 ldp_debug_mpls_ldp_messages_recv_cmd
,
580 "[no] debug mpls ldp messages recv [all]$all",
582 "Debugging functions\n"
584 "Label Distribution Protocol\n"
586 "Received messages, excluding periodic Keep Alives\n"
587 "Received messages, including periodic Keep Alives\n")
589 return (ldp_vty_debug(vty
, no
, "messages", "recv", all
));
592 DEFPY (ldp_debug_mpls_ldp_messages_sent
,
593 ldp_debug_mpls_ldp_messages_sent_cmd
,
594 "[no] debug mpls ldp messages sent [all]$all",
596 "Debugging functions\n"
598 "Label Distribution Protocol\n"
600 "Sent messages, excluding periodic Keep Alives\n"
601 "Sent messages, including periodic Keep Alives\n")
603 return (ldp_vty_debug(vty
, no
, "messages", "sent", all
));
606 DEFPY (ldp_show_mpls_ldp_binding
,
607 ldp_show_mpls_ldp_binding_cmd
,
608 "show mpls ldp [<ipv4|ipv6>]$af binding\
609 [<A.B.C.D/M|X:X::X:X/M>$prefix [longer-prefixes$longer_prefixes]]\
611 neighbor A.B.C.D$nbr\
612 |local-label (0-1048575)$local_label\
613 |remote-label (0-1048575)$remote_label\
615 [detail]$detail [json]$json",
616 "Show running system information\n"
618 "Label Distribution Protocol\n"
619 "IPv4 Address Family\n"
620 "IPv6 Address Family\n"
621 "Label Information Base (LIB) information\n"
622 "Destination prefix (IPv4)\n"
623 "Destination prefix (IPv6)\n"
624 "Include longer matches\n"
625 "Display labels from LDP neighbor\n"
627 "Match locally assigned label values\n"
628 "Locally assigned label value\n"
629 "Match remotely assigned label values\n"
630 "Remotely assigned label value\n"
631 "Show detailed information\n"
634 if (!local_label_str
)
635 local_label
= NO_LABEL
;
636 if (!remote_label_str
)
637 remote_label
= NO_LABEL
;
638 return (ldp_vty_show_binding(vty
, af
, prefix_str
, !!longer_prefixes
,
639 nbr_str
, local_label
, remote_label
, detail
, json
));
642 DEFPY (ldp_show_mpls_ldp_discovery
,
643 ldp_show_mpls_ldp_discovery_cmd
,
644 "show mpls ldp [<ipv4|ipv6>]$af discovery [detail]$detail [json]$json",
645 "Show running system information\n"
647 "Label Distribution Protocol\n"
648 "IPv4 Address Family\n"
649 "IPv6 Address Family\n"
650 "Discovery Hello Information\n"
651 "Show detailed information\n"
654 return (ldp_vty_show_discovery(vty
, af
, detail
, json
));
657 DEFPY (ldp_show_mpls_ldp_interface
,
658 ldp_show_mpls_ldp_interface_cmd
,
659 "show mpls ldp [<ipv4|ipv6>]$af interface [json]$json",
660 "Show running system information\n"
662 "Label Distribution Protocol\n"
663 "IPv4 Address Family\n"
664 "IPv6 Address Family\n"
665 "interface information\n"
668 return (ldp_vty_show_interface(vty
, af
, json
));
671 DEFPY (ldp_show_mpls_ldp_capabilities
,
672 ldp_show_mpls_ldp_capabilities_cmd
,
673 "show mpls ldp capabilities [json]$json",
674 "Show running system information\n"
676 "Label Distribution Protocol\n"
677 "Display LDP Capabilities information\n"
680 return (ldp_vty_show_capabilities(vty
, json
));
683 DEFPY (ldp_show_mpls_ldp_neighbor
,
684 ldp_show_mpls_ldp_neighbor_cmd
,
685 "show mpls ldp neighbor [A.B.C.D]$lsr_id [detail]$detail [json]$json",
686 "Show running system information\n"
688 "Label Distribution Protocol\n"
689 "Neighbor information\n"
691 "Show detailed information\n"
694 return (ldp_vty_show_neighbor(vty
, lsr_id_str
, 0, detail
, json
));
697 DEFPY (ldp_show_mpls_ldp_neighbor_capabilities
,
698 ldp_show_mpls_ldp_neighbor_capabilities_cmd
,
699 "show mpls ldp neighbor [A.B.C.D]$lsr_id capabilities [json]$json",
700 "Show running system information\n"
702 "Label Distribution Protocol\n"
703 "Neighbor information\n"
705 "Display neighbor capability information\n"
708 return (ldp_vty_show_neighbor(vty
, lsr_id_str
, 1, NULL
, json
));
711 DEFPY (ldp_show_l2vpn_atom_binding
,
712 ldp_show_l2vpn_atom_binding_cmd
,
713 "show l2vpn atom binding\
716 |local-label (16-1048575)$local_label\
717 |remote-label (16-1048575)$remote_label\
720 "Show running system information\n"
721 "Show information about Layer2 VPN\n"
722 "Show Any Transport over MPLS information\n"
723 "Show AToM label binding information\n"
724 "Destination address of the VC\n"
725 "Match locally assigned label values\n"
726 "Locally assigned label value\n"
727 "Match remotely assigned label values\n"
728 "Remotely assigned label value\n"
731 if (!local_label_str
)
732 local_label
= NO_LABEL
;
733 if (!remote_label_str
)
734 remote_label
= NO_LABEL
;
735 return (ldp_vty_show_atom_binding(vty
, peer_str
, local_label
,
736 remote_label
, json
));
739 DEFPY (ldp_show_l2vpn_atom_vc
,
740 ldp_show_l2vpn_atom_vc_cmd
,
744 |interface IFNAME$ifname\
745 |vc-id (1-4294967295)$vcid\
748 "Show running system information\n"
749 "Show information about Layer2 VPN\n"
750 "Show Any Transport over MPLS information\n"
751 "Show AToM virtual circuit information\n"
752 "Destination address of the VC\n"
753 "Local interface of the pseudowire\n"
759 return (ldp_vty_show_atom_vc(vty
, peer_str
, ifname
, vcid_str
, json
));
762 DEFUN_NOSH (ldp_show_debugging_mpls_ldp
,
763 ldp_show_debugging_mpls_ldp_cmd
,
764 "show debugging [mpls ldp]",
765 "Show running system information\n"
766 "Debugging functions\n"
768 "Label Distribution Protocol\n")
770 return (ldp_vty_show_debugging(vty
));
774 l2vpn_autocomplete(vector comps
, struct cmd_token
*token
)
778 RB_FOREACH(l2vpn
, l2vpn_head
, &vty_conf
->l2vpn_tree
)
779 vector_set(comps
, XSTRDUP(MTYPE_COMPLETION
, l2vpn
->name
));
782 static const struct cmd_variable_handler l2vpn_var_handlers
[] = {
784 .varname
= "l2vpn_name",
785 .completions
= l2vpn_autocomplete
795 cmd_variable_handler_register(l2vpn_var_handlers
);
797 install_node(&ldp_node
, ldp_config_write
);
798 install_node(&ldp_ipv4_node
, NULL
);
799 install_node(&ldp_ipv6_node
, NULL
);
800 install_node(&ldp_ipv4_iface_node
, NULL
);
801 install_node(&ldp_ipv6_iface_node
, NULL
);
802 install_node(&ldp_l2vpn_node
, ldp_l2vpn_config_write
);
803 install_node(&ldp_pseudowire_node
, NULL
);
804 install_node(&ldp_debug_node
, ldp_debug_config_write
);
805 install_default(LDP_NODE
);
806 install_default(LDP_IPV4_NODE
);
807 install_default(LDP_IPV6_NODE
);
808 install_default(LDP_IPV4_IFACE_NODE
);
809 install_default(LDP_IPV6_IFACE_NODE
);
810 install_default(LDP_L2VPN_NODE
);
811 install_default(LDP_PSEUDOWIRE_NODE
);
813 install_element(CONFIG_NODE
, &ldp_mpls_ldp_cmd
);
814 install_element(CONFIG_NODE
, &no_ldp_mpls_ldp_cmd
);
815 install_element(CONFIG_NODE
, &ldp_l2vpn_cmd
);
816 install_element(CONFIG_NODE
, &no_ldp_l2vpn_cmd
);
817 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_discovery_hello_cmd
);
818 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_type_cmd
);
819 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_messages_recv_cmd
);
820 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_messages_sent_cmd
);
822 install_element(LDP_NODE
, &ldp_address_family_cmd
);
823 install_element(LDP_NODE
, &no_ldp_address_family_cmd
);
824 install_element(LDP_NODE
, &ldp_discovery_link_holdtime_cmd
);
825 install_element(LDP_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
826 install_element(LDP_NODE
, &ldp_discovery_link_interval_cmd
);
827 install_element(LDP_NODE
, &ldp_discovery_targeted_interval_cmd
);
828 install_element(LDP_NODE
, &ldp_dual_stack_transport_connection_prefer_ipv4_cmd
);
829 install_element(LDP_NODE
, &ldp_dual_stack_cisco_interop_cmd
);
830 install_element(LDP_NODE
, &ldp_neighbor_password_cmd
);
831 install_element(LDP_NODE
, &ldp_neighbor_session_holdtime_cmd
);
832 install_element(LDP_NODE
, &ldp_neighbor_ttl_security_cmd
);
833 install_element(LDP_NODE
, &ldp_router_id_cmd
);
835 install_element(LDP_IPV4_NODE
, &ldp_discovery_link_holdtime_cmd
);
836 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
837 install_element(LDP_IPV4_NODE
, &ldp_discovery_link_interval_cmd
);
838 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_interval_cmd
);
839 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_hello_accept_cmd
);
840 install_element(LDP_IPV4_NODE
, &ldp_discovery_transport_address_ipv4_cmd
);
841 install_element(LDP_IPV4_NODE
, &ldp_label_local_advertise_cmd
);
842 install_element(LDP_IPV4_NODE
, &ldp_label_local_advertise_explicit_null_cmd
);
843 install_element(LDP_IPV4_NODE
, &ldp_label_local_allocate_cmd
);
844 install_element(LDP_IPV4_NODE
, &ldp_label_remote_accept_cmd
);
845 install_element(LDP_IPV4_NODE
, &ldp_ttl_security_disable_cmd
);
846 install_element(LDP_IPV4_NODE
, &ldp_interface_cmd
);
847 install_element(LDP_IPV4_NODE
, &no_ldp_interface_cmd
);
848 install_element(LDP_IPV4_NODE
, &ldp_session_holdtime_cmd
);
849 install_element(LDP_IPV4_NODE
, &ldp_neighbor_ipv4_targeted_cmd
);
850 install_element(LDP_IPV4_NODE
, &ldp_exit_address_family_cmd
);
852 install_element(LDP_IPV6_NODE
, &ldp_discovery_link_holdtime_cmd
);
853 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
854 install_element(LDP_IPV6_NODE
, &ldp_discovery_link_interval_cmd
);
855 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_interval_cmd
);
856 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_hello_accept_cmd
);
857 install_element(LDP_IPV6_NODE
, &ldp_discovery_transport_address_ipv6_cmd
);
858 install_element(LDP_IPV6_NODE
, &ldp_label_local_advertise_cmd
);
859 install_element(LDP_IPV6_NODE
, &ldp_label_local_advertise_explicit_null_cmd
);
860 install_element(LDP_IPV6_NODE
, &ldp_label_local_allocate_cmd
);
861 install_element(LDP_IPV6_NODE
, &ldp_label_remote_accept_cmd
);
862 install_element(LDP_IPV6_NODE
, &ldp_ttl_security_disable_cmd
);
863 install_element(LDP_IPV6_NODE
, &ldp_interface_cmd
);
864 install_element(LDP_IPV6_NODE
, &no_ldp_interface_cmd
);
865 install_element(LDP_IPV6_NODE
, &ldp_session_holdtime_cmd
);
866 install_element(LDP_IPV6_NODE
, &ldp_neighbor_ipv6_targeted_cmd
);
867 install_element(LDP_IPV6_NODE
, &ldp_exit_address_family_cmd
);
869 install_element(LDP_IPV4_IFACE_NODE
, &ldp_discovery_link_holdtime_cmd
);
870 install_element(LDP_IPV4_IFACE_NODE
, &ldp_discovery_link_interval_cmd
);
872 install_element(LDP_IPV6_IFACE_NODE
, &ldp_discovery_link_holdtime_cmd
);
873 install_element(LDP_IPV6_IFACE_NODE
, &ldp_discovery_link_interval_cmd
);
875 install_element(LDP_L2VPN_NODE
, &ldp_bridge_cmd
);
876 install_element(LDP_L2VPN_NODE
, &ldp_mtu_cmd
);
877 install_element(LDP_L2VPN_NODE
, &ldp_member_interface_cmd
);
878 install_element(LDP_L2VPN_NODE
, &ldp_member_pseudowire_cmd
);
879 install_element(LDP_L2VPN_NODE
, &no_ldp_member_pseudowire_cmd
);
880 install_element(LDP_L2VPN_NODE
, &ldp_vc_type_cmd
);
882 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_control_word_cmd
);
883 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_neighbor_address_cmd
);
884 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_neighbor_lsr_id_cmd
);
885 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_pw_id_cmd
);
886 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_pw_status_disable_cmd
);
888 install_element(ENABLE_NODE
, &ldp_clear_mpls_ldp_neighbor_cmd
);
889 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_discovery_hello_cmd
);
890 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_type_cmd
);
891 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_messages_recv_cmd
);
892 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_messages_sent_cmd
);
894 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_binding_cmd
);
895 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_discovery_cmd
);
896 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_interface_cmd
);
897 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_capabilities_cmd
);
898 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_neighbor_cmd
);
899 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_neighbor_capabilities_cmd
);
900 install_element(VIEW_NODE
, &ldp_show_l2vpn_atom_binding_cmd
);
901 install_element(VIEW_NODE
, &ldp_show_l2vpn_atom_vc_cmd
);
902 install_element(VIEW_NODE
, &ldp_show_debugging_mpls_ldp_cmd
);