diff options
author | Yuki Kajiura <14867794+kajiuray@users.noreply.github.com> | 2022-06-05 18:42:42 +0900 |
---|---|---|
committer | Yuki Kajiura <14867794+kajiuray@users.noreply.github.com> | 2022-06-05 19:07:41 +0900 |
commit | 5b5074c3f2b7bb8d87af85d3ef5adead6363f903 (patch) | |
tree | 20cf4e196008984f0e2ce8b3e58df9a9b6d496ce /src/conf_mode/https.py | |
parent | 0988d0a0aff0a493402c0bede16d6f5f0891af35 (diff) | |
download | vyos-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-x | src/conf_mode/https.py | 4 |
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): |