From ab648ec98610d41a759d380000e4dce7c181cf3b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 5 Mar 2020 20:33:28 +0100 Subject: pppoe: T1493: fix for fix of invalid reference of ipv6-up script file Commit d161cbb ("pppoe: T1493: fix invalid reference of ipv6-up script file") actually introduced another bug instead of fixing it. It was catched by vyos-smoketest ... luckily! Sorry! --- src/conf_mode/interfaces-pppoe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index 8002f55fa..0b7d8e9cb 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -295,13 +295,13 @@ def generate(pppoe): # Create PPP configuration files tmpl = Template(config_pppoe_tmpl) config_text = tmpl.render(pppoe) - with open(ipv6_ifup_script_file, 'w') as f: + with open(config_file_pppoe, 'w') as f: f.write(config_text) script_file = '/etc/ppp/ipv6-up.d/50-vyos-{}-autoconf'.format(pppoe['intf']) tmpl = Template(config_pppoe_ipv6_up_tmpl) config_text = tmpl.render(pppoe) - with open(script_file, 'w') as f: + with open(ipv6_ifup_script_file, 'w') as f: f.write(config_text) os.chmod(script_file, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) -- cgit v1.2.3