Giter Site home page Giter Site logo

Comments (7)

whandjr avatar whandjr commented on September 26, 2024

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Hi Wes,
The use case in my scenario is that I within our test scripts for certain triggers, we would need to find the object(s) associated with an ip(s) to start or stop that specific device or send an arp/ns etc. Thsi is basically mimicking what we have available and perform routinely on the IxNetwork GUI client.

Secondly,
You do have the Values under the iterator(multivalue Object) assigned to a specific attribute under the Address reference Object right? So should'nt there be a way to get this implemented then?

ipObject.href
u'/api/v1/sessions/11/ixnetwork/topology/5/deviceGroup/2/ethernet/1/ipv4/1'
ipObject.Address.Values
[u'56.28.0.12', u'56.28.0.13', u'56.28.0.14', u'56.28.0.15', u'56.28.0.16', u'56.28.0.17', u'56.28.0.18', u'56.28.0.19', u'56.28.0.20', u'56.28.0.21']

from ixnetwork.

whandjr avatar whandjr commented on September 26, 2024

from ixnetwork.

ajbalogh avatar ajbalogh commented on September 26, 2024

We currently do not support this methodology for finding instances as parent instances are required at this time.
We are looking at implementing a solution that does not require parent instances.

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Thanks Wes,Andy.
Is there a way we can document and track this request? This is something that we were really looking forward to in the RestPy SDK since it is an operation that was lacking in the earlier HLT sdk.
This meant that we had to store numerous handles for every single ip we configured in some global data structure and maintain this through our tests.
I was hoping with the query(find) functionality in the RestPy SDK that this would have been solved. At least this was my assumption.

Secondly. Is there any other way we can get this object? Seems like without having a reference parent object stored in some data structure that is maintained throughout the script life cycle, we can't query individual objects?
Would the only way to retrieve this object (assuming we only use list patterns) is to retrieve all topologies, all devices under topologies, all ethernet devices under topologies and then do a nested search within that to get the related ipv4Object?

from ixnetwork.

ajbalogh avatar ajbalogh commented on September 26, 2024

You can get this object by specifying the find for all parent objects.
A, B, C, D below would be replaced with the names of those objects.

ipv4 = Topology.find(Name='A'),DeviceGroup.find(Name='B').Ethernet.find(Name='C').Ipv4.find(Name='D')

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Hi Andy,
The issue is that I would'nt know the name of the parent objects here. All that the consumer for this function would have is the ip address.

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.