Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: Enable combined logging for UPDATEs
Before this patch if we enable two commands: * `debug bgp updates in 10.0.0.1` * `debug bgp updates prefix 192.168.0.0/24` We never check both conditions if a prefix and neighbor match. If we see that we enabled logging for a specific neighbor, then we log all the messages related to that neighbor and ignore what prefix we expect. With this patch, we have a combined check and look at prefix + neighbor. Signed-off-by: Donatas Abraitis <[email protected]>
- Loading branch information
why do we need to check "!peer" here? could we enable debug bgp update prefix for a neighbor?