From 800cc91882b1ec4aaa01fbd6c570f15310160dec Mon Sep 17 00:00:00 2001 From: ckishimo Date: Wed, 17 Mar 2021 00:14:26 +0100 Subject: [PATCH] ospf6d: fix warning message when interfae disabled When removing an interface from an existing area, the warning message we get is not correct interface r1-r2-eth0 ipv6 address 2013:12::1/64 ipv6 ospf6 dead-interval 4 ipv6 ospf6 hello-interval 1 ! interface dummy ipv6 ospf6 dead-interval 4 ipv6 ospf6 hello-interval 1 ipv6 ospf6 network point-to-point ! router ospf6 ospf6 router-id 1.1.1.1 interface r1-r2-eth0 area 0.0.0.0 ! r1(config-if)# router ospf6 r1(config-ospf6)# no interface dummy area 0.0.0.0 No such Area-ID: 0.0.0.0 <--- area 0.0.0.0 exists This is fixing the error message Signed-off-by: ckishimo --- ospf6d/ospf6_top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index 88c242e79e..efa4bfb420 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c @@ -809,7 +809,8 @@ DEFUN (no_ospf6_interface_area, /* Verify Area */ if (oi->area == NULL) { - vty_out(vty, "No such Area-ID: %s\n", argv[idx_ipv4]->arg); + vty_out(vty, "%s not attached to area %s\n", + oi->interface->name, oi->area->name); return CMD_SUCCESS; } -- 2.39.5