From 839e6ce56021622ae5029a307f25fd5d341cf43c Mon Sep 17 00:00:00 2001 From: Javier Garcia Date: Thu, 13 May 2021 13:38:41 +0200 Subject: [PATCH] pathd: Fix affinity command to exclude options to match implementation. Including documentation update. Signed-off-by: Javier Garcia --- doc/user/pathd.rst | 2 +- pathd/path_cli.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) 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" -- 2.39.5