ixnetwork_restpy icon indicating copy to clipboard operation
ixnetwork_restpy copied to clipboard

InstanceId is not a string

Open Oggie23 opened this issue 2 years ago • 4 comments

We did an update of our IxNetwork client and Chassis and we're now getting an error when updating the traffic config stack field. The version is 9.20.2112.6.

Using the example code in the Readme:

destination_mac = traffic_config.Stack.find(StackTypeId='ethernet').Field.find(FieldTypeId='ethernet.header.destinationAddress')
destination_mac.update(ValueType='valueList', ValueList=['00:00:fa:ce:fa:ce', '00:00:de:ad:be:ef'], TrackingEnabled=True)

The line where we update the destination_mac is throwing the following error:

System.Exception: InstanceId is not a string
   at SDMCsLib.SDMObjIdPiece.GetIdAsString()
   at IxNetwork.Traffic2.Publishers.StackFieldHandler.Find(EnterExitSingleObjectHandler_EnterArgs args)
   at SDMHelpers.WalkContext.walkTo(SDMObjId objid, Hashtable idMapResponse, EnterReason reason)
   at SDMHelpers.SimplePublisher.Commit(ArrayList commitDeltasRequest, Hashtable idMapResponse, ArrayList commitMessages, SDMSandbox track)
   at SDMCsLib.SDMPeer.commitPiece(ArrayList deltasForPublisher, Hashtable idMapResponse, ArrayList commitExceptionsResponse, Version version, Boolean bCommitIfUnique)
   at SDMCsLib.SDMPeer.SANDBOX_DoCommit(Int32 eventMatch, ArrayList commitDeltasRequest, Hashtable idMapResponse, ArrayList commitExceptionsResponse, Version version, Boolean bCommitIfUnique, eSandboxType sandboxType)
   at SDMCsLib.SDMSandbox.DoCommit(Boolean bCommitIfUnique, eSandboxType sandboxType)
   at SDMCsLib.RestService.SdmSandbox.Commit(Boolean isAddOperation)
   at SDMCsLib.RestService.SdmObject.Patch()
   at SDMCsLib.RestService.V1ObjectController.Patch(String path)
        Current Server Errors/Warnings:
        05/16/2023 16:17:30 [WARNING] [Traffic Generate required] The Traffic Item was modified. Please perform a Traffic Generate to update the associated traffic Flow Groups

It seems like InstanceId (whatever that is) was a string before, but not anymore?

Oggie23 avatar May 16 '23 20:05 Oggie23

@Oggie23 This bug is fixed in 9.20 Update 2 and above. Can you apply the 9.20 Update 3 and try the script again?

ajbalogh avatar May 16 '23 20:05 ajbalogh

Ohhh! In that case, I have to wait for new license in order to apply Update 3. I will update as soon as possible and post results. Thanks!

Oggie23 avatar May 16 '23 20:05 Oggie23

@ajbalogh we are on Web Platform 9.21.2.3 and we are seeing this bug.

UPDATE: and IxNetwork Web Edition 9.20.2201.62

I don't see updates available for Web Platform, but I do see an update available for Web Edition. Is that what we need to update?

cruise-bryan-murdock avatar Jul 14 '23 21:07 cruise-bryan-murdock

I don't see updates available for Web Platform, but I do see an update available for Web Edition. Is that what we need to update?

@cruise-bryan-murdock Yes the web edition is what needs to be updated.

ajbalogh avatar Jul 14 '23 21:07 ajbalogh

This has been fixed

Vibaswan avatar Mar 20 '25 05:03 Vibaswan