summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-23 17:24:07 +0100
committerGitHub <noreply@github.com>2020-03-23 17:24:07 +0100
commit53fc11a0680520d2771cb68fe6ac363f104008ff (patch)
tree50328968e2ced837620a44e9d46d46726249b7f8
parentaa1b14d6ee8845ecd94565d9f33748c9b2eb9489 (diff)
parentfce4ab0b35bc6756436df0683265680a15bac5c7 (diff)
downloadvyos-1x-53fc11a0680520d2771cb68fe6ac363f104008ff.tar.gz
vyos-1x-53fc11a0680520d2771cb68fe6ac363f104008ff.zip
Merge pull request #259 from kroy-the-rabbit/patch-1
T2152 ddclient fix to allow external IP detection to work
-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