diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-11 13:24:43 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-11 13:37:45 +0300 |
commit | 60cd669d2cee2a17d4e6ab6fce9101069d311e23 (patch) | |
tree | eecb5f26c5367d4b88276a035a1d0f01140ba64e /src/services/api/rest/models.py | |
parent | 7d4264365e487d37115cff0633b25e4b2012a126 (diff) | |
download | vyos-1x-60cd669d2cee2a17d4e6ab6fce9101069d311e23.tar.gz vyos-1x-60cd669d2cee2a17d4e6ab6fce9101069d311e23.zip |
T6695: Machine-readable operational mode support for traceroute
Diffstat (limited to 'src/services/api/rest/models.py')
-rw-r--r-- | src/services/api/rest/models.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/services/api/rest/models.py b/src/services/api/rest/models.py index 23ae9be9d..27d9fb5ee 100644 --- a/src/services/api/rest/models.py +++ b/src/services/api/rest/models.py @@ -279,6 +279,20 @@ class PoweroffModel(ApiModel): } +class TracerouteModel(ApiModel): + op: StrictStr + host: StrictStr + + class Config: + schema_extra = { + 'example': { + 'key': 'id_key', + 'op': 'traceroute', + 'host': 'host', + } + } + + class Success(BaseModel): success: bool data: Union[str, bool, Dict] |