summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_vti.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-01 19:15:33 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-01 19:15:41 +0200
commitb89183284f2638a4cfe8ee5e3996206c87970728 (patch)
treebd48e3879c8fec430c02196907d818fee2114a76 /smoketest/scripts/cli/test_interfaces_vti.py
parent3d6e10019b4c9cd619f1f4dd444476b979eb9bad (diff)
downloadvyos-1x-b89183284f2638a4cfe8ee5e3996206c87970728.tar.gz
vyos-1x-b89183284f2638a4cfe8ee5e3996206c87970728.zip
smoketest: T2455: add interface smoketests
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_vti.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_vti.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_vti.py b/smoketest/scripts/cli/test_interfaces_vti.py
new file mode 100755
index 000000000..9cbf104f0
--- /dev/null
+++ b/smoketest/scripts/cli/test_interfaces_vti.py
@@ -0,0 +1,34 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2022 VyOS maintainers and contributors
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 or later as
+# published by the Free Software Foundation.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+import unittest
+
+from base_interfaces_test import BasicInterfaceTest
+
+class VTIInterfaceTest(BasicInterfaceTest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ cls._test_ip = True
+ cls._test_ipv6 = True
+ cls._test_mtu = True
+ cls._base_path = ['interfaces', 'vti']
+ cls._interfaces = ['vti10', 'vti20', 'vti30']
+
+ # call base-classes classmethod
+ super(VTIInterfaceTest, cls).setUpClass()
+
+if __name__ == '__main__':
+ unittest.main(verbosity=2)