return CMD_SUCCESS;
}
- DEFUN(show_hostname, show_hostname_cmd,
- "show " PROTO_NAME " [vrf <NAME|all>] 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;