Skip to content
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

Yaml format support #14

Closed
alshaboti opened this issue Mar 20, 2018 · 3 comments
Closed

Yaml format support #14

alshaboti opened this issue Mar 20, 2018 · 3 comments

Comments

@alshaboti
Copy link

Hi,
I made a yang model for yaml configuration file, and I want to send a yaml file instead of json file. Is it an easy task to support yaml format?
Which files need to be changed?

Thank you,

@samribeiro
Copy link
Member

Hi alshaboti, where exactly are you looking to have YAML support? Can you give an example?

@alshaboti
Copy link
Author

An SDN controller Faucet is running on a remote machine. Faucet is using faucet.yaml file as a configuration file. Currently, SSH is used to remotely configured fuacet.yaml file.

I would like to use gNMI to remotely update faucet yaml configuration file. However, gnmi_set only accept json format.

@samribeiro
Copy link
Member

The gnmi_set currently accepts a json file because gNMI supports using JSON:
https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#23-structured-data-types
Unfortunately YAML is not supported in gNMI, so you would need to create your own wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants