summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-23 12:22:34 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-23 14:36:56 +0100
commit07273632fcf59d04be988f2c43fe53e7bec8d46a (patch)
tree9a552078dd3db9932b101871d275137822622226 /src/conf_mode
parentdaca2a39b4d0f4ebdf07463679b9465c64886763 (diff)
downloadvyos-1x-07273632fcf59d04be988f2c43fe53e7bec8d46a.tar.gz
vyos-1x-07273632fcf59d04be988f2c43fe53e7bec8d46a.zip
pppoe: T1318: rename link to source-interface
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py
index 6ab3fbd95..49902b989 100755
--- a/src/conf_mode/interfaces-pppoe.py
+++ b/src/conf_mode/interfaces-pppoe.py
@@ -64,7 +64,7 @@ noauth
noproxyarp
plugin rp-pppoe.so
-{{ link }}
+{{ source_interface }}
persist
ifname {{ intf }}
ipparam {{ intf }}
@@ -100,14 +100,14 @@ default_config_data = {
'idle_timeout': '',
'ipv6_autoconf': False,
'ipv6_enable': False,
- 'link': '',
'local_address': '',
'mtu': '1492',
'name_server': 'auto',
'password': '',
'remote_address': '',
'service_name': '',
- 'user_id': ''
+ 'user_id': '',
+ 'source_interface': ''
}
def subprocess_cmd(command):
@@ -165,13 +165,13 @@ def get_config():
if conf.exists(['ipv6', 'enable']):
pppoe['ipv6_enable'] = True
- # IPv4 address of local end of the PPPoE link
+ # IPv4 address of local end of PPPoE link
if conf.exists(['local-address']):
pppoe['local_address'] = conf.return_value(['local-address'])
# Physical Interface used for this PPPoE session
- if conf.exists(['link']):
- pppoe['link'] = conf.return_value('link')
+ if conf.exists(['source-interface']):
+ pppoe['source_interface'] = conf.return_value('source-interface')
# Maximum Transmission Unit (MTU)
if conf.exists(['mtu']):
@@ -204,8 +204,8 @@ def verify(pppoe):
# bail out early
return None
- if not pppoe['link']:
- raise ConfigError('Physical link interface for PPPoE missing')
+ if not pppoe['source_interface']:
+ raise ConfigError('PPPoE source interface is missing')
return None