From: Javier Garcia Date: Thu, 13 May 2021 11:38:41 +0000 (+0200) Subject: pathd: Fix affinity command to exclude options to match implementation. X-Git-Tag: base_8.1~529^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F8667%2Fhead;p=mirror%2Ffrr.git pathd: Fix affinity command to exclude options to match implementation. Including documentation update. Signed-off-by: Javier Garcia --- diff --git a/doc/user/pathd.rst b/doc/user/pathd.rst index c40efffc88..4c7611bc04 100644 --- a/doc/user/pathd.rst +++ b/doc/user/pathd.rst @@ -149,7 +149,7 @@ Configuration Commands Delete or start a dynamic candidate path definition. -.. clicmd:: affinity {exclude-any|include-any|include-all} BITPATTERN +.. clicmd:: affinity BITPATTERN Delete or specify an affinity constraint for a dynamic candidate path. diff --git a/pathd/path_cli.c b/pathd/path_cli.c index 7a28449e4e..8e1f94b0f0 100644 --- a/pathd/path_cli.c +++ b/pathd/path_cli.c @@ -821,9 +821,8 @@ DEFPY(srte_candidate_no_bandwidth, return nb_cli_apply_changes(vty, NULL); } -DEFPY(srte_candidate_affinity_filter, - srte_candidate_affinity_filter_cmd, - "affinity {exclude-any|include-any|include-all}$type BITPATTERN$value", +DEFPY(srte_candidate_affinity_filter, srte_candidate_affinity_filter_cmd, + "affinity $type BITPATTERN$value", "Affinity constraint\n" "Exclude any matching link\n" "Include any matching link\n" @@ -846,9 +845,8 @@ DEFPY(srte_candidate_affinity_filter, return nb_cli_apply_changes(vty, NULL); } -DEFPY(srte_candidate_no_affinity_filter, - srte_candidate_no_affinity_filter_cmd, - "no affinity {exclude-any|include-any|include-all}$type [BITPATTERN$value]", +DEFPY(srte_candidate_no_affinity_filter, srte_candidate_no_affinity_filter_cmd, + "no affinity $type [BITPATTERN$value]", NO_STR "Affinity constraint\n" "Exclude any matching link\n"