Tunnel: Check other arguments

This commit is contained in:
Marek Küthe
2023-12-04 12:55:36 +00:00
parent de154e50ca
commit b468a0c908

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