Skip to content

Release 25.5 #946

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

Merged
merged 2 commits into from
Jun 4, 2025
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
  •  
  •  
  •  
282 changes: 282 additions & 0 deletions changelog/2025/may.rst

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions changelog/changelog_show_mfib_20250514091043.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------
* IOSXE
* Added ShowIpv6MfibInterface
* 'show ipv6 mfib interface'
4,138 changes: 2,950 additions & 1,188 deletions sdk_generator/outputs/github_parser.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/genie/libs/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'''

# metadata
__version__ = '25.4'
__version__ = "25.5"
__author__ = 'Cisco Systems Inc.'
__contact__ = ['pyats-support@cisco.com', 'pyats-support-ext@cisco.com']
__copyright__ = 'Copyright (c) 2018, Cisco Systems Inc.'
Expand Down
16 changes: 14 additions & 2 deletions src/genie/libs/parser/iosxe/cat9k/c9500/show_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def cli(self, output=None):
# BOOTLDR: System Bootstrap, Version 17.1.1[FC2], RELEASE SOFTWARE (P)
p5 = re.compile(r'^BOOTLDR: +(?P<bootldr_version>[\S\s]+)$')

# ROM: IOS-XE ROMMONBOOTLDR: System Bootstrap, Version 17.11.0.1r, DEVELOPMENT SOFTWARE
p4and5 = re.compile(r'^ROM: +(?P<rom>.+)BOOTLDR: +(?P<bootldr>[\S\s]+)$')

# SF2 uptime is 1 day, 18 hours, 48 minutes
p6 = re.compile(r'^(?P<hostname>.+) +uptime +is +(?P<uptime>.+)$')

Expand Down Expand Up @@ -312,8 +315,9 @@ def cli(self, output=None):
m = p4.match(line)
if m:
rom = m.groupdict()['rom']
version_dict['rom'] = rom
continue
if "ROMMONBOOTLDR" not in rom:
version_dict['rom'] = rom
continue

# BOOTLDR: System Bootstrap, Version 17.1.1[FC2], RELEASE SOFTWARE (P)
m = p5.match(line)
Expand All @@ -322,6 +326,14 @@ def cli(self, output=None):
version_dict['bootldr'] = m.groupdict()['bootldr_version']
continue

# ROM: IOS-XE ROMMONBOOTLDR: System Bootstrap, Version 17.11.0.1r, DEVELOPMENT SOFTWARE
m = p4and5.match(line)
if m:
version_dict['bootldr_version'] = m.groupdict()['bootldr']
version_dict['bootldr'] = m.groupdict()['bootldr']
version_dict['rom'] = m.groupdict()['rom']
continue

# SF2 uptime is 1 day, 18 hours, 48 minutes
m = p6.match(line)
if m:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
expected_output = {
'version': {
'bootldr': 'System Bootstrap, Version 17.11.0.1r, DEVELOPMENT SOFTWARE',
'bootldr_version': 'System Bootstrap, Version 17.11.0.1r, DEVELOPMENT SOFTWARE',
'chassis': 'C9500X-60L4D',
'code_name': 'IOSXE',
'compiled_by': 'mcpre',
'compiled_date': 'Thu 24-Apr-25 21:57',
'disks': {
'bootflash:': {
'disk_size': '11161600',
},
'crashinfo:': {
'disk_size': '1638400',
},
},
'hostname': 'ott-c9500x-16',
'image_id': 'CAT9K_IOSXE',
'label': '[BLD_POLARIS_DEV_LATEST_20250425_043858:/nobackup/mcpre/s2c-build-ws 101]',
'last_reload_reason': 'Image Install',
'mac_address': 'b0:8d:57:9e:28:00',
'main_mem': '5769295',
'mb_assembly_num': '4DBE',
'mb_rev_num': '3',
'mb_sn': 'FDO28020Q8G',
'mem_size': {
'non_volatile_memory': '32768',
'physical_memory': '33554432',
},
'model_num': 'C9500X-60L4D',
'model_rev_num': 'V02',
'os': 'IOS-XE',
'platform': 'Catalyst L3 Switch',
'processor_board_id': 'FDO28021F19',
'processor_type': 'X86',
'returned_to_rom_by': 'Image Install at 04:19:26 UTC Sat Apr 26 2025',
'revision': 'V01',
'rom': 'IOS-XE ROMMON',
'smart_licensing_status': 'Smart Licensing Using Policy',
'system_image': 'bootflash:packages.conf',
'system_sn': 'FDO28021F19',
'uptime': '3 days, 28 minutes',
'uptime_this_cp': '3 days, 30 minutes',
'version': '17.19.20250425:045711',
'version_short': '17.19',
'xe_version': 'BLD_POLARIS_DEV_LATEST_20250425_043858',
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
Cisco IOS XE Software, Version BLD_POLARIS_DEV_LATEST_20250425_043858
Cisco IOS Software [IOSXE], Catalyst L3 Switch Software (CAT9K_IOSXE), Experimental Version 17.19.20250425:045711 [BLD_POLARIS_DEV_LATEST_20250425_043858:/nobackup/mcpre/s2c-build-ws 101]
Copyright (c) 1986-2025 by Cisco Systems, Inc.
Compiled Thu 24-Apr-25 21:57 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2025 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMONBOOTLDR: System Bootstrap, Version 17.11.0.1r, DEVELOPMENT SOFTWARE
ott-c9500x-16 uptime is 3 days, 28 minutes
Uptime for this control processor is 3 days, 30 minutes
System returned to ROM by Image Install at 04:19:26 UTC Sat Apr 26 2025
System restarted at 04:46:59 UTC Sat Apr 26 2025
System image file is "bootflash:packages.conf"
Last reload reason: Image Install



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.


Technology Package License Information:

------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-advantage Smart License network-advantage
dna-advantage Subscription Smart License dna-advantage


Smart Licensing Status: Smart Licensing Using Policy

cisco C9500X-60L4D (X86) processor (revision V01) with 5769295K/6147K bytes of memory.
Processor board ID FDO28021F19
1 Virtual Ethernet interface
60 Fifty Gigabit Ethernet interfaces
4 Four Hundred Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
33554432K bytes of physical memory.
11161600K bytes of Bootflash at bootflash:.
1638400K bytes of Crash Files at crashinfo:.
234430023K bytes of SATA hard disk at disk0:.

Base Ethernet MAC Address : b0:8d:57:9e:28:00

Motherboard Assembly Number : 4DBE
Motherboard Serial Number : FDO28020Q8G
Model Revision Number : V02
Motherboard Revision Number : 3
Model Number : C9500X-60L4D
System Serial Number : FDO28021F19
7 changes: 4 additions & 3 deletions src/genie/libs/parser/iosxe/cat9k/show_l2protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def cli(self, output=None):
p6 = re.compile(r"^(?P<protocol>\S+)\s+(?P<action>\S+)\s+(?P<shutdown_threshold>[\d\-]+)\s+(?P<drop_threshold>[\d\-]+)$")

ret_dict = {}
last_port = None # Track the last port parsed
port_dict = {}
for line in output.splitlines():
line = line.strip()

Expand Down Expand Up @@ -104,8 +104,9 @@ def cli(self, output=None):
m = p5.match(line)
if m:
dict_val = m.groupdict()
last_port = Common.convert_intf_name(dict_val["port"])
port_dict = ret_dict.setdefault("port", {}).setdefault(last_port, {})
port_dict = ret_dict.setdefault("port", {}).setdefault(
Common.convert_intf_name(dict_val["port"]), {}
)
port_dict["status"] = dict_val["status"]

protocol_dict = port_dict.setdefault("protocol", {}).setdefault(
Expand Down
144 changes: 144 additions & 0 deletions src/genie/libs/parser/iosxe/ie3k/show_software.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@

# Metaparser
import re
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import Schema, Optional, ListOf

# pyATS
from pyats.utils.exceptions import SchemaTypeError

class ShowSoftwareAuthenticityKeysSchema(MetaParser):
"""Schema for show software authenticity keys"""
schema = {
'public_key': {
int: {
'key_type': str,
'key_type_note': str,
'key_algorithm': str,
'modulus_size': int,
'modulus': str,
'exponent_size': int,
'exponent': int,
'key_version': str,
'product_name': str
}
}
}

class ShowSoftwareAuthenticityKeys(ShowSoftwareAuthenticityKeysSchema):
"""Parser for show software authenticity keys"""

cli_command = 'show software authenticity keys'

def cli(self, output=None):
if output is None:
output = self.device.execute(self.cli_command)

ret_dict = {}
current_dict = None

# Public Key #1 Information
p1 = re.compile(r'^Public Key #(?P<key_number>\d+) Information$')

# Key Type : Production (Primary)
p2 = re.compile(
r'^Key Type +: (?P<key_type>\w+) +\((?P<key_type_note>\w+)\)$'
)

# Public Key Algorithm : RSA
p3 = re.compile(r'^Public Key Algorithm : (?P<key_algorithm>\w+)$')

# Modulus (512 bytes) :
p4 = re.compile(
r'^Modulus \((?P<modulus_size>\d+) bytes\) +: *$'
)

# d8:1f:8e:b1:49:7c:bd:83:20:5f:25:43:d9:32:5a:b5:
p5 = re.compile(
r'^(?P<modulus>[0-9a-f:]+|[0-9a-f:]+[0-9a-f])$'
)

# Exponent (4 bytes) : 10001
p6 = re.compile(
r'^Exponent \((?P<exponent_size>\d+) bytes\) +: (?P<exponent>\d+)$'
)

# Key Version : A
p7 = re.compile(r'^Key Version +: (?P<key_version>\w+)$')

# Product Name : IOS-XE
p8 = re.compile(r'^Product Name +: (?P<product_name>.*)$')

for line in output.splitlines():
line = line.strip()

# Public Key #1 Information
if p1.match(line):
key_number = int(p1.match(line).group(1))
current_dict = ret_dict.setdefault('public_key', {}).setdefault(
key_number, {}
)
continue

# Key Type : Production (Primary)
match = p2.match(line)
if match:
group = match.groupdict()
key_type = group['key_type']
key_type_note = group['key_type_note']
current_dict['key_type'] = key_type
current_dict['key_type_note'] = key_type_note
continue

# Public Key Algorithm : RSA
match = p3.match(line)
if match:
group = match.groupdict()
key_algorithm = group['key_algorithm']
current_dict['key_algorithm'] = key_algorithm
continue

# Modulus (512 bytes) :
match = p4.match(line)
if match:
group = match.groupdict()
modulus_size = int(group['modulus_size'])
current_dict['modulus_size'] = modulus_size
continue

# d8:1f:8e:b1:49:7c:bd:83:20:5f:25:43:d9:32:5a:b5:
match = p5.match(line)
if match:
group = match.groupdict()
modulus = group['modulus']
current_dict.setdefault('modulus', '')
current_dict['modulus'] += modulus
continue

# Exponent (4 bytes) : 10001
match = p6.match(line)
if match:
group = match.groupdict()
exponent_size = int(group['exponent_size'])
exponent = int(group['exponent'])
current_dict['exponent_size'] = exponent_size
current_dict['exponent'] = exponent
continue

# Key Version : A
match = p7.match(line)
if match:
group = match.groupdict()
key_version = group['key_version']
current_dict['key_version'] = key_version
continue

# Product Name : IOS-XE
match = p8.match(line)
if match:
group = match.groupdict()
product_name = group['product_name']
current_dict['product_name'] = product_name
continue

return ret_dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
expected_output = {
'public_key': {
1: {
'key_type': 'Production',
'key_type_note': 'Primary',
'key_algorithm': 'RSA',
'modulus_size': 512,
'modulus': '''d8:1f:8e:b1:49:7c:bd:83:20:5f:25:43:d9:32:5a:b5:34:14:00:bb:cc:e3:80:43:20:68:03:cf:a8:e7:ea:f0:4e:8e:78:e4:a6:82:05:d3:70:f7:1c:67:6d:9c:4d:a9:0c:d2:bd:d6:33:05:af:4f:c6:93:4b:bc:d6:f4:a2:f1:65:15:b9:e0:a7:35:d1:76:fc:db:a8:6e:1c:99:55:f8:f4:9a:00:61:65:32:c8:b4:38:ef:5a:b8:c3:fa:eb:a9:df:52:ff:da:6b:8d:d6:79:9a:4a:51:8d:ed:ff:d2:12:aa:42:9e:e4:6a:20:96:b6:38:19:1b:08:20:02:83:2d:c3:80:64:d7:84:7f:17:bc:ba:6f:8c:14:f7:ac:b3:8a:a4:3a:59:82:a4:d0:1c:16:32:fe:e2:f9:fb:4c:e1:76:c1:84:60:75:18:91:a6:3e:b0:3f:aa:d9:9d:91:3b:98:c6:13:ae:9f:83:38:c9:80:fb:c6:6e:fc:87:85:b7:4f:a6:b8:e8:c6:c0:3b:6d:d2:5c:e0:b7:54:ec:4b:5c:8d:72:aa:c2:13:4b:97:2d:b5:fc:ff:20:1f:18:9d:fb:4f:8b:50:44:8c:9d:ea:c8:4b:56:f7:7b:a1:14:5a:cd:f4:1c:01:5a:1c:d7:18:7b:6c:c4:b1:48:99:a8:5d:86:ab:b2:bd:97:e7:54:d7:24:16:0d:2f:5e:45:73:f8:89:23:68:9f:c5:c4:da:be:3f:3e:c6:76:26:23:5e:1f:0c:0d:99:18:62:79:6b:00:db:4a:0b:ff:5f:0a:e1:9e:3d:b3:81:87:36:e4:13:5a:0c:31:84:aa:d7:cc:34:8c:2d:48:10:84:6b:2b:f3:65:2d:24:d8:7f:ef:70:29:47:2d:86:6d:ec:d6:17:fd:7d:f1:4b:8d:73:60:c1:ff:10:26:73:4b:19:6b:e6:dd:c6:0e:62:d9:1d:8e:08:57:c5:e3:93:19:10:28:b4:48:7e:b1:b8:33:66:4e:38:f6:ba:88:3a:fa:9b:35:35:54:f8:f2:af:14:b2:98:db:75:33:0c:5c:79:04:01:4a:48:44:71:c3:24:19:af:33:f0:bc:89:c6:13:52:f3:67:0d:cd:18:a7:54:c3:d3:38:e1:0b:2e:ec:9c:d4:4d:76:36:8f:d6:2d:da:3e:9d:ef:50:31:4a:cd:dc:fe:85:f8:e7:5d:3b:be:b1:b5:0b:15:1b:e0:8d:92:dc:ec:2a:f7:17:9a:10:f7:43:38:38:ee:ac:02:ff:cd:4a:f5:84:0f:d9:16:fb:ca:90:0a:b1:9c:11:77:ee:e8:b8:cc:29:04:af:58:ce:32:41:3c:f3:cd:0e:31:7f:13''',
'exponent_size': 4,
'exponent': 10001,
'key_version': 'A',
'product_name': 'IOS-XE'
},
2: {
'key_type': 'Rollover',
'key_type_note': 'Revocation',
'key_algorithm': 'RSA',
'modulus_size': 256,
'modulus': '''b6:b4:2e:65:c8:91:a8:27:bd:52:c4:53:f9:3e:91:48:3e:56:74:ce:fa:82:51:0b:dd:d5:75:1f:b0:4c:b1:d8:53:1a:ee:81:de:fd:de:45:26:92:ce:1c:a0:40:65:91:d1:fa:15:ff:d6:d8:d1:29:2a:12:1b:b3:54:0d:3c:3f:72:91:69:ae:40:ad:ab:0f:c5:10:45:4c:3d:09:2e:f8:39:30:89:e8:dd:a4:57:bf:82:57:79:f6:84:46:df:39:4a:db:a0:9d:a9:b2:fc:db:63:02:6e:a6:31:eb:5e:b1:87:91:20:a3:2f:c0:b5:ac:70:ff:10:cf:d2:52:c6:45:23:c0:6e:d9:5d:c7:c9:9e:95:15:5e:87:3f:51:65:92:75:f4:95:bd:90:90:b9:2a:fc:54:e9:dd:ac:69:0b:ec:ec:2c:67:b8:40:02:92:5c:21:ca:ce:fb:2d:35:53:ca:e5:8e:d4:59:c9:2d:b3:5b:fd:16:61:1c:bf:49:0a:5f:cc:49:33:a4:38:8a:7c:12:bd:36:bf:5b:9a:f2:c6:da:22:e1:1b:ec:2d:6a:5b:c8:b7:b8:ee:a2:a9:ea:65:c2:fe:11:28:da:54:2a:3e:c3:b5:01:80:b5:62:3f:7e:c8:e5:7b:b1:91:05:c0:8c:fc:5f:56:e3:14:e6:ae:6c:9b''',
'exponent_size': 3,
'exponent': 10001,
'key_version': 'A',
'product_name': 'CISCO'
},
3: {
'key_type': 'Production',
'key_type_note': 'Backup',
'key_algorithm': 'RSA',
'modulus_size': 256,
'modulus': '''e4:66:7c:11:c4:fa:5e:1d:08:fc:4b:96:99:8f:12:ad:bf:18:20:74:cc:a4:cb:9f:72:92:95:c5:a8:d8:62:5c:47:59:5e:fe:b7:b7:c6:c4:63:6f:4a:31:b9:03:75:05:d7:f2:be:a0:f1:86:52:20:d3:57:ff:05:74:fa:bf:f1:9c:c8:9d:95:e9:8f:b3:13:70:4e:04:a9:ea:8d:d4:8f:c2:35:7e:4b:60:c7:44:ea:13:2b:db:28:5f:8a:ec:05:b5:f4:b8:7a:9f:81:3c:3a:55:50:e7:47:4b:0e:d6:0e:82:cf:51:03:7b:a9:9a:15:9d:42:4b:ec:62:03:16:f7:1a:7c:bf:89:f8:93:bf:75:f4:20:4b:0c:44:6c:5b:f1:86:fb:0e:39:0f:7e:c1:1f:e5:4d:50:d6:84:38:be:f5:ae:fd:08:fa:3b:80:a2:56:46:7e:f3:d3:29:44:52:f1:2e:12:a4:37:07:54:5d:d1:9b:db:d7:25:57:0a:80:35:62:3d:58:cb:c6:bb:40:c9:a2:8c:64:29:b3:8b:9d:b3:d0:91:f3:8c:a1:4b:b2:30:7b:65:03:8c:27:4d:be:f1:54:9b:b7:8e:63:71:89:b3:c2:bf:e1:85:d3:cb:b5:40:28:f1:66:53:12:53:40:bb:81:d4:94:98:05:60:63:5d''',
'exponent_size': 4,
'exponent': 10001,
'key_version': 'A',
'product_name': 'Cisco Services Containers'
},
4: {
'key_type': 'Special',
'key_type_note': 'Backup',
'key_algorithm': 'RSA',
'modulus_size': 256,
'modulus': '''cd:98:2e:65:39:d2:d5:a2:5b:7f:fa:8a:0a:c9:6c:cb:8b:a5:03:93:62:6a:08:f7:2c:b9:ef:1d:2b:48:2c:55:ef:78:eb:19:cd:36:9a:2e:ac:06:c4:99:b8:e0:35:67:62:e9:b3:66:b3:7b:d8:60:f2:39:55:86:4e:ca:87:36:a1:47:60:63:50:0d:cb:15:bf:36:85:b2:d6:9c:de:af:84:25:4b:7c:43:ab:1d:71:0f:83:4a:8e:07:66:42:58:d1:49:37:e6:30:03:f2:87:a3:e3:d8:7d:8b:15:e4:22:02:63:a5:16:3e:0c:3b:66:87:a5:55:c0:b1:af:16:7a:83:d6:95:f1:89:23:25:ce:75:00:10:fc:e5:99:c6:8d:b9:2e:e4:a3:ab:14:9d:61:44:2b:a3:c8:df:57:7e:a0:aa:be:0b:31:ed:79:58:f8:e3:1e:85:c2:fb:05:02:ed:99:f4:d4:89:42:c0:6b:cc:5d:41:aa:8f:e7:26:72:75:2b:e9:ed:b2:71:c9:8d:ca:c5:26:ca:d7:7a:11:4b:0a:6e:15:ac:2a:0a:0c:89:af:b1:a1:73:17:ae:c4:82:e1:e2:25:27:f7:f8:e9:50:8f:e0:b4:4d:8b:a4:67:43:7c:c6:03:b0:09:c0:ae:cc:3b:cc:b2:d8:1a:88:6a:13:e1''',
'exponent_size': 4,
'exponent': 10001,
'key_version': 'A',
'product_name': 'Cisco Services Containers'
}
}
}
Loading
Loading