Comments (6)
handles are not supported - the class properties should be used ie session.Ixnetwork.
from ixnetwork.
So how else can I achieve this problem statement? I will describe the problem statement below. Can you please tell me how to achieve what I am looking for.
- I have already started a session and configured a partial configuration
- I exited the session or the script
- Now I want to get back the handle to that session and also be able to retrieve the many objects I would need to continue with my configuration. This includes the ixNetwork object, topology object, possibly vport etc that were already created as part of the initial partial config.
- What I have is the href for all these objects which I can retrieve from the api browser window, or id's in case of the session.
from ixnetwork.
handles are not supported - the class properties should be used ie session.Ixnetwork.
I am not sure I understood this? If the lookup is by href, then it should accept the href as a string right? Else this function does not seem useful to me. Like I mentioned in my problem statement in Issue#40. The href handle I have is retrieved from the api browser window.
from ixnetwork.
Every object that is multi instance supports a .find() command with options for finding specific objects. For example Sessions allows finding by Id. Vports, topologies can be found by name. IxNetwork is a single instance object so there is no need to find it - you just access the class property on sessions and you have the object.
from ixnetwork.
Just an update on this thread. Figured out one mistake I was doing here. The id in testPlatform.Sessions.find(Id='17') should be integer and not string. If string is provided it gives a random object and not the actual session you request.
from ixnetwork.
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.