Giter VIP home page Giter VIP logo

Comments (3)

ajbalogh avatar ajbalogh commented on July 19, 2024

.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.

ATSVTtest avatar ATSVTtest commented on July 19, 2024

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.

ajbalogh avatar ajbalogh commented on July 19, 2024

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)

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.