mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
In switch mode the subnet field is empty, thus the 'subnet' key does not exist in the '_payload' dictionary.
This commit is contained in:
@@ -141,7 +141,7 @@ class Host(NetwConfObject):
|
||||
self._connectTo = value.text
|
||||
|
||||
def get_subnets(self):
|
||||
if not self._payload['subnet']:
|
||||
if not 'subnet' in self._payload:
|
||||
return
|
||||
yield from self._payload['subnet'].split(',')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user