summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-10 18:51:17 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-10 18:51:17 +0100
commitf6bf3bdfa7ebf1fceb3cd0f8e3263d20e17e16fa (patch)
tree3e3ab2303c67965552180ca245e5a8f3ccb7f01a /src/conf_mode
parenta0c6124b2d4e4735743f4cad31431a127d97de99 (diff)
downloadvyos-1x-f6bf3bdfa7ebf1fceb3cd0f8e3263d20e17e16fa.tar.gz
vyos-1x-f6bf3bdfa7ebf1fceb3cd0f8e3263d20e17e16fa.zip
pppoe: T1318: minor code cleanup
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py
index 9e5151a2d..e9447417e 100755
--- a/src/conf_mode/interfaces-pppoe.py
+++ b/src/conf_mode/interfaces-pppoe.py
@@ -20,7 +20,6 @@ from sys import exit
from copy import deepcopy
from jinja2 import Template
from subprocess import Popen, PIPE
-from time import sleep
from pwd import getpwnam
from grp import getgrnam
from stat import S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IXGRP, S_IROTH, S_IXOTH
@@ -261,7 +260,7 @@ def get_config():
# Physical Interface used for this PPPoE session
if conf.exists(['source-interface']):
- pppoe['source_interface'] = conf.return_value('source-interface')
+ pppoe['source_interface'] = conf.return_value(['source-interface'])
# Maximum Transmission Unit (MTU)
if conf.exists(['mtu']):
@@ -281,7 +280,7 @@ def get_config():
# retrieve VRF instance
if conf.exists('vrf'):
- pppoe['vrf'] = conf.return_value('vrf')
+ pppoe['vrf'] = conf.return_value(['vrf'])
return pppoe