diff options
Diffstat (limited to 'pathd/path_pcep_cli.c')
| -rw-r--r-- | pathd/path_pcep_cli.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c index f80814f17c..add3391f22 100644 --- a/pathd/path_pcep_cli.c +++ b/pathd/path_pcep_cli.c @@ -1156,14 +1156,17 @@ static void print_pcep_session(struct vty *vty, struct pce_opts *pce_opts, } if (pcc_info->is_best_multi_pce) { - vty_out(vty, " MultiPCE precedence %d, best candidate\n", + vty_out(vty, " Precedence %d, best candidate\n", ((pcc_info->precedence > 0) ? pcc_info->precedence : DEFAULT_PCE_PRECEDENCE)); } else { - vty_out(vty, " MultiPCE precedence %d\n", + vty_out(vty, " Precedence %d\n", ((pcc_info->precedence > 0) ? pcc_info->precedence : DEFAULT_PCE_PRECEDENCE)); } + vty_out(vty, " Confidence %s\n", + ((pcc_info->previous_best) ? "low" + : "normal")); /* PCEPlib pcep session values, get a thread safe copy of the counters */ @@ -1479,7 +1482,8 @@ int pcep_cli_pcc_config_write(struct vty *vty) csnprintfrr(buf, sizeof(buf), " peer %s", pce_opts->pce_name); - if (pce_opts->precedence > 0) { + if (pce_opts->precedence > 0 + && pce_opts->precedence != DEFAULT_PCE_PRECEDENCE) { csnprintfrr(buf, sizeof(buf), " %s %d", PCEP_VTYSH_ARG_PRECEDENCE, pce_opts->precedence); |
