Initial commit
This commit is contained in:
15
validator/loopback.py
Normal file
15
validator/loopback.py
Normal file
@ -0,0 +1,15 @@
|
||||
import logging
|
||||
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
|
||||
def loopback(args, yaml):
|
||||
result = True
|
||||
msgs = []
|
||||
logger = logging.getLogger('vppcfg.validator')
|
||||
logger.addHandler(NullHandler())
|
||||
|
||||
logger.debug("Validating loopbacks...")
|
||||
return result, msgs
|
Reference in New Issue
Block a user