-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(anta): Issue_882-Added the test case to verify the Graceful Rest…
…art (GR) and GR-Helper
- Loading branch information
Geetanjali Mane
authored and
Geetanjali Mane
committed
Dec 26, 2024
1 parent
e12197b
commit ae862e3
Showing
4 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2023-2024 Arista Networks, Inc. | ||
# Use of this source code is governed by the Apache License 2.0 | ||
# that can be found in the LICENSE file. | ||
"""Module containing input models for ISIS tests.""" | ||
|
||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel, ConfigDict | ||
|
||
|
||
class ISISInstances(BaseModel): | ||
"""Model for a list of ISIS instance entries.""" | ||
|
||
model_config = ConfigDict(extra="forbid") | ||
vrf: str = "default" | ||
"""VRF context. Defaults to `default` VRF.""" | ||
name: str | ||
"""The instance name or ID to validated the instance specific isis details.""" | ||
graceful_restart: bool = True | ||
"""Flag to check if the graceful restart is enabled for isis instance, Defaults to `True`""" | ||
graceful_helper: bool = True | ||
"""Flag to check if the graceful helper is enabled for isis instance, Defaults to `True`""" | ||
|
||
def __str__(self) -> str: | ||
"""Return a human-readable string representation of the ISISInstances for reporting.""" | ||
return f"VRF: {self.vrf} Instance: {self.name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters