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

Different API response depending on platform (NXOS/ACI vs IOS/IOS-XE) #83

Open
NWMichl opened this issue Dec 22, 2020 · 1 comment
Open
Labels

Comments

@NWMichl
Copy link

NWMichl commented Dec 22, 2020

Describe the bug
First fixed software versions are reported with a different data structure and naming depending on whether NXOS/ACI or IOS(XE) is used for the API query.

To Reproduce
An API query with NXOS 7.0(3)I7(8) results in

(...)
platforms:
- firstFixes:
  - id: '279749'
    name: 7.0(3)I7(9)
  id: '265096'
  name: Cisco Nexus 9000 Series Switches
  vulnerabilityState: vulnerable
(...) 

But an API query with IOSXE 03.16.09.S results in

(...)
firstFixed:
- 3.18.2S
(...) 

Expected behavior
Since the NXOS/ACI variant allows more extensive parameters already, an adaptation of the IOS response would be desirable.

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context
BTW: The API itself is worth gold and makes our work a lot easier, so I would like to thank you for your work!
But such inconsistencies should be avoided, right?

@AdamMack2007
Copy link

I can add on to this an example of the API converting the version to an abbreviated version:

Actual version: 16.12.03
Cisco API Response: 16.12.3

As you can imagine when we're mapping data structures based on the value that those two strings do not match and will cause an issue.

@santosomar santosomar added back-end-data Backend data issue enhancement labels May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants