From: Renato Westphal Date: Fri, 11 Sep 2020 18:55:04 +0000 (-0300) Subject: Merge pull request #6789 from volta-networks/feat_ldp_igp_sync X-Git-Tag: base_7.6~571 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=beb91114ec5fcfa2bca1c7c1358b39c6640aec4c;p=matthieu%2Ffrr.git Merge pull request #6789 from volta-networks/feat_ldp_igp_sync ldpd: Add support for LDP-IGP Synchronization --- beb91114ec5fcfa2bca1c7c1358b39c6640aec4c diff --cc isisd/isisd.c index 2a2c71b1fd,438d87d9fb..7bba783b39 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@@ -1668,13 -1557,34 +1677,34 @@@ DEFUN (no_debug_isis_bfd return CMD_SUCCESS; } - DEFUN(show_hostname, show_hostname_cmd, - "show " PROTO_NAME " [vrf ] hostname", - SHOW_STR PROTO_HELP VRF_CMD_HELP_STR - "All VRFs\n" - "IS-IS Dynamic hostname mapping\n") + DEFUN(debug_isis_ldp_sync, debug_isis_ldp_sync_cmd, + "debug " PROTO_NAME " ldp-sync", + DEBUG_STR PROTO_HELP PROTO_NAME " interaction with LDP-Sync\n") + { + debug_ldp_sync |= DEBUG_LDP_SYNC; + print_debug(vty, DEBUG_LDP_SYNC, 1); + + return CMD_SUCCESS; + } + + DEFUN(no_debug_isis_ldp_sync, no_debug_isis_ldp_sync_cmd, + "no debug " PROTO_NAME " ldp-sync", + NO_STR UNDEBUG_STR PROTO_HELP PROTO_NAME " interaction with LDP-Sync\n") + { + debug_ldp_sync &= ~DEBUG_LDP_SYNC; + print_debug(vty, DEBUG_LDP_SYNC, 0); + + return CMD_SUCCESS; + } + + DEFUN (show_hostname, + show_hostname_cmd, + "show " PROTO_NAME " hostname", + SHOW_STR + PROTO_HELP + "IS-IS Dynamic hostname mapping\n") { - struct listnode *nnode, *inode; + struct listnode *node; const char *vrf_name = VRF_DEFAULT_NAME; bool all_vrf = false; int idx_vrf = 0;