open-traffic-generator/snappi-ixnetwork

AttributeError: 'Api' object has no attribute 'protocol_state'

Praveena46 opened this issue · 1 comments

Version information
The pypi version or branch of snappi-ixnetwork

Describe the bug
I am trying to i=open the IxNetwork API by using Snappi-Ixnetwork and while confighuring the endpoint getting the atribuite error
Traceback (most recent call last):
File "C:\WS\myproject\idea\S32.venv\lib\site-packages\snappi\snappi.py", line 103, in api
return lib.Api(**params)
File "C:\WS\myproject\snappi-ixnetwork\snappi_ixnetwork\snappi_api.py", line 70, in init
self._protocol_state = self.protocol_state()
AttributeError: 'Api' object has no attribute 'protocol_state'

To Reproduce
Steps to reproduce the behavior. Prefer code snippets, pytest test cases.
import snappi

host is IxNetwork API Server

#api = snappi.api(location='https://localhost:443', ext='ixnetwork')
api = snappi.api(location='https://localhost:20320', ext='ixnetwork')

Expected behavior
A clear and concise description of what you expected to happen.

I want to open the ixnetwork API while running the code

Additional context
Add any other context about the problem her