summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/vti.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-08-02 03:29:12 -0500
committerDaniil Baturin <daniil@vyos.io>2021-08-02 03:29:12 -0500
commitf0148b9306846a34c86f1726fd7ffb37143c94c7 (patch)
treef59896e306ddc21130e6d2682795f623abed7fb1 /python/vyos/ifconfig/vti.py
parent50a1392564611951142b8a2ca7d2af0dc4cb5cc7 (diff)
parentf83a5125735bb2f63e4d98e1b264eb689a2ef00f (diff)
downloadvyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.tar.gz
vyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.zip
Merge branch 'equuleus' of https://github.com/vyos/vyos-1x into equuleus
Diffstat (limited to 'python/vyos/ifconfig/vti.py')
-rw-r--r--python/vyos/ifconfig/vti.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/python/vyos/ifconfig/vti.py b/python/vyos/ifconfig/vti.py
new file mode 100644
index 000000000..f575323af
--- /dev/null
+++ b/python/vyos/ifconfig/vti.py
@@ -0,0 +1,27 @@
+# Copyright 2020 VyOS maintainers and contributors <maintainers@vyos.io>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library. If not, see <http://www.gnu.org/licenses/>.
+
+from vyos.ifconfig.interface import Interface
+
+@Interface.register
+class VTIIf(Interface):
+ iftype = 'vti'
+ definition = {
+ **Interface.definition,
+ **{
+ 'section': 'vti',
+ 'prefixes': ['vti', ],
+ },
+ }