diff options
author | Emanuele Di Pascale <emanuele@voltanet.io> | 2021-05-18 15:52:44 +0200 |
---|---|---|
committer | Emanuele Di Pascale <emanuele@voltanet.io> | 2021-06-01 19:19:05 +0200 |
commit | ec957bbc2af02ea7bbaa65e852be912f35685495 (patch) | |
tree | 09b9760f16875fb22105f3a1df3b802a5f56d572 /pathd | |
parent | Merge pull request #8748 from idryzhov/ospf6-vrf-unlink (diff) | |
download | frr-ec957bbc2af02ea7bbaa65e852be912f35685495.tar.xz frr-ec957bbc2af02ea7bbaa65e852be912f35685495.zip |
pathd: fix render candidate-path bandwidth
the config for dynamic candidate paths with bandwidth preferences
was using a different order of keywords (required bandwidth X) than
the corresponding command (bandwidth X required). This confuses
frr-reload, and possibly users too. Make both use the same order.
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'pathd')
-rw-r--r-- | pathd/path_cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pathd/path_cli.c b/pathd/path_cli.c index 172737c9d..da41c9641 100644 --- a/pathd/path_cli.c +++ b/pathd/path_cli.c @@ -1195,9 +1195,10 @@ void cli_show_srte_policy_candidate_path(struct vty *vty, dnode, "./constraints/bandwidth/value"); required = yang_dnode_get_bool( dnode, "./constraints/bandwidth/required"); - vty_out(vty, " %sbandwidth", - required ? "required " : ""); + vty_out(vty, " bandwidth"); config_write_float(vty, bandwidth); + if (required) + vty_out(vty, " required"); vty_out(vty, "\n"); } if (yang_dnode_exists(dnode, |