[action] [PR:17616] Do not pass the option "device" in rsyslog.conf by default when syslog server's source address is configured (#17616)#18518
Merged
mssonicbld merged 1 commit intosonic-net:202311from Apr 1, 2024
Conversation
…g server's source address is configured (sonic-net#17616) ### Why I did it An in-band syslog server will not receive any syslog if it is configured without a VRF specified, which is because `eth0` is always specified as the `device` of a syslog server and the syslog packets will be sent to `eth0` regardless of its destination IP address. ### How I did it Pass the option "device" in rsyslog.conf only if when syslog server's source address is configured with a non-default VRF #### How to verify it Manually test: 1. Configuring a syslog server without VRF specified or with `default` as the VRF: no `device` passed in `rsyslog.conf` 2. Configuring a syslog server with non-default VRF: the configured VRF passed as `device` in `rsyslog.conf`
Collaborator
Author
|
Original PR: #17616 |
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
An in-band syslog server will not receive any syslog if it is configured without a VRF specified, which is because
eth0is always specified as thedeviceof a syslog server and the syslog packets will be sent toeth0regardless of its destination IP address.How I did it
Pass the option "device" in rsyslog.conf only if when syslog server's source address is configured with a non-default VRF
How to verify it
Manually test:
defaultas the VRF: nodevicepassed inrsyslog.confdeviceinrsyslog.conf