parse lldp only if configuration says so

This commit is contained in:
Solvik Blum 2019-09-06 15:37:55 +02:00
commit c452738698
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -46,7 +46,7 @@ class Network():
self.server = server self.server = server
self.device = self.server.get_netbox_server() self.device = self.server.get_netbox_server()
self.lldp = LLDP() self.lldp = LLDP() if config.network.lldp else None
self.scan() self.scan()
def scan(self): def scan(self):