summaryrefslogtreecommitdiff
path: root/interface-definitions/https.xml.in
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-04-07 15:35:16 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-04-07 21:38:09 -0500
commitf8fafbb05a79b50cddf870617c8796bce521ce21 (patch)
tree89db3b3cc989dcd84fd15fb6adfb21fb2d9b0cbe /interface-definitions/https.xml.in
parentfcce4714146a39f608ddd141338547a5a952c63f (diff)
downloadvyos-1x-f8fafbb05a79b50cddf870617c8796bce521ce21.tar.gz
vyos-1x-f8fafbb05a79b50cddf870617c8796bce521ce21.zip
http api: T2160: move 'api virtual-host' to 'api-restrict virtual-host'
Restriction of api proxy should be owned by https.py, not http-api.py.
Diffstat (limited to 'interface-definitions/https.xml.in')
-rw-r--r--interface-definitions/https.xml.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/interface-definitions/https.xml.in b/interface-definitions/https.xml.in
index 49bd25b82..9bb96f1f0 100644
--- a/interface-definitions/https.xml.in
+++ b/interface-definitions/https.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- HTTPS configuration -->
<interfaceDefinition>
- <syntaxVersion component='https' version='1'></syntaxVersion>
+ <syntaxVersion component='https' version='2'></syntaxVersion>
<node name="service">
<children>
<node name="https" owner="${vyos_conf_scripts_dir}/https.py">
@@ -111,6 +111,13 @@
<hidden/>
</properties>
</leafNode>
+ </children>
+ </node>
+ <node name="api-restrict">
+ <properties>
+ <help>Restrict api proxy to subset of virtual hosts</help>
+ </properties>
+ <children>
<leafNode name="virtual-host">
<properties>
<help>Restrict proxy to virtual host(s)</help>