1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2016 by Open Source Routing.
12 #include "ldpd/ldpd.h"
13 #include "ldpd/ldp_vty.h"
14 #include "ldpd/ldp_vty_cmds_clippy.c"
16 DEFPY_NOSH(ldp_mpls_ldp
,
19 "Global MPLS configuration subcommands\n"
20 "Label Distribution Protocol\n")
22 return (ldp_vty_mpls_ldp(vty
, NULL
));
25 DEFPY (no_ldp_mpls_ldp
,
29 "Global MPLS configuration subcommands\n"
30 "Label Distribution Protocol\n")
32 return (ldp_vty_mpls_ldp(vty
, "no"));
37 "l2vpn WORD$l2vpn_name type vpls",
38 "Configure l2vpn commands\n"
41 "Virtual Private LAN Service\n")
43 return (ldp_vty_l2vpn(vty
, NULL
, l2vpn_name
));
48 "no l2vpn WORD$l2vpn_name type vpls",
50 "Configure l2vpn commands\n"
53 "Virtual Private LAN Service\n")
55 return (ldp_vty_l2vpn(vty
, "no", l2vpn_name
));
58 DEFPY_NOSH(ldp_address_family
,
59 ldp_address_family_cmd
,
60 "address-family <ipv4|ipv6>$af",
61 "Configure Address Family and its parameters\n"
65 return (ldp_vty_address_family(vty
, NULL
, af
));
68 DEFPY (no_ldp_address_family
,
69 no_ldp_address_family_cmd
,
70 "no address-family <ipv4|ipv6>$af",
72 "Configure Address Family and its parameters\n"
76 return (ldp_vty_address_family(vty
, "no", af
));
79 DEFPY_NOSH(ldp_exit_address_family
,
80 ldp_exit_address_family_cmd
,
81 "exit-address-family",
82 "Exit from Address Family configuration mode\n")
84 if (vty
->node
== LDP_IPV4_NODE
|| vty
->node
== LDP_IPV6_NODE
)
89 DEFPY (ldp_discovery_link_holdtime
,
90 ldp_discovery_link_holdtime_cmd
,
91 "[no] discovery hello holdtime (1-65535)$holdtime",
93 "Configure discovery parameters\n"
96 "Time (seconds) - 65535 implies infinite\n")
98 return (ldp_vty_disc_holdtime(vty
, no
, HELLO_LINK
, holdtime
));
101 DEFPY (ldp_discovery_targeted_holdtime
,
102 ldp_discovery_targeted_holdtime_cmd
,
103 "[no] discovery targeted-hello holdtime (1-65535)$holdtime",
105 "Configure discovery parameters\n"
106 "LDP Targeted Hellos\n"
108 "Time (seconds) - 65535 implies infinite\n")
110 return (ldp_vty_disc_holdtime(vty
, no
, HELLO_TARGETED
, holdtime
));
113 DEFPY (ldp_discovery_link_interval
,
114 ldp_discovery_link_interval_cmd
,
115 "[no] discovery hello interval (1-65535)$interval",
117 "Configure discovery parameters\n"
122 return (ldp_vty_disc_interval(vty
, no
, HELLO_LINK
, interval
));
125 DEFPY (ldp_discovery_targeted_interval
,
126 ldp_discovery_targeted_interval_cmd
,
127 "[no] discovery targeted-hello interval (1-65535)$interval",
129 "Configure discovery parameters\n"
130 "LDP Targeted Hellos\n"
134 return (ldp_vty_disc_interval(vty
, no
, HELLO_TARGETED
, interval
));
137 DEFPY (ldp_dual_stack_transport_connection_prefer_ipv4
,
138 ldp_dual_stack_transport_connection_prefer_ipv4_cmd
,
139 "[no] dual-stack transport-connection prefer ipv4",
141 "Configure dual stack parameters\n"
142 "Configure TCP transport parameters\n"
143 "Configure preferred address family for TCP transport connection with neighbor\n"
146 return (ldp_vty_trans_pref_ipv4(vty
, no
));
149 DEFPY (ldp_dual_stack_cisco_interop
,
150 ldp_dual_stack_cisco_interop_cmd
,
151 "[no] dual-stack cisco-interop",
153 "Configure dual stack parameters\n"
154 "Use Cisco non-compliant format to send and interpret the Dual-Stack capability TLV\n")
156 return (ldp_vty_ds_cisco_interop(vty
, no
));
159 DEFPY (ldp_neighbor_password
,
160 ldp_neighbor_password_cmd
,
161 "[no] neighbor A.B.C.D$neighbor password WORD$password",
163 "Configure neighbor parameters\n"
164 "LDP Id of neighbor\n"
165 "Configure password for MD5 authentication\n"
168 return (ldp_vty_neighbor_password(vty
, no
, neighbor
, password
));
171 DEFPY (ldp_neighbor_session_holdtime
,
172 ldp_neighbor_session_holdtime_cmd
,
173 "[no] neighbor A.B.C.D$neighbor session holdtime (15-65535)$holdtime",
175 "Configure neighbor parameters\n"
176 "LDP Id of neighbor\n"
177 "Configure session parameters\n"
178 "Configure session holdtime\n"
181 return (ldp_vty_nbr_session_holdtime(vty
, no
, neighbor
, holdtime
));
184 DEFPY (ldp_neighbor_ttl_security
,
185 ldp_neighbor_ttl_security_cmd
,
186 "[no] neighbor A.B.C.D$neighbor ttl-security <disable|hops (1-254)$hops>",
188 "Configure neighbor parameters\n"
189 "LDP Id of neighbor\n"
190 "LDP ttl security check\n"
191 "Disable ttl security\n"
193 "maximum number of hops\n")
195 return (ldp_vty_neighbor_ttl_security(vty
, no
, neighbor
, hops_str
));
198 DEFPY (ldp_router_id
,
200 "[no] router-id A.B.C.D$address",
202 "Configure router Id\n"
203 "LSR Id (in form of an IPv4 address)\n")
205 return (ldp_vty_router_id(vty
, no
, address
));
208 DEFPY (ldp_ordered_control
,
209 ldp_ordered_control_cmd
,
210 "[no] ordered-control",
212 "Configure LDP ordered label distribution control mode\n")
214 return (ldp_vty_ordered_control(vty
, no
));
217 DEFPY (ldp_wait_for_sync
,
218 ldp_wait_for_sync_cmd
,
219 "[no] wait-for-sync (1-10000)$waitforsync",
221 "Time to wait for LDP-IGP Sync to complete label exchange\n"
224 return (ldp_vty_wait_for_sync_interval(vty
, no
, waitforsync
));
228 DEFPY (ldp_allow_broken_lsps
,
229 ldp_allow_broken_lsps_cmd
,
230 "[no] install allow-broken-lsps",
233 "if no remote-label install with imp-null\n")
235 return (ldp_vty_allow_broken_lsp(vty
, no
));
238 DEFPY (ldp_discovery_targeted_hello_accept
,
239 ldp_discovery_targeted_hello_accept_cmd
,
240 "[no] discovery targeted-hello accept [from ACCESSLIST_NAME$from_acl]",
242 "Configure discovery parameters\n"
243 "LDP Targeted Hellos\n"
244 "Accept and respond to targeted hellos\n"
245 "Access list to specify acceptable targeted hello source\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 ACCESSLIST_NAME$to_acl|for ACCESSLIST_NAME$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 name\n"
282 "IP access-list for destination prefixes\n"
283 "IP access-list name\n")
285 return (ldp_vty_label_advertise(vty
, no
, to_acl
, for_acl
));
288 DEFPY (ldp_label_local_advertise_explicit_null
,
289 ldp_label_local_advertise_explicit_null_cmd
,
290 "[no] label local advertise explicit-null [for ACCESSLIST_NAME$for_acl]",
292 "Configure label control and policies\n"
293 "Configure local label control and policies\n"
294 "Configure outbound label advertisement control\n"
295 "Configure explicit-null advertisement\n"
296 "IP access-list for destination prefixes\n"
297 "IP access-list name\n")
299 return (ldp_vty_label_expnull(vty
, no
, for_acl
));
302 DEFPY (ldp_label_local_allocate
,
303 ldp_label_local_allocate_cmd
,
304 "[no] label local allocate <host-routes$host_routes|for ACCESSLIST_NAME$for_acl>",
306 "Configure label control and policies\n"
307 "Configure local label control and policies\n"
308 "Configure label allocation control\n"
309 "allocate local label for host routes only\n"
311 "IP access-list name\n")
313 return (ldp_vty_label_allocate(vty
, no
, host_routes
, for_acl
));
316 DEFPY (ldp_label_remote_accept
,
317 ldp_label_remote_accept_cmd
,
318 "[no] label remote accept {from ACCESSLIST_NAME$from_acl|for ACCESSLIST_NAME$for_acl}",
320 "Configure label control and policies\n"
321 "Configure remote/peer label control and policies\n"
322 "Configure inbound label acceptance control\n"
323 "Neighbor from whom to accept label advertisement\n"
324 "IP access-list name\n"
325 "IP access-list for destination prefixes\n"
326 "IP access-list name\n")
328 return (ldp_vty_label_accept(vty
, no
, from_acl
, for_acl
));
331 DEFPY (ldp_ttl_security_disable
,
332 ldp_ttl_security_disable_cmd
,
333 "[no] ttl-security disable",
335 "LDP ttl security check\n"
336 "Disable ttl security\n")
338 return (ldp_vty_ttl_security(vty
, no
));
341 DEFPY (ldp_session_holdtime
,
342 ldp_session_holdtime_cmd
,
343 "[no] session holdtime (15-65535)$holdtime",
345 "Configure session parameters\n"
346 "Configure session holdtime\n"
349 return (ldp_vty_af_session_holdtime(vty
, no
, holdtime
));
352 DEFPY_NOSH(ldp_interface
,
354 "interface IFNAME$ifname",
355 "Enable LDP on an interface and enter interface submode\n"
356 "Interface's name\n")
358 return (ldp_vty_interface(vty
, NULL
, ifname
));
361 DEFPY (no_ldp_interface
,
362 no_ldp_interface_cmd
,
363 "no interface IFNAME$ifname",
365 "Enable LDP on an interface and enter interface submode\n"
366 "Interface's name\n")
368 return (ldp_vty_interface(vty
, "no", ifname
));
371 DEFPY (ldp_neighbor_ipv4_targeted
,
372 ldp_neighbor_ipv4_targeted_cmd
,
373 "[no] neighbor A.B.C.D$address targeted",
375 "Configure neighbor parameters\n"
376 "IP address of neighbor\n"
377 "Establish targeted session\n")
379 return (ldp_vty_neighbor_targeted(vty
, no
, address_str
));
382 DEFPY (ldp_neighbor_ipv6_targeted
,
383 ldp_neighbor_ipv6_targeted_cmd
,
384 "[no] neighbor X:X::X:X$address targeted",
386 "Configure neighbor parameters\n"
387 "IPv6 address of neighbor\n"
388 "Establish targeted session\n")
390 return (ldp_vty_neighbor_targeted(vty
, no
, address_str
));
395 "[no] bridge IFNAME$ifname",
398 "Interface's name\n")
400 return (ldp_vty_l2vpn_bridge(vty
, no
, ifname
));
405 "[no] mtu (1500-9180)$mtu",
407 "Set Maximum Transmission Unit\n"
408 "Maximum Transmission Unit value\n")
410 return (ldp_vty_l2vpn_mtu(vty
, no
, mtu
));
413 DEFPY (ldp_member_interface
,
414 ldp_member_interface_cmd
,
415 "[no] member interface IFNAME$ifname",
417 "L2VPN member configuration\n"
419 "Interface's name\n")
421 return (ldp_vty_l2vpn_interface(vty
, no
, ifname
));
424 DEFPY_NOSH(ldp_member_pseudowire
,
425 ldp_member_pseudowire_cmd
,
426 "member pseudowire IFNAME$ifname",
427 "L2VPN member configuration\n"
428 "Pseudowire interface\n"
429 "Interface's name\n")
431 return (ldp_vty_l2vpn_pseudowire(vty
, NULL
, ifname
));
434 DEFPY (no_ldp_member_pseudowire
,
435 no_ldp_member_pseudowire_cmd
,
436 "no member pseudowire IFNAME$ifname",
438 "L2VPN member configuration\n"
439 "Pseudowire interface\n"
440 "Interface's name\n")
442 return (ldp_vty_l2vpn_pseudowire(vty
, "no", ifname
));
447 "[no] vc type <ethernet|ethernet-tagged>$vc_type",
449 "Virtual Circuit options\n"
450 "Virtual Circuit type to use\n"
451 "Ethernet (type 5)\n"
452 "Ethernet-tagged (type 4)\n")
454 return (ldp_vty_l2vpn_pwtype(vty
, no
, vc_type
));
457 DEFPY (ldp_control_word
,
458 ldp_control_word_cmd
,
459 "[no] control-word <exclude|include>$preference",
461 "Control-word options\n"
462 "Exclude control-word in pseudowire packets\n"
463 "Include control-word in pseudowire packets\n")
465 return (ldp_vty_l2vpn_pw_cword(vty
, no
, preference
));
468 DEFPY (ldp_neighbor_address
,
469 ldp_neighbor_address_cmd
,
470 "[no] neighbor address <A.B.C.D|X:X::X:X>$pw_address",
472 "Remote endpoint configuration\n"
473 "Specify the IPv4 or IPv6 address of the remote endpoint\n"
477 return (ldp_vty_l2vpn_pw_nbr_addr(vty
, no
, pw_address_str
));
480 DEFPY (ldp_neighbor_lsr_id
,
481 ldp_neighbor_lsr_id_cmd
,
482 "[no] neighbor lsr-id A.B.C.D$address",
484 "Remote endpoint configuration\n"
485 "Specify the LSR-ID of the remote endpoint\n"
488 return (ldp_vty_l2vpn_pw_nbr_id(vty
, no
, address
));
493 "[no] pw-id (1-4294967295)$pwid",
495 "Set the Virtual Circuit ID\n"
496 "Virtual Circuit ID value\n")
498 return (ldp_vty_l2vpn_pw_pwid(vty
, no
, pwid
));
501 DEFPY (ldp_pw_status_disable
,
502 ldp_pw_status_disable_cmd
,
503 "[no] pw-status disable",
505 "Configure PW status\n"
506 "Disable PW status\n")
508 return (ldp_vty_l2vpn_pw_pwstatus(vty
, no
));
511 DEFPY (ldp_clear_mpls_ldp_neighbor
,
512 ldp_clear_mpls_ldp_neighbor_cmd
,
513 "clear mpls ldp neighbor [<A.B.C.D|X:X::X:X>]$address",
515 "Reset MPLS statistical information\n"
517 "Clear LDP neighbor sessions\n"
521 return (ldp_vty_clear_nbr(vty
, address_str
));
524 DEFPY (ldp_debug_mpls_ldp_discovery_hello
,
525 ldp_debug_mpls_ldp_discovery_hello_cmd
,
526 "[no] debug mpls ldp discovery hello <recv|sent>$dir",
528 "Debugging functions\n"
530 "Label Distribution Protocol\n"
531 "Discovery messages\n"
532 "Discovery hello message\n"
533 "Received messages\n"
536 return (ldp_vty_debug(vty
, no
, "discovery", dir
, NULL
));
539 DEFPY (ldp_debug_mpls_ldp_type
,
540 ldp_debug_mpls_ldp_type_cmd
,
541 "[no] debug mpls ldp <errors|event|labels|sync|zebra>$type",
543 "Debugging functions\n"
545 "Label Distribution Protocol\n"
547 "LDP event information\n"
548 "LDP label allocation information\n"
549 "LDP sync information\n"
550 "LDP zebra information\n")
552 return (ldp_vty_debug(vty
, no
, type
, NULL
, NULL
));
555 DEFPY (ldp_debug_mpls_ldp_messages_recv
,
556 ldp_debug_mpls_ldp_messages_recv_cmd
,
557 "[no] debug mpls ldp messages recv [all]$all",
559 "Debugging functions\n"
561 "Label Distribution Protocol\n"
563 "Received messages, excluding periodic Keep Alives\n"
564 "Received messages, including periodic Keep Alives\n")
566 return (ldp_vty_debug(vty
, no
, "messages", "recv", all
));
569 DEFPY (ldp_debug_mpls_ldp_messages_sent
,
570 ldp_debug_mpls_ldp_messages_sent_cmd
,
571 "[no] debug mpls ldp messages sent [all]$all",
573 "Debugging functions\n"
575 "Label Distribution Protocol\n"
577 "Sent messages, excluding periodic Keep Alives\n"
578 "Sent messages, including periodic Keep Alives\n")
580 return (ldp_vty_debug(vty
, no
, "messages", "sent", all
));
583 DEFPY (ldp_show_mpls_ldp_binding
,
584 ldp_show_mpls_ldp_binding_cmd
,
585 "show mpls ldp [<ipv4|ipv6>]$af binding\
586 [<A.B.C.D/M|X:X::X:X/M>$prefix [longer-prefixes$longer_prefixes]]\
588 neighbor A.B.C.D$nbr\
589 |local-label (0-1048575)$local_label\
590 |remote-label (0-1048575)$remote_label\
592 [detail]$detail [json]$json",
593 "Show running system information\n"
595 "Label Distribution Protocol\n"
596 "IPv4 Address Family\n"
597 "IPv6 Address Family\n"
598 "Label Information Base (LIB) information\n"
599 "Destination prefix (IPv4)\n"
600 "Destination prefix (IPv6)\n"
601 "Include longer matches\n"
602 "Display labels from LDP neighbor\n"
604 "Match locally assigned label values\n"
605 "Locally assigned label value\n"
606 "Match remotely assigned label values\n"
607 "Remotely assigned label value\n"
608 "Show detailed information\n"
611 if (!(ldpd_conf
->flags
& F_LDPD_ENABLED
))
613 if (!local_label_str
)
614 local_label
= NO_LABEL
;
615 if (!remote_label_str
)
616 remote_label
= NO_LABEL
;
617 return (ldp_vty_show_binding(vty
, af
, prefix_str
, !!longer_prefixes
,
618 nbr_str
, local_label
, remote_label
, detail
, json
));
621 DEFPY (ldp_show_mpls_ldp_discovery
,
622 ldp_show_mpls_ldp_discovery_cmd
,
623 "show mpls ldp [<ipv4|ipv6>]$af discovery [detail]$detail [json]$json",
624 "Show running system information\n"
626 "Label Distribution Protocol\n"
627 "IPv4 Address Family\n"
628 "IPv6 Address Family\n"
629 "Discovery Hello Information\n"
630 "Show detailed information\n"
633 return (ldp_vty_show_discovery(vty
, af
, detail
, json
));
636 DEFPY (ldp_show_mpls_ldp_interface
,
637 ldp_show_mpls_ldp_interface_cmd
,
638 "show mpls ldp [<ipv4|ipv6>]$af interface [json]$json",
639 "Show running system information\n"
641 "Label Distribution Protocol\n"
642 "IPv4 Address Family\n"
643 "IPv6 Address Family\n"
644 "interface information\n"
647 return (ldp_vty_show_interface(vty
, af
, json
));
650 DEFPY (ldp_show_mpls_ldp_capabilities
,
651 ldp_show_mpls_ldp_capabilities_cmd
,
652 "show mpls ldp capabilities [json]$json",
653 "Show running system information\n"
655 "Label Distribution Protocol\n"
656 "Display LDP Capabilities information\n"
659 return (ldp_vty_show_capabilities(vty
, json
));
662 DEFPY (ldp_show_mpls_ldp_neighbor
,
663 ldp_show_mpls_ldp_neighbor_cmd
,
664 "show mpls ldp neighbor [A.B.C.D]$lsr_id [detail]$detail [json]$json",
665 "Show running system information\n"
667 "Label Distribution Protocol\n"
668 "Neighbor information\n"
670 "Show detailed information\n"
673 return (ldp_vty_show_neighbor(vty
, lsr_id_str
, 0, detail
, json
));
676 DEFPY (ldp_show_mpls_ldp_neighbor_capabilities
,
677 ldp_show_mpls_ldp_neighbor_capabilities_cmd
,
678 "show mpls ldp neighbor [A.B.C.D]$lsr_id capabilities [json]$json",
679 "Show running system information\n"
681 "Label Distribution Protocol\n"
682 "Neighbor information\n"
684 "Display neighbor capability information\n"
687 return (ldp_vty_show_neighbor(vty
, lsr_id_str
, 1, NULL
, json
));
690 DEFPY (ldp_show_mpls_ldp_igp_sync
,
691 ldp_show_mpls_ldp_igp_sync_cmd
,
692 "show mpls ldp igp-sync [json]$json",
693 "Show mpls ldp ldp-sync information\n"
695 "Label Distribution Protocol\n"
696 "LDP-IGP Sync information\n"
699 return (ldp_vty_show_ldp_sync(vty
, json
));
702 DEFPY (ldp_show_l2vpn_atom_binding
,
703 ldp_show_l2vpn_atom_binding_cmd
,
704 "show l2vpn atom binding\
707 |local-label (16-1048575)$local_label\
708 |remote-label (16-1048575)$remote_label\
711 "Show running system information\n"
712 "Show information about Layer2 VPN\n"
713 "Show Any Transport over MPLS information\n"
714 "Show AToM label binding information\n"
715 "Destination address of the VC\n"
716 "Match locally assigned label values\n"
717 "Locally assigned label value\n"
718 "Match remotely assigned label values\n"
719 "Remotely assigned label value\n"
722 if (!local_label_str
)
723 local_label
= NO_LABEL
;
724 if (!remote_label_str
)
725 remote_label
= NO_LABEL
;
726 return (ldp_vty_show_atom_binding(vty
, peer_str
, local_label
,
727 remote_label
, json
));
730 DEFPY (ldp_show_l2vpn_atom_vc
,
731 ldp_show_l2vpn_atom_vc_cmd
,
735 |interface IFNAME$ifname\
736 |vc-id (1-4294967295)$vcid\
739 "Show running system information\n"
740 "Show information about Layer2 VPN\n"
741 "Show Any Transport over MPLS information\n"
742 "Show AToM virtual circuit information\n"
743 "Destination address of the VC\n"
744 "Local interface of the pseudowire\n"
750 return (ldp_vty_show_atom_vc(vty
, peer_str
, ifname
, vcid_str
, json
));
753 DEFPY_NOSH (ldp_show_debugging_mpls_ldp
,
754 ldp_show_debugging_mpls_ldp_cmd
,
755 "show debugging [mpls ldp]",
756 "Show running system information\n"
757 "Debugging functions\n"
759 "Label Distribution Protocol\n")
761 ldp_vty_show_debugging(vty
);
763 cmd_show_lib_debugs(vty
);
769 l2vpn_autocomplete(vector comps
, struct cmd_token
*token
)
773 RB_FOREACH(l2vpn
, l2vpn_head
, &vty_conf
->l2vpn_tree
)
774 vector_set(comps
, XSTRDUP(MTYPE_COMPLETION
, l2vpn
->name
));
777 static const struct cmd_variable_handler l2vpn_var_handlers
[] = {
779 .varname
= "l2vpn_name",
780 .completions
= l2vpn_autocomplete
790 cmd_variable_handler_register(l2vpn_var_handlers
);
792 install_node(&ldp_node
);
793 install_node(&ldp_ipv4_node
);
794 install_node(&ldp_ipv6_node
);
795 install_node(&ldp_ipv4_iface_node
);
796 install_node(&ldp_ipv6_iface_node
);
797 install_node(&ldp_l2vpn_node
);
798 install_node(&ldp_pseudowire_node
);
799 install_node(&ldp_debug_node
);
800 install_default(LDP_NODE
);
801 install_default(LDP_IPV4_NODE
);
802 install_default(LDP_IPV6_NODE
);
803 install_default(LDP_IPV4_IFACE_NODE
);
804 install_default(LDP_IPV6_IFACE_NODE
);
805 install_default(LDP_L2VPN_NODE
);
806 install_default(LDP_PSEUDOWIRE_NODE
);
808 install_element(CONFIG_NODE
, &ldp_mpls_ldp_cmd
);
809 install_element(CONFIG_NODE
, &no_ldp_mpls_ldp_cmd
);
810 install_element(CONFIG_NODE
, &ldp_l2vpn_cmd
);
811 install_element(CONFIG_NODE
, &no_ldp_l2vpn_cmd
);
812 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_discovery_hello_cmd
);
813 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_type_cmd
);
814 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_messages_recv_cmd
);
815 install_element(CONFIG_NODE
, &ldp_debug_mpls_ldp_messages_sent_cmd
);
817 install_element(LDP_NODE
, &ldp_address_family_cmd
);
818 install_element(LDP_NODE
, &no_ldp_address_family_cmd
);
819 install_element(LDP_NODE
, &ldp_discovery_link_holdtime_cmd
);
820 install_element(LDP_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
821 install_element(LDP_NODE
, &ldp_discovery_link_interval_cmd
);
822 install_element(LDP_NODE
, &ldp_discovery_targeted_interval_cmd
);
823 install_element(LDP_NODE
, &ldp_dual_stack_transport_connection_prefer_ipv4_cmd
);
824 install_element(LDP_NODE
, &ldp_dual_stack_cisco_interop_cmd
);
825 install_element(LDP_NODE
, &ldp_neighbor_password_cmd
);
826 install_element(LDP_NODE
, &ldp_neighbor_session_holdtime_cmd
);
827 install_element(LDP_NODE
, &ldp_neighbor_ttl_security_cmd
);
828 install_element(LDP_NODE
, &ldp_router_id_cmd
);
829 install_element(LDP_NODE
, &ldp_ordered_control_cmd
);
830 install_element(LDP_NODE
, &ldp_wait_for_sync_cmd
);
831 install_element(LDP_NODE
, &ldp_allow_broken_lsps_cmd
);
833 install_element(LDP_IPV4_NODE
, &ldp_discovery_link_holdtime_cmd
);
834 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
835 install_element(LDP_IPV4_NODE
, &ldp_discovery_link_interval_cmd
);
836 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_interval_cmd
);
837 install_element(LDP_IPV4_NODE
, &ldp_discovery_targeted_hello_accept_cmd
);
838 install_element(LDP_IPV4_NODE
, &ldp_discovery_transport_address_ipv4_cmd
);
839 install_element(LDP_IPV4_NODE
, &ldp_label_local_advertise_cmd
);
840 install_element(LDP_IPV4_NODE
, &ldp_label_local_advertise_explicit_null_cmd
);
841 install_element(LDP_IPV4_NODE
, &ldp_label_local_allocate_cmd
);
842 install_element(LDP_IPV4_NODE
, &ldp_label_remote_accept_cmd
);
843 install_element(LDP_IPV4_NODE
, &ldp_ttl_security_disable_cmd
);
844 install_element(LDP_IPV4_NODE
, &ldp_interface_cmd
);
845 install_element(LDP_IPV4_NODE
, &no_ldp_interface_cmd
);
846 install_element(LDP_IPV4_NODE
, &ldp_session_holdtime_cmd
);
847 install_element(LDP_IPV4_NODE
, &ldp_neighbor_ipv4_targeted_cmd
);
848 install_element(LDP_IPV4_NODE
, &ldp_exit_address_family_cmd
);
850 install_element(LDP_IPV6_NODE
, &ldp_discovery_link_holdtime_cmd
);
851 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_holdtime_cmd
);
852 install_element(LDP_IPV6_NODE
, &ldp_discovery_link_interval_cmd
);
853 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_interval_cmd
);
854 install_element(LDP_IPV6_NODE
, &ldp_discovery_targeted_hello_accept_cmd
);
855 install_element(LDP_IPV6_NODE
, &ldp_discovery_transport_address_ipv6_cmd
);
856 install_element(LDP_IPV6_NODE
, &ldp_label_local_advertise_cmd
);
857 install_element(LDP_IPV6_NODE
, &ldp_label_local_advertise_explicit_null_cmd
);
858 install_element(LDP_IPV6_NODE
, &ldp_label_local_allocate_cmd
);
859 install_element(LDP_IPV6_NODE
, &ldp_label_remote_accept_cmd
);
860 install_element(LDP_IPV6_NODE
, &ldp_ttl_security_disable_cmd
);
861 install_element(LDP_IPV6_NODE
, &ldp_interface_cmd
);
862 install_element(LDP_IPV6_NODE
, &no_ldp_interface_cmd
);
863 install_element(LDP_IPV6_NODE
, &ldp_session_holdtime_cmd
);
864 install_element(LDP_IPV6_NODE
, &ldp_neighbor_ipv6_targeted_cmd
);
865 install_element(LDP_IPV6_NODE
, &ldp_exit_address_family_cmd
);
867 install_element(LDP_IPV4_IFACE_NODE
, &ldp_discovery_link_holdtime_cmd
);
868 install_element(LDP_IPV4_IFACE_NODE
, &ldp_discovery_link_interval_cmd
);
870 install_element(LDP_IPV6_IFACE_NODE
, &ldp_discovery_link_holdtime_cmd
);
871 install_element(LDP_IPV6_IFACE_NODE
, &ldp_discovery_link_interval_cmd
);
873 install_element(LDP_L2VPN_NODE
, &ldp_bridge_cmd
);
874 install_element(LDP_L2VPN_NODE
, &ldp_mtu_cmd
);
875 install_element(LDP_L2VPN_NODE
, &ldp_member_interface_cmd
);
876 install_element(LDP_L2VPN_NODE
, &ldp_member_pseudowire_cmd
);
877 install_element(LDP_L2VPN_NODE
, &no_ldp_member_pseudowire_cmd
);
878 install_element(LDP_L2VPN_NODE
, &ldp_vc_type_cmd
);
880 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_control_word_cmd
);
881 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_neighbor_address_cmd
);
882 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_neighbor_lsr_id_cmd
);
883 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_pw_id_cmd
);
884 install_element(LDP_PSEUDOWIRE_NODE
, &ldp_pw_status_disable_cmd
);
886 install_element(ENABLE_NODE
, &ldp_clear_mpls_ldp_neighbor_cmd
);
887 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_discovery_hello_cmd
);
888 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_type_cmd
);
889 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_messages_recv_cmd
);
890 install_element(ENABLE_NODE
, &ldp_debug_mpls_ldp_messages_sent_cmd
);
892 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_binding_cmd
);
893 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_discovery_cmd
);
894 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_interface_cmd
);
895 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_capabilities_cmd
);
896 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_neighbor_cmd
);
897 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_neighbor_capabilities_cmd
);
898 install_element(VIEW_NODE
, &ldp_show_l2vpn_atom_binding_cmd
);
899 install_element(VIEW_NODE
, &ldp_show_l2vpn_atom_vc_cmd
);
900 install_element(VIEW_NODE
, &ldp_show_debugging_mpls_ldp_cmd
);
901 install_element(VIEW_NODE
, &ldp_show_mpls_ldp_igp_sync_cmd
);