mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
implement ability to override device driver
This commit is contained in:
@@ -5,10 +5,12 @@ import re
|
||||
from typing import TypeVar
|
||||
|
||||
# Third Party
|
||||
from pydantic import StrictInt, StrictFloat
|
||||
from pydantic import StrictInt, StrictFloat, constr
|
||||
|
||||
IntFloat = TypeVar("IntFloat", StrictInt, StrictFloat)
|
||||
|
||||
SupportedDriver = constr(regex=r"(scrapli|netmiko|hyperglass_agent)")
|
||||
|
||||
|
||||
class StrictBytes(bytes):
|
||||
"""Custom data type for a strict byte string.
|
||||
|
||||
Reference in New Issue
Block a user