diff options
author | kroy-the-rabbit <kroy@kroy.io> | 2020-03-23 09:49:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 09:49:12 -0500 |
commit | fce4ab0b35bc6756436df0683265680a15bac5c7 (patch) | |
tree | 6fbef7d54e6678f5c9377e63bdbabe9a34980172 /src/conf_mode/dynamic_dns.py | |
parent | 52e20fa562968dcfd7b524031f0cad2b6f4fff57 (diff) | |
download | vyos-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/dynamic_dns.py')
-rwxr-xr-x | src/conf_mode/dynamic_dns.py | 11 |
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 |