]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: Fix error output for 'no ip router isis' command
authorChristian Franke <chris@opensourcerouting.org>
Tue, 29 May 2018 17:55:42 +0000 (19:55 +0200)
committerChristian Franke <chris@opensourcerouting.org>
Wed, 5 Sep 2018 09:38:13 +0000 (11:38 +0200)
The 'no ip router isis' command would incorrectly output the afi if the
area to delete does not exist. Make it output the area name instead.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
isisd/isis_vty_common.c

index f1f49b962bf9988fbaf574ce1cdef6c401fb8ab9..dbe5beca6e72afbc607c970dabefcd67635f894a 100644 (file)
@@ -138,7 +138,7 @@ DEFUN (no_ip_router_isis,
        area = isis_area_lookup(area_tag);
        if (!area) {
                vty_out(vty, "Can't find ISIS instance %s\n",
-                       argv[idx_afi]->arg);
+                       area_tag);
                return CMD_ERR_NO_MATCH;
        }