>>> from ixnetwork_restpy import SessionAssistant
>>> apiServerIp = '10.10.10.10'
>>> session = SessionAssistant(IpAddress=apiServerIp, SessionName=None, SessionId=None, ApiKey=None, ClearConfig=True, LogLevel="warning")
2023-06-13 09:56:57 [ixnetwork_restpy.connection] [WARNING] Verification of certificates is disabled
Verification of certificates is disabled
2023-06-13 09:56:57 [ixnetwork_restpy.connection] [WARNING] Unable to connect to http://10.10.10.10:11009.
>>>
>>> ixnetwork = session.Ixnetwork
>>> ixnetwork
<ixnetwork_restpy.testplatform.sessions.ixnetwork.ixnetwork.Ixnetwork object at 0x7fb01465b880>
>>> ixnetwork.parent
Sessions[0]: /api/v1/sessions/1
ApplicationType: quicktest
Id: 1
Name:
State: ACTIVE
UserId: 00000000-0000-0000-0000-000000000000
UserName:
Also, I am seeing the session object is getting generated, but I am not sure whether it is valid or not considering the values for Name, UserId and UserName keys in session are either empty/junk.
Hello all,
Using the below script, I am getting warning, "Unable to connect to http://10.10.10.10:11009"
Also, I am seeing the
session
object is getting generated, but I am not sure whether it is valid or not considering the values forName
,UserId
andUserName
keys insession
are either empty/junk.These are my configurations:
Kindly let me know if you need any more information.