summaryrefslogtreecommitdiff
path: root/src/conf_mode/https.py
diff options
context:
space:
mode:
authorYuki Kajiura <14867794+kajiuray@users.noreply.github.com>2022-06-05 18:42:42 +0900
committerYuki Kajiura <14867794+kajiuray@users.noreply.github.com>2022-06-05 19:07:41 +0900
commit5b5074c3f2b7bb8d87af85d3ef5adead6363f903 (patch)
tree20cf4e196008984f0e2ce8b3e58df9a9b6d496ce /src/conf_mode/https.py
parent0988d0a0aff0a493402c0bede16d6f5f0891af35 (diff)
downloadvyos-1x-5b5074c3f2b7bb8d87af85d3ef5adead6363f903.tar.gz
vyos-1x-5b5074c3f2b7bb8d87af85d3ef5adead6363f903.zip
http-api: T4459: Fix to set VRF in http(s) service
The http service doesn't use VRF info in conf mode. Even if users set any VRF, the info isn't propagated to the process. This commit set VRF parameter in http service.
Diffstat (limited to 'src/conf_mode/https.py')
-rwxr-xr-xsrc/conf_mode/https.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index 96c50b4b5..1e58bb1e4 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -142,6 +142,10 @@ def get_config(config=None):
'api_set': api_set,
'certbot': certbot}
+ vrf_path = ['service', 'https', 'vrf']
+ if conf.exists(vrf_path):
+ https['vrf'] = conf.return_value(vrf_path)
+
return https
def verify(https):