Page MenuHomeVyOS Platform

Generate schema definitions from standardized op-mode scripts
Closed, ResolvedPublicENHANCEMENT


Current progress on T2719, notably, PR #1351: "prototype of an op mode command runner based on type hints and introspection", allow one to automate the creation of corresponding GraphQL schema definition files. The current generating script is linked below. Resolvers (handlers) for these definitions are already dynamically generated, although still requiring that the named resolvers be added by hand to a list; that step will be automated as well, resulting in one only having to run the script to allow server response to any GraphQL op-mode request.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

jestabro triaged this task as Normal priority.Tue, Jul 19, 1:06 PM
jestabro created this task.
jestabro created this object in space S1 VyOS Public.
jestabro changed the subtype of this task from "Task" to "Enhancement".Sun, Jul 31, 2:17 PM


curl -k --raw 'https://localhost/graphql' \
  -H 'Content-Type: application/json' \
  -d '{"query":" {\n ShowVrf (data: {key: \"foo\"}) {\n  success\n  errors\n  data {\n    result\n  }\n}\n}\n"}'

Getting data: