mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 05:27:16 +02:00
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:
parent
f35de3f8cb
commit
22bec0df47
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue