-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add sample xml skeleton plugin #42
base: master
Are you sure you want to change the base?
Conversation
This commit adds the sample xml skeleton plugin which generates a xml skeleton from the input YANG model. Five different options are available for the plugin: - doctype, data or config (don´t seams to be working in the corresponding pyang plugin) - defaults, includes default values - annotations, includes comments for type, key and presence - path, only includes the given path - populate, includes values for types specified from input file
d1651d3
to
e50c6df
Compare
@@ -0,0 +1,5 @@ | |||
{string, "populate type string"}. | |||
{unit8, "16"}. |
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.
uint8 - maybe?
@@ -0,0 +1,5 @@ | |||
{string, "populate type string"}. | |||
{unit8, "16"}. | |||
{unit32, "32"}. |
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.
uint32 - maybe?
The populate-functionality is really nice.
For instance with typedefs local in the module - you can just add the atom and voila.
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.
test/lux/sample-xml-skeleton/population.txt
aybe the types need to be:
uint8 - instead of unit8.
uint32 - intead of unit32.
This commit adds the sample xml skeleton plugin which generates a xml
skeleton from the input YANG model.
Five different options are available for the plugin:
corresponding pyang plugin)