Comments (7)
from ixnetwork.
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.
from ixnetwork.
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.
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.
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.
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)
- What does the magical number 11 mean? HOT 5
- new SDK does not support 8.51 HOT 1
- Why isDataCaptureRunning is false? HOT 5
- How to read vport object HOT 3
- Any timeout for one session HOT 3
- RestPy: CsvSnapshot.update doesn't work HOT 3
- What's sdmPort used for? HOT 1
- method startQuickTest in IxNetRestApiQuickTest.py not work HOT 1
- Bug in function getTrafficItemPktHeaderStackObj HOT 1
- Loadconfig.py not able to find the rfcquicktest object/href HOT 6
- TakeSnapshotPy method used by concurrent sessions can overwrite results
- Cannot start single traffic item HOT 1
- StatViewAssistant - Statistics view does not exist
- ixnetwork-restpy 1.1.5 with IxNetwork 9.20 error with InstanceId is not a string for field stack operation HOT 3
- loadQuickTest.py doesn't download all CSV files properly
- Packet capture does not capture IGMP related data HOT 1
- Incorrect snapshot file at debugging session HOT 1
- Ethernet destination field cannot be updated HOT 2
- prefixAddrStep not available to configNetworkGroup() in IxNetRestApiProtocol.py
- Create a QuickTest without configuration file (ixncfg or json)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixnetwork.