From 22bec0df474c1d1e6980a4c4a361656b8e208bed Mon Sep 17 00:00:00 2001 From: Shbinging Date: Tue, 25 Feb 2025 16:07:45 +0800 Subject: [PATCH] ripd: fix no ip rip split-horizon poisoned-reverse command `no ip rip split-horizon poisoned-reverse` will undo poisoned-reverse and set default behavior which is split-horizon. By contrast, `no ip rip split-horizon` will undo interface's split-horizon behavior. Signed-off-by: Shbinging --- ripd/rip_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index 5712a0b825..0bafc6f342 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -681,9 +681,9 @@ DEFPY_YANG (ip_rip_split_horizon, { const char *value; - if (no) + if (no && poisoned_reverse == NULL) value = "disabled"; - else if (poisoned_reverse) + else if (poisoned_reverse && no == NULL) value = "poison-reverse"; else value = "simple"; -- 2.39.5