Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing v24.4 #164

Merged
merged 6 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 16 additions & 0 deletions pkgs/clean-pkg/changelog/2024/april.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------

* iosxe
* Change logic for copy_to_device to check for local file size before trying from remote server


--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------

* iosxe
* Added new clean stage `reset_configuration`


1,498 changes: 981 additions & 517 deletions pkgs/clean-pkg/sdk_generator/output/github_clean.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkgs/clean-pkg/src/genie/libs/clean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
'''

# metadata
__version__ = '24.3'
__version__ = '24.4'
__author__ = 'Cisco Systems Inc.'
__contact__ = ['asg-genie-support@cisco.com', 'pyats-support-ext@cisco.com']
__copyright__ = 'Copyright (c) 2019, Cisco Systems Inc.'


from genie import abstract
abstract.declare_package(__name__)
abstract.declare_package(feature="clean")

from .clean import DeviceClean, PyatsDeviceClean, BaseStage
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='iosxe')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat3k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='sdwan')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='iosxr')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='nxos')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='n3k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='n7k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='n9k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
2 changes: 1 addition & 1 deletion pkgs/clean-pkg/src/genie/libs/clean/recovery/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _recovery_steps(device, clear_line=True, powercycler=True,
if clear_line:
log.info(banner("Clearing the console port line"))
try:
device.api.execute_clear_line()
device.api.execute_clear_console()
except Exception as e:
log.warning(str(e))
log.warning("Unable to clear console port line")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='aireos')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='apic')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='cheetah')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='ap')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
2 changes: 1 addition & 1 deletion pkgs/clean-pkg/src/genie/libs/clean/stages/ios/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='ios')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(os='iosxe')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat3k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat9k')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat9k', model='c9500')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat9k', model='c9800')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='cat9k', submodel='c9800_cl')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
abstract.declare_token(platform='sdwan')
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,6 @@ def reload_check(device, target):
'device_managed_mode': device_managed_mode
}
try:
abstract = Lookup.from_device(device,
packages={'clean': clean})
# Item is needed to be able to know in which parallel child

# device.start only gets filled with single rp devices
# for multiple rp devices we need to use subconnections
if device.is_ha and hasattr(device, 'subconnections'):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
# Enable abstraction using this directory name as the abstraction token
try:
from genie import abstract
abstract.declare_token(__name__)
except Exception as e:
import warnings
warnings.warn('Could not declare abstraction token: ' + str(e))
Loading
Loading