Initial commit

This commit is contained in:
Pim van Pelt
2022-03-13 09:54:50 +00:00
commit 9862129ab0
10 changed files with 451 additions and 0 deletions

15
validator/loopback.py Normal file
View 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