1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Implement UI configuration response model

This commit is contained in:
thatmattlove
2021-09-10 23:13:27 -07:00
parent 0e6c5e02ad
commit 76bf5eb380
65 changed files with 422 additions and 478 deletions

View File

@@ -4,7 +4,7 @@
from pydantic import StrictStr
# Local
from ..main import HyperglassModel, HyperglassModelExtra
from ..main import HyperglassModel
class CommandSet(HyperglassModel):
@@ -17,7 +17,7 @@ class CommandSet(HyperglassModel):
traceroute: StrictStr
class CommandGroup(HyperglassModelExtra):
class CommandGroup(HyperglassModel, extra="allow"):
"""Validation model for all commands."""
ipv4_default: CommandSet