Development
This commit is contained in:
parent
d0cfffac52
commit
adcfe55c7c
24 changed files with 405 additions and 359 deletions
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
validation.py -- Shared structural validators for core.json fields.
|
||||
validation.py -- Shared structural validators for config.json fields.
|
||||
|
||||
Lives alongside core.py in ~/routlin/ and is volume-mounted into the
|
||||
routlin-dash container at /app/validation.py. Importable by both
|
||||
|
|
@ -304,7 +304,7 @@ def derive_interface(vlan, data):
|
|||
# ===================================================================
|
||||
|
||||
def validate_config(data):
|
||||
"""Validate core.json structure and content. Returns list of error strings."""
|
||||
"""Validate config.json structure and content. Returns list of error strings."""
|
||||
errors = []
|
||||
seen_vlan_ids = {}
|
||||
seen_interfaces = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue