OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

::ixNet::ERROR-7008-Could not apply traffic,Error in L2/L3 Traffic Apply #110

Closed wenijinew closed 3 years ago

wenijinew commented 4 years ago

Hi,

After the command "ixNet exec apply [ixNet getRoot]traffic", it got: ::ixNet::ERROR-7008-Could not apply traffic,Error in L2/L3 Traffic Apply

Any way to show more details of the error?

Thanks

therkong commented 4 years ago

Are you using Windows ixNet API Server? If yes, you can open Error/Warning window via the 'Messages' on the bottom right. You need to click the word 'Messages'. If you are running Linux API Server, then you can open the API Browser and go to globals/appErrors. Hope this helps.

wenijinew commented 4 years ago

@therkong Thanks. And what I meant is to show more details by command, if any. Then I can got it in the reply and have better understanding on the error.

therkong commented 3 years ago

Here's code snip: Errors = [] Messages = ixNet.getList('::ixNet::OBJ-/globals/appErrors', 'error') for Message in Messages: if ixNet.getAttribute(Message, '-errorLevel') == 'kError': Errors.append("\n{" + ixNet.getAttribute(Message, '-provider') + "}\n"

T or you can print the Errors