OpenIxia / ixnetwork_restpy

The IxNetwork python client.
https://openixia.github.io/ixnetwork_restpy/#/
MIT License
30 stars 16 forks source link

Getting warning "Unable to connect to http://10.10.10.10:11009" #74

Open SohanTirpude opened 1 year ago

SohanTirpude commented 1 year ago

Hello all,

Using the below script, I am getting warning, "Unable to connect to http://10.10.10.10:11009"

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

These are my configurations:

ixia-tcl: 22.5
IxNetwork: 9.0.1915.16
ixnetwork-restpy: 1.1.9

Kindly let me know if you need any more information.