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

junos.device.software not parsing version from filename correctly for EX2300 #694

Open
Yannik opened this issue Oct 1, 2024 · 1 comment · May be fixed by #695
Open

junos.device.software not parsing version from filename correctly for EX2300 #694

Yannik opened this issue Oct 1, 2024 · 1 comment · May be fixed by #695

Comments

@Yannik
Copy link

Yannik commented Oct 1, 2024

Issue Type

  • Bug Report

Module Name

junos.device.software

juniper.device collection and Python libraries version

juniper.device 1.0.6

ansible [core 2.16.11]
  python version = 3.12.6 (main, Sep  9 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

OS / Environment

Junos 23.4

Summary

junos.device.software expects the filename to start with one of these prefixes to actually parse the version string:

    JUNOS_PACKAGE_PREFIXES = ['jbundle', 'jinstall', 'junos-install',
                              'junos-srx', 'junos-vmhost-install', 'junos-vrr',
                              'vmx-bundle']

However, the EX2300 recommended release 23.4 package file is named junos-arm-32-23.4R2.13.tgz. Therefore the version is not extracted, causing firmware to be installed when it is already the current version.

Steps to reproduce

Download firmware for these switches from: https://support.juniper.net/support/downloads/?p=ex2300

and try to update to this firmware on a switch that already has the relevant firmware installed. (without explicitly specifying version parameter)

@Yannik Yannik changed the title junos.device.software not parsing version from filename correctly for EX2300 / EX4100 junos.device.software not parsing version from filename correctly for EX2300 Oct 1, 2024
@Yannik
Copy link
Author

Yannik commented Oct 1, 2024

Here is a screenshot from the relevant firmware download page: Screenshot from 2024-10-01 10-29-00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant