open-traffic-generator / snappi

Open Traffic Generator SDK in Python and Go
MIT License
68 stars 7 forks source link

snappi 0.12.1 HttpApi object has no attribute 'transmit_state' #210

Open plaviz opened 11 months ago

plaviz commented 11 months ago

[snappi version] pip3 list | grep snappi snappi 0.12.1 snappi-convergence 0.2.3 snappi-ixnetwork 0.9.1

Create a script hello.py from https://otg.dev/clients/snappi/

~/scripts$ python3 hello.py /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( Traceback (most recent call last): File "/home/phille/scripts/hello.py", line 26, in ts = api.transmit_state() AttributeError: 'HttpApi' object has no attribute 'transmit_state'

Workaround: The above script works when downgrading snappi to version 0.11.17

Is there any document that trace the changes in the library?