-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
387 changed files
with
8,959 additions
and
85,066 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
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,31 @@ | ||
-------------------------------------------------------------------------------- | ||
Fix | ||
-------------------------------------------------------------------------------- | ||
|
||
* iosxe | ||
* Modified ChangeBootVariable | ||
* Removed duplicate code from verify_boot_variable step | ||
|
||
* clean-pkg | ||
* iosxe | ||
* set the step as passx if ignore stratup config fail. | ||
* Fix syntax warning | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
New | ||
-------------------------------------------------------------------------------- | ||
|
||
* clean-pkg | ||
* iosxe | ||
* Remove the unused key `reload_timeout` from `install_smu` | ||
* iosxe | ||
* Added hot smu support for `install_remove_smu` and `install_smu` stage | ||
* iosxe | ||
* Added multiple smu support for `install_remove_smu` and `install_smu` stage | ||
|
||
* iosxe | ||
* Added | ||
* ChangeBootVariable for IE3K | ||
|
||
|
1,224 changes: 0 additions & 1,224 deletions
1,224
pkgs/clean-pkg/sdk_generator/output/github_clean.json
This file was deleted.
Oops, something went wrong.
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
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
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
53 changes: 0 additions & 53 deletions
53
pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/cat9k/tests/test_install_image_reload.py
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/ie3k/__init__.py
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,7 @@ | ||
# Enable abstraction using this directory name as the abstraction token | ||
try: | ||
from genie import abstract | ||
abstract.declare_token(platform='ie3k') | ||
except Exception as e: | ||
import warnings | ||
warnings.warn('Could not declare abstraction token: ' + str(e)) |
2 changes: 2 additions & 0 deletions
2
pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/ie3k/ie3100/__init__.py
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,2 @@ | ||
from genie import abstract | ||
abstract.declare_token(model='ie3100') |
74 changes: 74 additions & 0 deletions
74
pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/ie3k/ie3100/stages.py
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,74 @@ | ||
"""IOSXE IE3100 specific clean stages""" | ||
|
||
# Python | ||
import logging | ||
|
||
# Genie | ||
from genie.libs.clean.stages.iosxe.stages import ( | ||
ChangeBootVariable as IOSXEChangeBootVariable) | ||
|
||
# MetaParser | ||
from genie.metaparser.util.schemaengine import Optional | ||
|
||
# Logger | ||
log = logging.getLogger(__name__) | ||
|
||
|
||
class ChangeBootVariable(IOSXEChangeBootVariable): | ||
"""This stage configures boot variables of the device using the following steps: | ||
- Delete existing boot variables. | ||
- Configure boot variables using the provided 'images'. | ||
- Write memory. | ||
- Verify the boot variables are as expected. | ||
Stage Schema | ||
------------ | ||
change_boot_variable: | ||
images (list): Image files to use when configuring the boot variables. | ||
timeout (int, optional): Execute timeout in seconds. Defaults to 300. | ||
current_running_image (bool, optional): Set the boot variable to the currently | ||
running image from the show version command instead of the image provided. | ||
Defaults to False. | ||
Example | ||
------- | ||
change_boot_variable: | ||
images: | ||
- harddisk:/image.bin | ||
timeout: 150 | ||
""" | ||
|
||
# ================= | ||
# Argument Defaults | ||
# ================= | ||
TIMEOUT = 300 | ||
CURRENT_RUNNING_IMAGE = False | ||
|
||
# ============ | ||
# Stage Schema | ||
# ============ | ||
schema = { | ||
Optional('images'): list, | ||
Optional('timeout'): int, | ||
Optional('current_running_image'): bool, | ||
|
||
# Deprecated | ||
Optional('check_interval'): int, | ||
Optional('max_time'): int, | ||
Optional('write_memory'): bool, | ||
} | ||
|
||
# ============================== | ||
# Execution order of Stage steps | ||
# ============================== | ||
exec_order = [ | ||
'delete_boot_variable', | ||
'configure_boot_variable', | ||
'write_memory', | ||
'verify_boot_variable' | ||
] | ||
|
2 changes: 2 additions & 0 deletions
2
pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/ie3k/ie3200/__init__.py
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,2 @@ | ||
from genie import abstract | ||
abstract.declare_token(model='ie3200') |
Oops, something went wrong.