From 9afec49a625e9c84db5a42db95005bb7976a624f Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Tue, 2 Jun 2020 20:11:41 +0100 Subject: vtun: T2542: do not attempt to create the vtun interface --- python/vyos/ifconfig/vtun.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python/vyos/ifconfig/vtun.py b/python/vyos/ifconfig/vtun.py index 07d39fcbb..60c178b9a 100644 --- a/python/vyos/ifconfig/vtun.py +++ b/python/vyos/ifconfig/vtun.py @@ -31,4 +31,14 @@ class VTunIf(Interface): }, } - # The _create and _delete need to be moved from interface-ppoe to here + # stub this interface is created in the configure script + + def _create(self): + # we can not create this interface as it is managed outside + # it requires configuring OpenVPN + pass + + def _delete(self): + # we can not create this interface as it is managed outside + # it requires configuring OpenVPN + pass -- cgit v1.2.3 From 1e7134004ae50548e9ec9d5dfa45a1f3d19c1eff Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Tue, 2 Jun 2020 20:12:05 +0100 Subject: pppoe: T2542: do not attempt to create the pppoe interface --- python/vyos/ifconfig/pppoe.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/vyos/ifconfig/pppoe.py b/python/vyos/ifconfig/pppoe.py index 7504408cf..787245696 100644 --- a/python/vyos/ifconfig/pppoe.py +++ b/python/vyos/ifconfig/pppoe.py @@ -30,4 +30,12 @@ class PPPoEIf(Interface): }, } - # The _create and _delete need to be moved from interface-ppoe to here + # stub this interface is created in the configure script + + def _create(self): + # we can not create this interface as it is managed outside + pass + + def _delete(self): + # we can not create this interface as it is managed outside + pass -- cgit v1.2.3