-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[yang] syslog yang model #9265
[yang] syslog yang model #9265
Conversation
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Hi, could you add a NEG_TEST for invalid IPv4 address such as 1000.0.0.5 |
src/sonic-yang-models/tests/yang_model_tests/tests_config/syslog.json
Outdated
Show resolved
Hide resolved
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
src/sonic-yang-models/tests/yang_model_tests/tests_config/syslog.json
Outdated
Show resolved
Hide resolved
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
@wen587, I have updated the constraint and test in the latest commit. |
Hi @arlakshm , thanks for the update. |
Hi @wen587, as far as I know we support only ipv4 syslog server. The CLI command might be missing the IP address validation ? |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Checking #3754, we should support ipv6 syslog server address. Otherwise it will be a bug. In reply to: 983057725 |
Add support of ipv6 syslog server in the latest commit |
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please also check with other reviewers for active comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Thanks.
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Why I did it Add yang model for syslog server How I did it Add new file sonic-syslog.yang and new files for tests How to verify it Compile target/python-wheels/sonic_yang_mgmt-1.0-py3-none-any.whl Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com
Why I did it
Add yang model for syslog server
How I did it
Add new file
sonic-syslog.yang
and new files for testsHow to verify it
Compile
target/python-wheels/sonic_yang_mgmt-1.0-py3-none-any.whl
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)