mirror of
https://github.com/meshtastic/python.git
synced 2026-01-18 12:48:03 -05:00
Tunnel: Check other arguments
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user