]> git.proxmox.com Git - mirror_frr.git/commitdiff
Run-time log filtering via vtysh commands (#4524)
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 3 Jul 2019 12:39:59 +0000 (14:39 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 12:39:59 +0000 (14:39 +0200)
Run-time log filtering via vtysh commands

1  2 
lib/command.h
tests/topotests/bgp_multiview_topo1/README.md

diff --combined lib/command.h
index fd8b56d62e9e8a8911ac5d752853b23fbc730779,fbc0e7dd6d016ede42b6a49c455f9ef635fe97d5..de38563f96ecf13223a510c6922bb6bfc6df0b3c
@@@ -34,6 -34,7 +34,6 @@@
  extern "C" {
  #endif
  
 -DECLARE_MTYPE(HOST)
  DECLARE_MTYPE(COMPLETION)
  
  /*
@@@ -396,6 -397,7 +396,7 @@@ struct cmd_node 
  #define SR_STR "Segment-Routing specific commands\n"
  #define WATCHFRR_STR "watchfrr information\n"
  #define ZEBRA_STR "Zebra information\n"
+ #define FILTER_LOG_STR "Filter Logs\n"
  
  #define CMD_VNI_RANGE "(1-16777215)"
  #define CONF_BACKUP_EXT ".sav"
  #define NEIGHBOR_ADDR_STR2 "Neighbor address\nNeighbor IPv6 address\nInterface name or neighbor tag\n"
  #define NEIGHBOR_ADDR_STR3 "Neighbor address\nIPv6 address\nInterface name\n"
  
+ /* Dameons lists */
+ #define DAEMONS_STR                                                            \
+       "For the zebra daemon\nFor the rip daemon\nFor the ripng daemon\nFor the ospf daemon\nFor the ospfv6 daemon\nFor the bgp daemon\nFor the isis daemon\nFor the pbr daemon\nFor the fabricd daemon\nFor the pim daemon\nFor the static daemon\nFor the sharpd daemon\nFor the vrrpd daemon\n"
+ #define DAEMONS_LIST                                                           \
+       "<zebra|ripd|ripngd|ospfd|ospf6d|bgpd|isisd|pbrd|fabricd|pimd|staticd|sharpd|vrrpd>"
  /* Prototypes. */
  extern void install_node(struct cmd_node *, int (*)(struct vty *));
  extern void install_default(enum node_type);
index c5e615d25210230e4995ec644f15cb9aaf2311a7,60b328505f4c24783f8c9ec286108dcf1f10e7d3..2a2747344a32c9e2c0c83347b5d2b179d37c11cd
@@@ -55,6 -55,8 +55,6 @@@ Simplified `R1` config
         ip address 172.16.1.254/24
         no link-detect
        !
 -      bgp multiple-instance
 -      !
        router bgp 100 view 1
         bgp router-id 172.30.1.1
         network 172.20.0.0/28 route-map local1
@@@ -94,7 -96,7 +94,7 @@@
  
  Test is executed by running 
  
-       vtysh -c "show log" | grep "Logging configuration for"
+       vtysh -c "show logging" | grep "Logging configuration for"
        
  on router `R1`. This should return the logging information for all daemons registered
  to Zebra and the list of running daemons is compared to the daemons started for this