-
Notifications
You must be signed in to change notification settings - Fork 647
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
Run yang validation in unit test #3025
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,17 @@ | |
"VERSION": "version_4_0_3" | ||
}, | ||
"FLEX_COUNTER_TABLE|ACL": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_STATUS": "enable", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will check with owner. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vadymhlushko-mlnx has confirmed this is a mistake. |
||
"FLEX_COUNTER_DELAY_STATUS": "true", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|QUEUE": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_STATUS": "enable", | ||
"FLEX_COUNTER_DELAY_STATUS": "true", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|PG_WATERMARK": { | ||
"FLEX_COUNTER_STATUS": "false", | ||
"FLEX_COUNTER_STATUS": "disable", | ||
"FLEX_COUNTER_DELAY_STATUS": "true" | ||
} | ||
} |
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.
I am thinking this detection is useful in production runtime as background task, not just unit test. It will help detect bugs like:
Not sure if there are other places the yang validation could help in runtime. But let's only detect and generate CRIT syslog, not to block the existing workflow.
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.
Updated