uint32_t sid_index;
mpls_label_t label_qnode;
- if (IS_DEBUG_TILFA) {
+ if (IS_DEBUG_LFA) {
vid2string(vertex, buf, sizeof(buf));
- zlog_debug("ISIS-TI-LFA: vertex %s %s",
- vtype2string(vertex->type), buf);
+ zlog_debug("ISIS-LFA: vertex %s %s", vtype2string(vertex->type),
+ buf);
}
/* Push original Prefix-SID label when necessary. */
assert(pvertex);
sid_index = vertex->N.ip.sr.sid.value;
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: pushing Prefix-SID to %pFX (index %u)",
+ "ISIS-LFA: pushing Prefix-SID to %pFX (index %u)",
&vertex->N.ip.p.dest, sid_index);
sid_dest.type = TILFA_SID_PREFIX;
sid_dest.value.index.value = sid_index;
label_qnode = tilfa_find_qnode_adj_sid(spftree_pc, vertex->N.id,
vertex_child->N.id);
if (label_qnode == MPLS_INVALID_LABEL) {
- zlog_warn("ISIS-TI-LFA: failed to find %s->%s Adj-SID",
+ zlog_warn("ISIS-LFA: failed to find %s->%s Adj-SID",
print_sys_hostname(vertex->N.id),
print_sys_hostname(vertex_child->N.id));
return -1;
}
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: pushing %s->%s Adj-SID (label %u)",
+ "ISIS-LFA: pushing %s->%s Adj-SID (label %u)",
print_sys_hostname(vertex->N.id),
print_sys_hostname(vertex_child->N.id),
label_qnode);
if (is_pnode) {
/* The same P-node can't be used more than once. */
if (isis_spf_node_find(used_pnodes, vertex->N.id)) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: skipping already used P-node");
+ "ISIS-LFA: skipping already used P-node");
return 0;
}
isis_spf_node_new(used_pnodes, vertex->N.id);
if (!vertex_child) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: destination is within Ext-P-Space");
+ "ISIS-LFA: destination is within Ext-P-Space");
return 0;
}
tilfa_find_pnode_prefix_sid(spftree_pc, vertex->N.id);
if (sid_index == UINT32_MAX) {
zlog_warn(
- "ISIS-TI-LFA: failed to find Prefix-SID corresponding to PQ-node %s",
+ "ISIS-LFA: failed to find Prefix-SID corresponding to PQ-node %s",
print_sys_hostname(vertex->N.id));
return -1;
}
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: pushing Node-SID to %s (index %u)",
+ "ISIS-LFA: pushing Node-SID to %s (index %u)",
print_sys_hostname(vertex->N.id), sid_index);
sid_pnode.type = TILFA_SID_PREFIX;
sid_pnode.value.index.value = sid_index;
if (listcount(repair_list)
> spftree_pc->area->srdb.config.msd) {
zlog_warn(
- "ISIS-TI-LFA: list of repair segments exceeds locally configured MSD (%u > %u)",
+ "ISIS-LFA: list of repair segments exceeds locally configured MSD (%u > %u)",
listcount(repair_list),
spftree_pc->area->srdb.config.msd);
return -1;
if (!spftree_pc->area->srdb.enabled)
return -1;
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
vid2string(vertex, buf, sizeof(buf));
if (!lfa_check_needs_protection(spftree_pc, vertex)) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: %s %s unaffected by %s",
+ "ISIS-LFA: %s %s unaffected by %s",
vtype2string(vertex->type), buf,
lfa_protected_resource2str(
&spftree_pc->lfa.protected_resource));
if (adj
&& isis_sr_adj_sid_find(adj, spftree_pc->family,
ISIS_SR_LAN_BACKUP)) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: %s %s already covered by node protection",
+ "ISIS-LFA: %s %s already covered by node protection",
vtype2string(vertex->type), buf);
return -1;
route_table = spftree_pc->lfa.old.spftree->route_table_backup;
if (route_node_lookup(route_table, &vertex->N.ip.p.dest)) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: %s %s already covered by node protection",
+ "ISIS-LFA: %s %s already covered by node protection",
vtype2string(vertex->type), buf);
return -1;
}
}
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: computing repair path(s) of %s %s w.r.t %s",
+ "ISIS-LFA: computing repair path(s) of %s %s w.r.t %s",
vtype2string(vertex->type), buf,
lfa_protected_resource2str(
&spftree_pc->lfa.protected_resource));
list_delete(&repair_list);
if (ret != 0)
zlog_warn(
- "ISIS-TI-LFA: failed to compute repair path(s) of %s %s w.r.t %s",
+ "ISIS-LFA: failed to compute repair path(s) of %s %s w.r.t %s",
vtype2string(vertex->type), buf,
lfa_protected_resource2str(
&spftree_pc->lfa.protected_resource));
char buf1[VID2STR_BUFFER];
char buf2[VID2STR_BUFFER];
- if (IS_DEBUG_TILFA)
- zlog_debug("ISIS-TI-LFA: vertex %s parent %s",
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: vertex %s parent %s",
vid2string(vertex, buf1, sizeof(buf1)),
vid2string(pvertex, buf2, sizeof(buf2)));
if (isis_spf_node_find(nodes, vertex->N.id))
continue;
- if (IS_DEBUG_TILFA)
- zlog_debug("ISIS-TI-LFA: checking %s",
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: checking %s",
vid2string(vertex, buf, sizeof(buf)));
if (!vertex_is_affected(spftree_root, adj_nodes, p_space,
vertex, resource)) {
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: adding %s",
+ "ISIS-LFA: adding %s",
vid2string(vertex, buf, sizeof(buf)));
isis_spf_node_new(nodes, vertex->N.id);
*
* @param spftree IS-IS SPF tree
*
- * @return Pointer to new SPF tree structure.
+ * @return Pointer to new SPF tree structure.
*/
struct isis_spftree *isis_spf_reverse_run(const struct isis_spftree *spftree)
{
spftree_reverse = spftree_pc->lfa.old.spftree_reverse;
adj_nodes = &spftree->adj_nodes;
- if (IS_DEBUG_TILFA)
- zlog_debug("ISIS-TI-LFA: computing P-space (self)");
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: computing P-space (self)");
lfa_calc_reach_nodes(spftree, spftree, adj_nodes, true, resource,
&spftree_pc->lfa.p_space);
RB_FOREACH (adj_node, isis_spf_nodes, adj_nodes) {
if (spf_adj_node_is_affected(adj_node, resource,
spftree->sysid)) {
- if (IS_DEBUG_TILFA)
- zlog_debug(
- "ISIS-TI-LFA: computing Q-space (%s)",
- print_sys_hostname(adj_node->sysid));
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: computing Q-space (%s)",
+ print_sys_hostname(adj_node->sysid));
/*
* Compute the reverse SPF in the behalf of the node
resource,
&spftree_pc->lfa.q_space);
} else {
- if (IS_DEBUG_TILFA)
- zlog_debug(
- "ISIS-TI-LFA: computing P-space (%s)",
- print_sys_hostname(adj_node->sysid));
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: computing P-space (%s)",
+ print_sys_hostname(adj_node->sysid));
lfa_calc_reach_nodes(adj_node->lfa.spftree, spftree,
adj_nodes, true, resource,
&adj_node->lfa.p_space);
struct isis_spftree *spftree_pc;
struct isis_spf_node *adj_node;
- if (IS_DEBUG_TILFA)
- zlog_debug("ISIS-TI-LFA: computing the P/Q spaces w.r.t. %s",
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: computing the P/Q spaces w.r.t. %s",
lfa_protected_resource2str(resource));
/* Populate list of nodes affected by link failure. */
/* Compute the extended P-space and Q-space. */
lfa_calc_pq_spaces(spftree_pc, resource);
- if (IS_DEBUG_TILFA)
+ if (IS_DEBUG_LFA)
zlog_debug(
- "ISIS-TI-LFA: computing the post convergence SPT w.r.t. %s",
+ "ISIS-LFA: computing the post convergence SPT w.r.t. %s",
lfa_protected_resource2str(resource));
/* Re-run SPF in the local node to find the post-convergence paths. */
return -1;
RB_FOREACH (adj_node, isis_spf_nodes, &spftree->adj_nodes) {
- if (IS_DEBUG_TILFA)
- zlog_debug("ISIS-TI-LFA: running SPF on neighbor %s",
+ if (IS_DEBUG_LFA)
+ zlog_debug("ISIS-LFA: running SPF on neighbor %s",
print_sys_hostname(adj_node->sysid));
/* Compute the SPT on behalf of the neighbor. */
unsigned long debug_tx_queue;
unsigned long debug_sr;
unsigned long debug_ldp_sync;
-unsigned long debug_tilfa;
+unsigned long debug_lfa;
DEFINE_QOBJ_TYPE(isis_area)
if (flags & DEBUG_SR)
vty_out(vty, "IS-IS Segment Routing events debugging is %s\n",
onoffs);
- if (flags & DEBUG_TILFA)
- vty_out(vty, "IS-IS TI-LFA events debugging is %s\n", onoffs);
+ if (flags & DEBUG_LFA)
+ vty_out(vty, "IS-IS LFA events debugging is %s\n", onoffs);
if (flags & DEBUG_UPDATE_PACKETS)
vty_out(vty, "IS-IS Update related packet debugging is %s\n",
onoffs);
vty_out(vty, "debug " PROTO_NAME " sr-events\n");
write++;
}
- if (IS_DEBUG_TILFA) {
- vty_out(vty, "debug " PROTO_NAME " ti-lfa\n");
+ if (IS_DEBUG_LFA) {
+ vty_out(vty, "debug " PROTO_NAME " lfa\n");
write++;
}
if (IS_DEBUG_UPDATE_PACKETS) {
return CMD_SUCCESS;
}
-DEFUN (debug_isis_tilfa,
- debug_isis_tilfa_cmd,
- "debug " PROTO_NAME " ti-lfa",
+DEFUN (debug_isis_lfa,
+ debug_isis_lfa_cmd,
+ "debug " PROTO_NAME " lfa",
DEBUG_STR
PROTO_HELP
- "IS-IS TI-LFA Events\n")
+ "IS-IS LFA Events\n")
{
- debug_tilfa |= DEBUG_TILFA;
- print_debug(vty, DEBUG_TILFA, 1);
+ debug_lfa |= DEBUG_LFA;
+ print_debug(vty, DEBUG_LFA, 1);
return CMD_SUCCESS;
}
-DEFUN (no_debug_isis_tilfa,
- no_debug_isis_tilfa_cmd,
- "no debug " PROTO_NAME " ti-lfa",
+DEFUN (no_debug_isis_lfa,
+ no_debug_isis_lfa_cmd,
+ "no debug " PROTO_NAME " lfa",
NO_STR
UNDEBUG_STR
PROTO_HELP
- "IS-IS TI-LFA Events\n")
+ "IS-IS LFA Events\n")
{
- debug_tilfa &= ~DEBUG_TILFA;
- print_debug(vty, DEBUG_TILFA, 0);
+ debug_lfa &= ~DEBUG_LFA;
+ print_debug(vty, DEBUG_LFA, 0);
return CMD_SUCCESS;
}
install_element(ENABLE_NODE, &no_debug_isis_spfevents_cmd);
install_element(ENABLE_NODE, &debug_isis_srevents_cmd);
install_element(ENABLE_NODE, &no_debug_isis_srevents_cmd);
- install_element(ENABLE_NODE, &debug_isis_tilfa_cmd);
- install_element(ENABLE_NODE, &no_debug_isis_tilfa_cmd);
+ install_element(ENABLE_NODE, &debug_isis_lfa_cmd);
+ install_element(ENABLE_NODE, &no_debug_isis_lfa_cmd);
install_element(ENABLE_NODE, &debug_isis_rtevents_cmd);
install_element(ENABLE_NODE, &no_debug_isis_rtevents_cmd);
install_element(ENABLE_NODE, &debug_isis_events_cmd);
install_element(CONFIG_NODE, &no_debug_isis_spfevents_cmd);
install_element(CONFIG_NODE, &debug_isis_srevents_cmd);
install_element(CONFIG_NODE, &no_debug_isis_srevents_cmd);
- install_element(CONFIG_NODE, &debug_isis_tilfa_cmd);
- install_element(CONFIG_NODE, &no_debug_isis_tilfa_cmd);
+ install_element(CONFIG_NODE, &debug_isis_lfa_cmd);
+ install_element(CONFIG_NODE, &no_debug_isis_lfa_cmd);
install_element(CONFIG_NODE, &debug_isis_rtevents_cmd);
install_element(CONFIG_NODE, &no_debug_isis_rtevents_cmd);
install_element(CONFIG_NODE, &debug_isis_events_cmd);