summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_sstp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-04 11:37:21 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-04 11:37:21 +0200
commit4649284812bb3dbb8c07f0e4dc56226b6da1a703 (patch)
treec1b1a7fd01df61336b95838d05bfd2a643dbece7 /src/conf_mode/vpn_sstp.py
parent585aaf9c5770e2a0784849aee75213bd4ea1871a (diff)
downloadvyos-1x-4649284812bb3dbb8c07f0e4dc56226b6da1a703.tar.gz
vyos-1x-4649284812bb3dbb8c07f0e4dc56226b6da1a703.zip
sstp: T2953: migrate gateway-address, client-ip-settings to common level
* move "network-settings gateway-address" to "gateway-address" * move "network-settings client-ip-settings" to "client-ip-pool"
Diffstat (limited to 'src/conf_mode/vpn_sstp.py')
-rwxr-xr-xsrc/conf_mode/vpn_sstp.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py
index 15fcfcef3..3eece1922 100755
--- a/src/conf_mode/vpn_sstp.py
+++ b/src/conf_mode/vpn_sstp.py
@@ -224,16 +224,13 @@ def get_config(config=None):
#
# read in client IPv4 pool
- conf.set_level(base_path + ['network-settings', 'client-ip-settings'])
+ conf.set_level(base_path + ['client-ip-pool'])
if conf.exists(['subnet']):
sstp['client_ip_pool'] = conf.return_values(['subnet'])
- if conf.exists(['gateway-address']):
- sstp['client_gateway'] = conf.return_value(['gateway-address'])
-
#
# read in client IPv6 pool
- conf.set_level(base_path + ['network-settings', 'client-ipv6-pool'])
+ conf.set_level(base_path + ['client-ipv6-pool'])
if conf.exists(['prefix']):
for prefix in conf.list_nodes(['prefix']):
tmp = {
@@ -261,6 +258,9 @@ def get_config(config=None):
#
# read in network settings
conf.set_level(base_path)
+ if conf.exists(['gateway-address']):
+ sstp['client_gateway'] = conf.return_value(['gateway-address'])
+
if conf.exists(['name-server']):
for name_server in conf.return_values(['name-server']):
if is_ipv4(name_server):
@@ -268,8 +268,6 @@ def get_config(config=None):
else:
sstp['dnsv6'].append(name_server)
- #
- # read in network settings
if conf.exists(['mtu']):
sstp['mtu'] = conf.return_value(['mtu'])