diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:14:49 +0000 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:14:49 +0000 |
commit | 8a4dd6c2816bf2289ad4af37ba301b31efdf30a8 (patch) | |
tree | 5974407307b60984e2b1c71ecf949b1ca182c0f2 /python/vyos/ifconfig/l2tpv3.py | |
parent | 09f8e57535849aab83df6947fbe94a0e7228ed40 (diff) | |
download | vyos-1x-8a4dd6c2816bf2289ad4af37ba301b31efdf30a8.tar.gz vyos-1x-8a4dd6c2816bf2289ad4af37ba301b31efdf30a8.zip |
ifconfig: T2057: add class Register
Diffstat (limited to 'python/vyos/ifconfig/l2tpv3.py')
-rw-r--r-- | python/vyos/ifconfig/l2tpv3.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/l2tpv3.py b/python/vyos/ifconfig/l2tpv3.py index a87535277..fbfab4c6e 100644 --- a/python/vyos/ifconfig/l2tpv3.py +++ b/python/vyos/ifconfig/l2tpv3.py @@ -19,6 +19,7 @@ import os from vyos.ifconfig.interface import Interface +@Interface.register class L2TPv3If(Interface): """ The Linux bonding driver provides a method for aggregating multiple network @@ -28,12 +29,19 @@ class L2TPv3If(Interface): monitoring may be performed. """ - options = Interface.options + \ - ['tunnel_id', 'peer_tunnel_id', 'local_port', 'remote_port', - 'encapsulation', 'local_address', 'remote_address'] default = { 'type': 'l2tp', } + definition = { + **Interface.definition, + **{ + 'section': 'l2tpeth', + 'prefixes': ['l2tpeth', ], + 'bridgeable': True, + } + } + options = Interface.options + \ + ['tunnel_id', 'peer_tunnel_id', 'local_port', 'remote_port', 'encapsulation', 'local_address', 'remote_address'] def _create(self): # create tunnel interface |