summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-05-15 13:28:49 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-07-24 08:44:58 -0500
commit02beb3ead3783ce18087c897c4871786449c6bd1 (patch)
tree814df4550dae5293f412144abea3b5f9102a6304
parent8e6f4ee3a95fbb6d4c5ae9b0a698c5fa3ea73cf4 (diff)
downloadvyos-1x-02beb3ead3783ce18087c897c4871786449c6bd1.tar.gz
vyos-1x-02beb3ead3783ce18087c897c4871786449c6bd1.zip
graphql: T3993: add interface-definition for gql
-rw-r--r--interface-definitions/https.xml.in6
-rwxr-xr-xsrc/conf_mode/http-api.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/interface-definitions/https.xml.in b/interface-definitions/https.xml.in
index d2c393036..775fae122 100644
--- a/interface-definitions/https.xml.in
+++ b/interface-definitions/https.xml.in
@@ -107,6 +107,12 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="gql">
+ <properties>
+ <help>GraphQL support</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<node name="cors">
<properties>
<help>Set CORS options</help>
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 4a7906c17..1ea7b86cd 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -66,12 +66,6 @@ def get_config(config=None):
if conf.exists('debug'):
http_api['debug'] = True
- # this node is not available by CLI by default, and is reserved for
- # the graphql tools. One can enable it for testing, with the warning
- # that this will open an unauthenticated server. To do so
- # mkdir /opt/vyatta/share/vyatta-cfg/templates/service/https/api/gql
- # touch /opt/vyatta/share/vyatta-cfg/templates/service/https/api/gql/node.def
- # and configure; editing the config alone is insufficient.
if conf.exists('gql'):
http_api['gql'] = True