Skip to content

Commit

Permalink
Releasing v24.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Taarini Sarath Chander committed May 6, 2024
1 parent b8fd9c2 commit 7b554af
Show file tree
Hide file tree
Showing 948 changed files with 103,264 additions and 33,420 deletions.
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

0 comments on commit 7b554af

Please sign in to comment.