Add LLDP auto cabling (#41)

This commit is contained in:
Solvik 2019-08-26 11:05:41 +02:00 committed by GitHub
parent 0ef0e1c698
commit 33c55340b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 226 additions and 20 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