Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhen-H3C committed Aug 15, 2024
1 parent 41a20f2 commit 2815b50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions isisd/isis_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2351,13 +2351,13 @@ DEFPY_YANG (isis_frr_lfa_tiebreaker,
snprintf(
xpath, XPATH_MAXLEN,
"./fast-reroute/level-1/lfa/tiebreaker[index='%s'][type='%s']",
index_str);
index_str, type);
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
} else {
snprintf(
xpath, XPATH_MAXLEN,
"./fast-reroute/level-1/lfa/tiebreaker[index='%s'][type='%s']/type",
index_str);
index_str, type);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, type);
}
}
Expand All @@ -2366,13 +2366,13 @@ DEFPY_YANG (isis_frr_lfa_tiebreaker,
snprintf(
xpath, XPATH_MAXLEN,
"./fast-reroute/level-2/lfa/tiebreaker[index='%s'][type='%s']",
index_str);
index_str, type);
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
} else {
snprintf(
xpath, XPATH_MAXLEN,
"./fast-reroute/level-2/lfa/tiebreaker[index='%s'][type='%s']/type",
index_str);
index_str, type);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, type);
}
}
Expand Down

0 comments on commit 2815b50

Please sign in to comment.