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

Add DeviceConfiguration NetJSON support #11

Open
arun1993 opened this issue Jun 7, 2017 · 2 comments
Open

Add DeviceConfiguration NetJSON support #11

arun1993 opened this issue Jun 7, 2017 · 2 comments
Assignees

Comments

@arun1993
Copy link

arun1993 commented Jun 7, 2017

As the JSON plugin in SCAL can't provide support for NetJSON schema, we can extend the SCAL APIs to any object in the form of JSON.

  1. Publish NetJSON schema as different objects on the SCAL to do this. This is done as shown in the examples/json directory.
  2. Or For those data-models which don't have support of the JSON plugin, we can create a ubus object and make it available at the JSON plugin by adding a new API to call and filter the ubus object.
@arun1993
Copy link
Author

arun1993 commented Jun 7, 2017

This issue is targeted to finish completely before 2nd evaluation. However one part would be finished for the 1st evaluation phase itself. Issue will be created for that when submitting the patch.

@nbd168
Copy link
Collaborator

nbd168 commented Jun 15, 2017

I think the JSON plugin should not emit a full JSON object. The existing abstraction of objects and parameters should be used instead, and you could make the netjson CLI (or library) assemble the NetJSON structure from the data that SCAL provides.
We could look into extending the API to allow SCAL to provide multiple parameters at once to speed up the process, but for the initial prototype it probably makes sense to stick with the current SCAL API.

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

No branches or pull requests

3 participants