summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ripd/rip_cli.c4
1 files 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";