summaryrefslogtreecommitdiffstats
path: root/pathd/path_pcep_cli.c
diff options
context:
space:
mode:
authorJavier Garcia <javier.garcia@voltanet.io>2020-12-22 08:51:26 +0100
committerJavier Garcia <javier.garcia@voltanet.io>2020-12-22 16:39:20 +0100
commit5a90e1f3d35d7cbc7eb5c97a683636fb6795bbc0 (patch)
treef471f91ea01346fe5fbe17dd4a2089a1b6c93c29 /pathd/path_pcep_cli.c
parentMerge pull request #7779 from pjdruddy/pr-bgp-doc-warn (diff)
downloadfrr-5a90e1f3d35d7cbc7eb5c97a683636fb6795bbc0.tar.xz
frr-5a90e1f3d35d7cbc7eb5c97a683636fb6795bbc0.zip
pathd: Add level of confidence to show pcep-session
Show 'low' if a pce has disconnect or 'normal' . It's only a boolean so it's like a token that mark the pce that has recenty disconnect. Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
Diffstat (limited to 'pathd/path_pcep_cli.c')
-rw-r--r--pathd/path_pcep_cli.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c
index f80814f17..897395831 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
*/