summaryrefslogtreecommitdiff
path: root/pathd/path_pcep_cli.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-01-11 15:18:18 +0200
committerGitHub <noreply@github.com>2021-01-11 15:18:18 +0200
commitb96138fbf04e6fa6e9c0ec4be011636b765b2e54 (patch)
tree5a7cf2afaa708b44e37f9eb5e3f78abc36320b79 /pathd/path_pcep_cli.c
parent73511c6a0288d74427b06251dc5df03ce991100b (diff)
parentc576dc6a4f5c62aeeb5e77e41c0f8efbf7f5797f (diff)
Merge pull request #7830 from volta-networks/misc_fixes_2021
Misc fixes (bgpd, pathd, tools)
Diffstat (limited to 'pathd/path_pcep_cli.c')
-rw-r--r--pathd/path_pcep_cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c
index 8973958312..add3391f22 100644
--- a/pathd/path_pcep_cli.c
+++ b/pathd/path_pcep_cli.c
@@ -1482,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);