]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Change printing format `show debugging` for `debug bgp updates`
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 9 Jan 2024 08:06:36 +0000 (10:06 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 9 Jan 2024 08:08:54 +0000 (10:08 +0200)
Before:

```
BGP debugging status:
  BGP updates debugging is on (inbound) for 127.0.0.1 with prefix-list rn-dummy 192.168.10.18 with prefix-list rn-dummy 1.1.1.1
```

After:

```
BGP debugging status:
  BGP updates debugging is on (inbound) for:
   127.0.0.1 with prefix-list rn-dummy
   192.168.10.18 with prefix-list rn-dummy
   192.168.10.20
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_debug.c

index 138ffedb2956050628e1ed9c3bdc8ccd3058bbbd..816b9217e27e7409a951d2083cedcccd4bef46a9 100644 (file)
@@ -234,10 +234,10 @@ static void bgp_debug_list_print(struct vty *vty, const char *desc,
        vty_out(vty, "%s", desc);
 
        if (list && !list_isempty(list)) {
-               vty_out(vty, " for");
+               vty_out(vty, " for:\n");
                for (ALL_LIST_ELEMENTS(list, node, nnode, filter)) {
                        if (filter->host)
-                               vty_out(vty, " %s", filter->host);
+                               vty_out(vty, "   %s", filter->host);
 
                        if (filter->plist_name)
                                vty_out(vty, " with prefix-list %s",
@@ -247,6 +247,8 @@ static void bgp_debug_list_print(struct vty *vty, const char *desc,
                                bgp_debug_print_evpn_prefix(vty, "", filter->p);
                        else if (filter->p)
                                vty_out(vty, " %pFX", filter->p);
+
+                       vty_out(vty, "\n");
                }
        }