Add LLDP auto cabling

This commit is contained in:
Solvik Blum 2019-08-23 15:00:59 +02:00
parent 0ef0e1c698
commit 1b9bf46762
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
3 changed files with 154 additions and 4 deletions

View file

@ -33,6 +33,8 @@ if config.get('rack_location'):
NETWORK_IGNORE_INTERFACES = None
NETWORK_IGNORE_IPS = None
NETWORK_LLDP = None
if config.get('network'):
NETWORK_IGNORE_INTERFACES = config['network'].get('ignore_interfaces')
NETWORK_IGNORE_IPS = config['network'].get('ignore_ips')
NETWORK_LLDP = config['network'].get('lldp') is True