diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2021-06-03 11:33:56 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 11:33:56 -0300 |
| commit | 0940d2bddc25fb2e30501dea6da0dbc0a7706a74 (patch) | |
| tree | 39746a5b428d3f3abb22ea5ca194c47d3acdfcc2 /pathd/path_cli.c | |
| parent | d64162ce84ffeefbbc95a91e7a87b2544926c886 (diff) | |
| parent | ec957bbc2af02ea7bbaa65e852be912f35685495 (diff) | |
Merge pull request #8771 from volta-networks/fix_pathd_bandwidth
pathd: fix render candidate-path bandwidth
Diffstat (limited to 'pathd/path_cli.c')
| -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 172737c9d4..da41c96414 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, |
