]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: add notify value in zlog notification message for pbr
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 30 Apr 2018 08:35:10 +0000 (10:35 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 25 May 2018 13:49:38 +0000 (15:49 +0200)
notifications values from zebra related to pbr are dumped.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_zebra.c

index 390eb44eb8086423a8fa608aefc4e3f278a5330f..a5f51b9fd9fb8ffcfd4bbd65f5d34784fdd7f8a9 100644 (file)
@@ -1987,8 +1987,8 @@ static int ipset_notify_owner(int command, struct zclient *zclient,
        bgp_pbim = bgp_pbr_match_ipset_lookup(vrf_id, unique);
        if (!bgp_pbim) {
                if (BGP_DEBUG(zebra, ZEBRA))
-                       zlog_debug("%s: Fail to look BGP match (%u)",
-                                  __PRETTY_FUNCTION__, unique);
+                       zlog_debug("%s: Fail to look BGP match ( %u %u)",
+                                  __PRETTY_FUNCTION__, note, unique);
                return 0;
        }
 
@@ -2036,8 +2036,8 @@ static int ipset_entry_notify_owner(int command, struct zclient *zclient,
                                                     unique);
        if (!bgp_pbime) {
                if (BGP_DEBUG(zebra, ZEBRA))
-                       zlog_debug("%s: Fail to look BGP match entry (%u)",
-                                  __PRETTY_FUNCTION__, unique);
+                       zlog_debug("%s: Fail to look BGP match entry (%u %u)",
+                                  __PRETTY_FUNCTION__, note, unique);
                return 0;
        }
 
@@ -2080,8 +2080,8 @@ static int iptable_notify_owner(int command, struct zclient *zclient,
        bgpm = bgp_pbr_match_iptable_lookup(vrf_id, unique);
        if (!bgpm) {
                if (BGP_DEBUG(zebra, ZEBRA))
-                       zlog_debug("%s: Fail to look BGP iptable (%u)",
-                                  __PRETTY_FUNCTION__, unique);
+                       zlog_debug("%s: Fail to look BGP iptable (%u %u)",
+                                  __PRETTY_FUNCTION__, note, unique);
                return 0;
        }
        switch (note) {