Page MenuHomeVyOS Platform

Implement GraphQL resolvers for standardized op-mode scripts
Closed, ResolvedPublicENHANCEMENT

Description

Automatic generation of schema definition files for standardized op-mode scripts is addressed in T4544. Here we complete the implementation by defining the directives 'genopquery' and 'genopmutation' which dynamically generate resolvers for any script present in the list of scripts rewritten in standardized form. Once scripts are updated to the new format, they can be added to the list, and after the schema definition generation script is run (on service start/restart), they will automatically be exposed by the http-api for requests.

Details

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

Event Timeline

jestabro moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
jestabro changed the subtype of this task from "Task" to "Enhancement".Jul 31 2022, 2:17 PM