Skip to content

[rsyslog] Add support for IPv6 remote addresses#3754

Merged
lguohan merged 1 commit intosonic-net:masterfrom
jleveque:rsyslog_ipv6_support
Nov 14, 2019
Merged

[rsyslog] Add support for IPv6 remote addresses#3754
lguohan merged 1 commit intosonic-net:masterfrom
jleveque:rsyslog_ipv6_support

Conversation

@jleveque
Copy link
Contributor

- What I did

Add support for IPv6 addresses of remote syslog servers in rsyslog.conf.j2 template

- How I did it

Enclose server address in square brackets.

According to the documentation, IPv6 addresses must be enclosed in square brackets. However, it also states that IPv4 addresses as well as host names will also work if enclosed in square brackets. Thus, in order to avoid unnecessary conditional logic, all syslog server addresses will be enclosed in square brackets in the generated rsyslog.conf file.

- How to verify it

Configure the device to have IPv6 addresses for syslog servers and confirm it works.

@jleveque jleveque requested a review from lguohan November 14, 2019 02:41
@jleveque jleveque self-assigned this Nov 14, 2019
@lguohan lguohan merged commit c50c390 into sonic-net:master Nov 14, 2019
@jleveque jleveque deleted the rsyslog_ipv6_support branch November 14, 2019 18:59
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
@qiluo-msft qiluo-msft mentioned this pull request Nov 30, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants