Copy the Yamale schema.yaml file into the source-code verbatim. This allows the tool to run without any external (file) dependencies, using the built-in yamale_schema if the -s/--schema flag is not specified

This commit is contained in:
Pim van Pelt
2022-04-03 15:53:00 +00:00
parent a561dc64b1
commit 53a7935168
4 changed files with 91 additions and 18 deletions

View File

@ -1,3 +1,6 @@
### NOTE(pim): This file is the source of truth for the Yamale schema validator.
### Make sure to copy this file into config/schema.py's yamale_schema
### when it is changed here.
interfaces: map(include('interface'),key=str(),required=False)
bondethernets: map(include('bondethernet'),key=str(matches='BondEthernet[0-9]+'),required=False)
loopbacks: map(include('loopback'),key=str(matches='loop[0-9]+'),required=False)