Add bridge-domain support.

Refactor validator main function to avoid 'interface' symbol clash.
Add get_mtu() for interfaces, returns the sub-int's MTU or its parent's MTU, defaulting to 1500.
Ensure MTU for all bridge-domain members is set to the same value.
Ensure all bridge-domain members are L2 (have no LCP, have no address)
This commit is contained in:
Pim van Pelt
2022-03-13 11:17:44 +00:00
parent 3d6903bfdc
commit 6b8735bb18
7 changed files with 112 additions and 16 deletions

View File

@ -14,7 +14,7 @@ def get_by_name(yaml, ifname):
return None
def loopback(args, yaml):
def validate_loopbacks(args, yaml):
result = True
msgs = []
logger = logging.getLogger('vppcfg.validator')