-
Notifications
You must be signed in to change notification settings - Fork 303
[strict yang] Add YANG based cfg_schema.h to schema.h #1008
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
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
/azp run |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @qiluo-msft and @xincunli-sonic , please help review this PR. This is a fixed version of #984 |
|
||
#define CFG_HIGH_FREQUENCY_TELEMETRY_PROFILE_TABLE_NAME "HIGH_FREQUENCY_TELEMETRY_PROFILE" | ||
#define CFG_HIGH_FREQUENCY_TELEMETRY_GROUP_TABLE_NAME "HIGH_FREQUENCY_TELEMETRY_GROUP" |
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 think the development experience of schema.h file will be changed after this PR. Could you share the design doc? and explain future development experience in design doc? #Closed
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.
Hi @qiluo-msft , please check here: sonic-net/SONiC#2026
The runtime enforcement will be added along the way.
common/cfg_schema.h.pregenerated
Outdated
#ifndef CFG_SCHEMA_H | ||
#define CFG_SCHEMA_H | ||
|
||
// Macros for table names are autogenerated by gen_cfg_schema.py. Manual update will not be preserved. |
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.
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.
Currently no. Because there are CFG macros are needed for unit test in swss-common repo, such as logger.
It should be the CFG macro owner to ensure the file up to date.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Why I did it
To enable YANG based CFG table generation, the ConfigDB related macro will be generated by YANG model
How I did it
Add gen_cfg_schema.py script to generate cfg_schema.h which will be included in schema.h
Work item tracking
How to verify it
make deb build
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)