Add first approximation of vxlan_tunnels

This commit is contained in:
Pim van Pelt
2022-03-15 22:21:36 +00:00
parent 05b3c5c157
commit 686cd45158
4 changed files with 114 additions and 1 deletions

View File

@ -29,6 +29,7 @@ from validator.loopback import validate_loopbacks
from validator.bondethernet import validate_bondethernets
from validator.interface import validate_interfaces
from validator.bridgedomain import validate_bridgedomains
from validator.vxlan_tunnel import validate_vxlan_tunnels
from yamale.validators import DefaultValidators, Validator
import ipaddress
@ -121,6 +122,12 @@ class Validator(object):
if not rv:
ret_rv = False
rv, msgs = validate_vxlan_tunnels(yaml)
if msgs:
ret_msgs.extend(msgs)
if not rv:
ret_rv = False
if ret_rv:
self.logger.debug("Semantics correctly validated")
return ret_rv, ret_msgs