Tunnel: Check other arguments

This commit is contained in:
Marek Küthe committed 2023-12-04 12:55:36 +00:00
1 parent de154e50ca
commit b468a0c908
1 file changed
+6
+6
View File
@@ -49,6 +49,12 @@ class Tunnel:
if not iface:
raise Exception("Tunnel() must have a interface")
if not subnet:
raise Exception("Tunnel() must have a subnet")
if not netmask:
raise Exception("Tunnel() must have a netmask")
self.iface = iface
self.subnetPrefix = subnet