ixnetwork_restpy icon indicating copy to clipboard operation
ixnetwork_restpy copied to clipboard

InstanceId is not a string

Open Oggie23 opened this issue 1 year 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