A few cosmetic changes in logging

This commit is contained in:
Pim van Pelt
2022-03-15 20:57:11 +00:00
parent 6d3de72c00
commit 5876465327
4 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,9 @@
test:
description: "A completely empty config file is, ironically, correct"
errors:
count: 0
---
interfaces: {}
loopbacks: {}
bridgedomains: {}
bondethernets: {}

View File

@ -121,4 +121,6 @@ class Validator(object):
if not rv:
ret_rv = False
if ret_rv:
self.logger.debug("Semantics correctly validated")
return ret_rv, ret_msgs

View File

@ -40,7 +40,6 @@ def validate_bridgedomains(yaml):
if not 'bridgedomains' in yaml:
return result, msgs
logger.debug("Validating bridgedomains...")
for ifname, iface in yaml['bridgedomains'].items():
logger.debug("bridgedomain %s" % iface)
bd_mtu = 1500

View File

@ -38,7 +38,6 @@ def validate_loopbacks(yaml):
if not 'loopbacks' in yaml:
return result, msgs
logger.debug("Validating loopbacks...")
for ifname, iface in yaml['loopbacks'].items():
logger.debug("loopback %s" % iface)
if 'addresses' in iface and not 'lcp' in iface: