diff options
| author | Christian Franke <chris@opensourcerouting.org> | 2015-11-10 18:33:12 +0100 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-29 20:26:29 -0400 |
| commit | 16c7aedcdd7eca9c5374db335912f52d4788cfcc (patch) | |
| tree | 0961c24c5e8d6f92d77c2ac48fd3b78ea719ce2d | |
| parent | f3ccedaa3e408eb0cb098579a4a3768255e82867 (diff) | |
isisd: provide more detailed log for failed address removal
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | isisd/isis_circuit.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index c4d2ba76b8..da25a6bfa7 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -322,6 +322,13 @@ isis_circuit_del_addr (struct isis_circuit *circuit, prefix2str (connected->address, buf, sizeof (buf)); 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); @@ -365,6 +372,19 @@ isis_circuit_del_addr (struct isis_circuit *circuit, prefix2str (connected->address, buf, sizeof (buf)); 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); |
