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 <bingshui@smail.nju.edu.cn>
This commit is contained in:
Shbinging 2025-02-25 16:07:45 +08:00
parent f35de3f8cb
commit 22bec0df47

View file

@ -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";