diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-01-11 15:18:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-11 15:18:18 +0200 |
| commit | b96138fbf04e6fa6e9c0ec4be011636b765b2e54 (patch) | |
| tree | 5a7cf2afaa708b44e37f9eb5e3f78abc36320b79 /pathd/path_pcep_cli.c | |
| parent | 73511c6a0288d74427b06251dc5df03ce991100b (diff) | |
| parent | c576dc6a4f5c62aeeb5e77e41c0f8efbf7f5797f (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.c | 3 |
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); |
