]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: log new ipv6 global in bgp_interface_address_add
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 28 Mar 2024 10:07:24 +0000 (11:07 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Tue, 23 Apr 2024 09:26:49 +0000 (11:26 +0200)
Log new IPv6 global address in bgp_interface_address_add

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_zebra.c

index a6d2a30013a3b821a859b3bf95bad4c8653263f4..5977180ce5135f45f9329442a1edf36564210f80 100644 (file)
@@ -357,9 +357,10 @@ static int bgp_interface_address_add(ZAPI_CALLBACK_ARGS)
                            ((IS_MAPPED_IPV6(&peer->nexthop.v6_global)) ||
                             IN6_IS_ADDR_LINKLOCAL(&peer->nexthop.v6_global))) {
                                if (bgp_debug_zebra(ifc->address)) {
-                                       zlog_debug("Update peer %pBP's current intf addr %pI6 and send updates",
+                                       zlog_debug("Update peer %pBP's current intf global addr from %pI6 to %pI6 and send updates",
                                                   peer,
-                                                  &peer->nexthop.v6_global);
+                                                  &peer->nexthop.v6_global,
+                                                  &addr->u.prefix6);
                                }
                                memcpy(&peer->nexthop.v6_global,
                                       &addr->u.prefix6, IPV6_MAX_BYTELEN);