summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2015-11-10 18:33:12 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-12-08 14:12:50 -0500
commitec87416a1048d547c514b535c15616f9ed932a62 (patch)
tree3d967181e81e6a9ca0f7b9633f6844d7f6338e6e /isisd
parentacf9865f7fcec6a8d47df6ed7946a5e8ca398918 (diff)
downloadquagga-ec87416a1048d547c514b535c15616f9ed932a62.tar.bz2
quagga-ec87416a1048d547c514b535c15616f9ed932a62.tar.xz
isisd: provide more detailed log for failed address removal
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_circuit.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 81c60762..30aa9260 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -326,6 +326,13 @@ isis_circuit_del_addr (struct isis_circuit *circuit,
prefix2str (connected->address, (char *)buf, BUFSIZ);
zlog_warn ("Nonexitant ip address %s removal attempt from \
circuit %d", buf, circuit->circuit_id);
+ zlog_warn ("Current ip addresses on %s:", circuit->interface->name);
+ for (ALL_LIST_ELEMENTS_RO(circuit->ip_addrs, node, ip))
+ {
+ prefix2str((struct prefix*)ip, (char *)buf, BUFSIZ);
+ zlog_warn(" %s", buf);
+ }
+ zlog_warn("End of addresses");
}
prefix_ipv4_free (ipv4);
@@ -369,6 +376,19 @@ isis_circuit_del_addr (struct isis_circuit *circuit,
prefix2str (connected->address, (char *)buf, BUFSIZ);
zlog_warn ("Nonexitant ip address %s removal attempt from \
circuit %d", buf, circuit->circuit_id);
+ zlog_warn ("Current ip addresses on %s:", circuit->interface->name);
+ for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_link, node, ip6))
+ {
+ prefix2str((struct prefix*)ip6, (char *)buf, BUFSIZ);
+ zlog_warn(" %s", buf);
+ }
+ zlog_warn(" -----");
+ for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_non_link, node, ip6))
+ {
+ prefix2str((struct prefix*)ip6, (char *)buf, BUFSIZ);
+ zlog_warn(" %s", buf);
+ }
+ zlog_warn("End of addresses");
}
else if (circuit->area)
lsp_regenerate_schedule (circuit->area, circuit->is_type, 0);