A few cosmetic changes in logging
This commit is contained in:
9
unittest/correct-empty2.yaml
Normal file
9
unittest/correct-empty2.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
test:
|
||||
description: "A completely empty config file is, ironically, correct"
|
||||
errors:
|
||||
count: 0
|
||||
---
|
||||
interfaces: {}
|
||||
loopbacks: {}
|
||||
bridgedomains: {}
|
||||
bondethernets: {}
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user