Comments (3)
.TestConfig is an property not a method. It returns a TestConfig object with the encapsulated resource.
assistant = SessionAssistant(
IpAddress='10.36.66.49',
RestPort=11009,
# SessionId=1,
LogLevel=SessionAssistant.LOGLEVEL_INFO,
ClearConfig=True)
ixNetwork = assistant.Ixnetwork
rfc2544 = ixNetwork.QuickTest.Rfc2544throughput.add()
test_config = rfc2544.TestConfig
print(test_config)
from ixnetwork_restpy.
The error still occurs whether .TestConfig is treated as a property or a method.
Python 3.4.3 (default, Nov 12 2018, 22:25:49)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ixnetwork_restpy import SessionAssistant
>>> assistant = SessionAssistant(IpAddress='192.168.1.1',RestPort=11009,LogLevel=SessionAssistant.LOGLEVEL_INFO,ClearConfig=True)
2020-08-20 05:19:02 [ixnetwork_restpy.connection] [INFO] using python version 3.4.3 (default, Nov 12 2018, 22:25:49)
[GCC 4.8.4]
2020-08-20 05:19:02 [ixnetwork_restpy.connection] [INFO] using ixnetwork-restpy version 1.0.51
2020-08-20 05:19:02 [ixnetwork_restpy.connection] [WARNING] Verification of certificates is disabled
2020-08-20 05:19:02 [ixnetwork_restpy.connection] [INFO] The package will automatically determine the test tool platform and rest_port using the 192.168.1.1 address.
2020-08-20 05:19:02 [ixnetwork_restpy.connection] [INFO] Connection established to `http://192.168.1.1:11009 on windows`
>>> ixNetwork = assistant.Ixnetwork
>>> rfc2544 = ixNetwork.QuickTest.Rfc2544throughput.add()
>>> test_config = rfc2544.TestConfig
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/rfc2544throughput_2993ee9d3aa1842ea5cbff3edf8a2923.py", line 92, in TestConfig
from ixnetwork_restpy.testplatform.sessions.ixnetwork.quicktest.testconfig_81b75f11abcc4096f93d5a7b6bf03b10 import TestConfig
File "/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/testconfig_81b75f11abcc4096f93d5a7b6bf03b10.py", line 3517
tep_latency_scaleAccLoss=None, Step_step_latency_thresholdAccLoss=None, Step_step_peak_FrameLossUnit=None, Step_step_peak_initialValue=None, Step_step_peak_maxValue=None, Step_step_peak_stepTolerance=None, Step_step_peak_stepValue=None, Step_step_seq_enableAccLoss=None, Step_step_seq_modeAccLoss=None, Step_step_seq_thresholdAccLoss=None, StopTestOnHighLoss=None, SupportedTrafficTypes=None, Tolerance=None, TrafficType=None, TxDelay=None, UnchangedInitial=None, UnchangedValueList=None, UsePercentOffsets=None, UseTiLoss=None):
^
SyntaxError: more than 255 arguments
from ixnetwork_restpy.
Versions of python prior to 3.7 do not support more than 255 args.
The ixnetwork team will be updating the class generator to replace those cases where args > 255 with **kwargs.
from ixnetwork_restpy.
Related Issues (20)
- Generate full report from quicktest
- Issue with updating traffic item attributes with RestPy HOT 5
- Type Annotation HOT 2
- Not all vports find at first iteration of script HOT 2
- ixnetwork.Timeline.CreateTest(Arg2="rfc2544back2back", Arg3="none") returns error
- writing quicktest testconfig works in 1.1.4 not working in 1.1.5 HOT 1
- Read content of Multivalue HOT 7
- PimV4SourcesList HOT 1
- Unable to update traffic flow when test is running. HOT 5
- AppErrors
- enable port FramePreemption Error
- Multivalue Overlay error (PIMv4 Interface.Active)
- InstanceId is not a string HOT 4
- Getting warning "Unable to connect to http://10.10.10.10:11009"
- Locking Up Asyncio Event Loop HOT 2
- System.Exception: InstanceId is not a string
- How to clear the traffic statistics?
- Saving captured packets HOT 3
- Only getting one "Traffic Item Statistics" when I have multiple traffic items
- Can't load File from Server in Subfolder HOT 1
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_restpy.