diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-02 21:29:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 21:29:46 +0200 |
commit | fcb185eb080a2fb3a234a79fdedb669354f1e8dc (patch) | |
tree | 4bb1449773e2602bfab121b1d0c4cd70ac0405e5 /python | |
parent | 78fad655a3894a59880a0385b1b7fd0226eb27ee (diff) | |
parent | 1e7134004ae50548e9ec9d5dfa45a1f3d19c1eff (diff) | |
download | vyos-1x-fcb185eb080a2fb3a234a79fdedb669354f1e8dc.tar.gz vyos-1x-fcb185eb080a2fb3a234a79fdedb669354f1e8dc.zip |
Merge pull request #440 from thomas-mangin/T2542
vtun: T2542: do not attempt to create the interface
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/pppoe.py | 10 | ||||
-rw-r--r-- | python/vyos/ifconfig/vtun.py | 12 |
2 files changed, 20 insertions, 2 deletions
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 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 |