You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ixnetwork API Server: 9.30.2212.7
ixnetwork-restpy: 1.3.0
ix-os: 9.30.3001.12
i use ixnetwork-restpy to control the ixianetwork api server in windows
since upgrade from ix-os9.10 to ix-os 9.30, sometimes, the server start to response the code 202, state EXCEPTION, and can not recover
I have tried to use TestPlatform().Sessions.find().remove(), but it didn't work, can not resolve this Execution by ixnetwork-restpy
Any method to resolve this problem? i do not want to reload the Ixnetwork API Server
this is the code and traceback:
from ixnetwork_restpy import SessionAssistant
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
Password=self.Password, LogLevel=SessionAssistant.LOGLEVEL_INFO,
ClearConfig=True)
File "F:\pycharm_project\func_auto_test_box\keywords\Testerlibrary\TesterTrafficStatistics.py", line 444, in cleanup_session
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
File "C:\python38\lib\site-packages\ixnetwork_restpy\assistants\sessions\sessionassistant.py", line 113, in init
self._ixnetwork.NewConfig()
File "C:\python38\lib\site-packages\ixnetwork_restpy\testplatform\sessions\ixnetwork\ixnetwork.py", line 2116, in NewConfig
return self._execute("newConfig", payload=payload, response_object=None)
File "C:\python38\lib\site-packages\ixnetwork_restpy\base.py", line 452, in _execute
response = self._connection._execute(url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 289, in _execute
return self._send_recv("POST", url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 572, in _send_recv
return self._poll()
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 640, in _poll
return self._process_response_status_code(
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 476, in _process_response_status_code
raise BadRequestError(message, response.status_code)
Before the problem happened, i use these api:
(1) ixnetwork = self.session_assistant.Ixnetwork
capture_config = ixnetwork.Vport.find(AssignedTo=capture_port).Capture
capture_config.HardwareEnabled = True
capture_config.SoftwareEnabled = True
capture_config.Start()
(2) tmp_traffic = ixnetwork.Traffic.TrafficItem.find(Name=tmp_name)
tmp_traffic.StopStatelessTraffic()
step1 and step2 between about 5 second
The text was updated successfully, but these errors were encountered:
Have you ever found a solution to this problem? I'm having the same issue
sadly not, the engineer advise me to check ixia state before using ixianetwork api , however , it doesn't work
process = TestPlatform(ip).Sessions.find().Ixnetwork.Globals.find().ProgressDialog.find()
if process.IsOpen:
logger.error("there are process remaining")
time.sleep(10)
xxxxxxxx
Ixnetwork API Server: 9.30.2212.7
ixnetwork-restpy: 1.3.0
ix-os: 9.30.3001.12
i use ixnetwork-restpy to control the ixianetwork api server in windows
since upgrade from ix-os9.10 to ix-os 9.30, sometimes, the server start to response the code 202, state EXCEPTION, and can not recover
I have tried to use TestPlatform().Sessions.find().remove(), but it didn't work, can not resolve this Execution by ixnetwork-restpy
Any method to resolve this problem? i do not want to reload the Ixnetwork API Server
this is the code and traceback:
from ixnetwork_restpy import SessionAssistant
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
Password=self.Password, LogLevel=SessionAssistant.LOGLEVEL_INFO,
ClearConfig=True)
File "F:\pycharm_project\func_auto_test_box\keywords\Testerlibrary\TesterTrafficStatistics.py", line 444, in cleanup_session
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
File "C:\python38\lib\site-packages\ixnetwork_restpy\assistants\sessions\sessionassistant.py", line 113, in init
self._ixnetwork.NewConfig()
File "C:\python38\lib\site-packages\ixnetwork_restpy\testplatform\sessions\ixnetwork\ixnetwork.py", line 2116, in NewConfig
return self._execute("newConfig", payload=payload, response_object=None)
File "C:\python38\lib\site-packages\ixnetwork_restpy\base.py", line 452, in _execute
response = self._connection._execute(url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 289, in _execute
return self._send_recv("POST", url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 572, in _send_recv
return self._poll()
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 640, in _poll
return self._process_response_status_code(
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 476, in _process_response_status_code
raise BadRequestError(message, response.status_code)
Before the problem happened, i use these api:
(1) ixnetwork = self.session_assistant.Ixnetwork
capture_config = ixnetwork.Vport.find(AssignedTo=capture_port).Capture
capture_config.HardwareEnabled = True
capture_config.SoftwareEnabled = True
capture_config.Start()
(2) tmp_traffic = ixnetwork.Traffic.TrafficItem.find(Name=tmp_name)
tmp_traffic.StopStatelessTraffic()
step1 and step2 between about 5 second
The text was updated successfully, but these errors were encountered: