1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
Files
checktheroads-hyperglass/hyperglass/models/commands/common.py
2021-09-10 23:13:27 -07:00

27 lines
549 B
Python

"""Models common to entire commands module."""
# Third Party
from pydantic import StrictStr
# Local
from ..main import HyperglassModel
class CommandSet(HyperglassModel):
"""Command set, defined per-AFI."""
bgp_route: StrictStr
bgp_aspath: StrictStr
bgp_community: StrictStr
ping: StrictStr
traceroute: StrictStr
class CommandGroup(HyperglassModel, extra="allow"):
"""Validation model for all commands."""
ipv4_default: CommandSet
ipv6_default: CommandSet
ipv4_vpn: CommandSet
ipv6_vpn: CommandSet