From f6bf3bdfa7ebf1fceb3cd0f8e3263d20e17e16fa Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 10 Mar 2020 18:51:17 +0100 Subject: pppoe: T1318: minor code cleanup --- src/conf_mode/interfaces-pppoe.py | 5 ++--- 1 file 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 -- cgit v1.2.3