cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
293
Views
0
Helpful
2
Replies

CCC API /api/v1/images displays wrong Golden Image Tag with Parameter

tschleicher
Level 1
Level 1

When issueing the /dna/intent/api/v1/images API. You will get the correct golden tagged Images.

When doing the same for a specific productNameOrdinal there are multiple golden Tagged Images for a Product using same Roles.

Here the Example with   /dna/intent/api/v1/images?productNameOrdinal=xxxxx

In my Opinion this shouldn´t be the case, it should not display golden tagged images duplicated like this, where it has the exact same roles assigned and no difference in device Tags. In Fact the Catalyst Center UI doesnt even show Roles assigned to both.

            "id": "xxxxx",
            "imported": true,
            "name": "cat9k_iosxe.17.09.xxxxx.bin",
            "version": "17.09.xxxxx",
            "imageType": "SYSTEM",
            "recommended": "CISCO",
            "ciscoLatest": false,
            "integrityStatus": "VERIFIED",
            "hasAddonImages": false,
            "goldenTaggingDetails": [
                {
                    "deviceRoles": [
                        "UNKNOWN",
                        "ACCESS",
                        "BORDER_ROUTER",
                        "CORE",
                        "DISTRIBUTION"
                    ],
                    "deviceTags": []
                }
            ],
            "productNames": [
                {
                    "id": "xxxx",
                    "productName": "Cisco Catalyst 9300L Switch Stack",
                    "productNameOrdinal": xxxxx
                }
            ],
            "isAddonImage": false,
            "isGoldenTagged": true
        },

        {
            "id": "xxxx",
            "imported": true,
            "name": "cat9k_iosxe.17.15.xxxx",
            "version": "17.15.xxxxx",
            "imageType": "SYSTEM",
            "recommended": "UNKNOWN",
            "ciscoLatest": true,
            "integrityStatus": "VERIFIED",
            "hasAddonImages": false,
            "goldenTaggingDetails": [
                {
                    "deviceRoles": [
                        "UNKNOWN",
                        "ACCESS",
                        "BORDER_ROUTER",
                        "CORE",
                        "DISTRIBUTION"
                    ],
                    "deviceTags": []
                }
            ],
            "productNames": [
                {
                    "id": "xxxxx",
                    "productName": "Cisco Catalyst 9300L Switch Stack",
                    "productNameOrdinal": xxxxx
                }
            ],
            "isAddonImage": false,
            "isGoldenTagged": true
        },
2 Replies 2

Torbjørn
VIP
VIP

Hello @tschleicher, welcome to the community!

Which version are you testing on? I'll have a look at this a bit later in the evening.
I believe that this is caused by being marked golden for different areas of your hierarchy.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

Hi @Torbjørn, thank you very much for the reply.
Im currently testing on 2.3.7.9. I verified through UI for all my Areas, Buildings etc. that the image isnt marked golden somewhere else. I just have the 17.15 Image on Global marked as golden.

Also the Docs state for (/dna/intent/api/v1/images)A list of available images for the specified site is provided. The default value of the site is set to global.

And for further Troubleshooting i did run /dna/intent/api/v1/image/importation?isTaggedGolden=True
Which shows you a very detailed overview, without the option to specify a site as it shows you applicable devices for a Image including a array of Sites.

With this call the API also replied only with the 17.15 Version.