diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-07 14:12:28 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-07 14:12:35 +0200 |
commit | d70f1538f215f065855a89b1afe4cd8b26cd9cc2 (patch) | |
tree | bdaccbffb1079c7f51d5526ce6cad12c6d81c63e /src/conf_mode/interfaces-wirelessmodem.py | |
parent | 1c7d7cbd3963428888068af679946e6329567451 (diff) | |
download | vyos-1x-d70f1538f215f065855a89b1afe4cd8b26cd9cc2.tar.gz vyos-1x-d70f1538f215f065855a89b1afe4cd8b26cd9cc2.zip |
wwan: T2488: remove generation of dedicated logfile
... all information are present in journald.
Diffstat (limited to 'src/conf_mode/interfaces-wirelessmodem.py')
-rwxr-xr-x | src/conf_mode/interfaces-wirelessmodem.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-wirelessmodem.py b/src/conf_mode/interfaces-wirelessmodem.py index f16457a7f..571969f4d 100755 --- a/src/conf_mode/interfaces-wirelessmodem.py +++ b/src/conf_mode/interfaces-wirelessmodem.py @@ -24,7 +24,7 @@ from sys import exit from vyos.config import Config from vyos.ifconfig import BridgeIf, Section from vyos.template import render -from vyos.util import chown, chmod_755, cmd, call +from vyos.util import call from vyos.validate import is_member from vyos import ConfigError @@ -41,7 +41,6 @@ default_config_data = { 'disable': False, 'disable_link_detect': 1, 'on_demand': False, - 'logfile': '', 'metric': '10', 'mtu': '1500', 'name_server': True, @@ -76,7 +75,6 @@ def get_config(): raise ConfigError('Interface (VYOS_TAGNODE_VALUE) not specified') wwan['intf'] = os.environ['VYOS_TAGNODE_VALUE'] - wwan['logfile'] = f"/var/log/vyatta/ppp_{wwan['intf']}.log" wwan['chat_script'] = f"/etc/ppp/peers/chat.{wwan['intf']}" # check if interface is member if a bridge @@ -225,8 +223,6 @@ def apply(wwan): if not wwan['disable']: # "dial" WWAN connection intf = wwan['intf'] - # make logfile owned by root / vyattacfg - chown(wwan['logfile'], 'root', 'vyattacfg') call(f'systemctl start ppp@{intf}.service') # re-add ourselves to any bridge we might have fallen out of |