Giter Site home page Giter Site logo

Comments (9)

therkong avatar therkong commented on September 26, 2024

from ixnetwork.

memoradi avatar memoradi commented on September 26, 2024

Thanks, Theresa. It worked!

After defining the list of mac addresses, I would like to turn on the full-mesh communication.
Can you please provide any pointer on how I should do that?

BTW, any documentation for RestPy is highly appreciated.

from ixnetwork.

therkong avatar therkong commented on September 26, 2024

from ixnetwork.

memoradi avatar memoradi commented on September 26, 2024

Thanks for the pointer on the documentation.

I am creating VLAN-tagged IPV4 traffic in my test. In my configuration, the src/dest IPs and src/dst mac addresses are stored in a list, e.g.,

Source IP = [A,B,C]
Dest IP = [C,D,E]
Src Mac = [X Y Z]
dst Mac = [W M N]

I'd like to send packets [A,C, X, W], [B, D, Y, M], and [C,E,Z,N]. I know how to this in IxNetwork (using one-to-one, full-mesh,.. options).
Q1: can you please point me on how to enable this in IXIA RestPy?
Q2: For debugging purposes, Is there any way to store packets (e.g., in JSON format) using the IXIA RestPy API? I would like to get something similar to IxExplorer's packet view option.

from ixnetwork.

hubertgee avatar hubertgee commented on September 26, 2024

from ixnetwork.

therkong avatar therkong commented on September 26, 2024

from ixnetwork.

therkong avatar therkong commented on September 26, 2024

Regarding Q2- you can export the traffic item to json file, then download the file to your script machine:
ixnetwork.ResourceManager.ExportConfigFile(['/traffic/trafficItem[1]/descendant-or-self::*'], False, 'json', Files('ti1.json'))
local_filename = sessions.DownloadFile('ti1.json', 'ti1_local.json')

You can view ti1_local.json file. The format will NOT be the same as Packet View in IxExplorer GUI. However, it will contain every field and it's settings. Please give it a try. If you have any issues, you can open a support ticket by sending email to [email protected]. I can help you in more detail.

from ixnetwork.

memoradi avatar memoradi commented on September 26, 2024

Thanks, @therkong, and @hubertgee. I will create a ticket as I got more questions.

from ixnetwork.

memoradi avatar memoradi commented on September 26, 2024

@therkong I created a ticket. Can you please look into it? Thanks!
Also, I was able to create the JSON based on the approach you mentioned. However, I do not fully understand the output as it is too verbose. Is it possible to generate a more readable one?

from ixnetwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.