summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorkroy-the-rabbit <kroy@kroy.io>2020-03-23 09:49:12 -0500
committerGitHub <noreply@github.com>2020-03-23 09:49:12 -0500
commitfce4ab0b35bc6756436df0683265680a15bac5c7 (patch)
tree6fbef7d54e6678f5c9377e63bdbabe9a34980172 /src/conf_mode
parent52e20fa562968dcfd7b524031f0cad2b6f4fff57 (diff)
downloadvyos-1x-fce4ab0b35bc6756436df0683265680a15bac5c7.tar.gz
vyos-1x-fce4ab0b35bc6756436df0683265680a15bac5c7.zip
T2152 fix to allow external IP usage to work
Conf got set to inappropriate level to make the web-url option work
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dynamic_dns.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py
index 4663987b4..faf0663ab 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dynamic_dns.py
@@ -198,16 +198,19 @@ def get_config():
node['service'].append(srv)
- # set config level back to top level
- conf.set_level(base_level)
-
+ # Set config back to appropriate level for these options
+ conf.set_level(base_level + ['interface', interface])
+
# Additional settings in CLI
if conf.exists(['use-web', 'skip']):
node['web_skip'] = conf.return_value(['use-web', 'skip'])
if conf.exists(['use-web', 'url']):
node['web_url'] = conf.return_value(['use-web', 'url'])
-
+
+ # set config level back to top level
+ conf.set_level(base_level)
+
dyndns['interfaces'].append(node)
return dyndns