mitel_ommclient2.connection module¶
- class mitel_ommclient2.connection.Connection(host, port=12621)¶
Bases:
objectEstablishes a connection to the OM Application XML Interface
- Parameters:
host – Hostname or IP address of OMM
port – Port of the OM Application XML plain TCP port
- Usage::
>>> c = Connection("omm.local") >>> c.connect() >>> c.send(request) >>> r = c.recv()
- close()¶
Shut down connection
- connect()¶
Establishes the connection
- request(request)¶
Sends a request, waits for response and return response
- Parameters:
request – Request object
- Usage::
>>> r = c.request(mitel_ommclient2.messages.Ping()) >>> r.name 'PingResp'
- class mitel_ommclient2.connection.SSLConnection(host, port=12622)¶
Bases:
ConnectionEstablishes a secure connection to the OM Application XML Interface
Please not that this class might be useless on your system since new versions of OpenSSL don’t ship with TLVv1.2 or lower anymore which are the protocols supported by OMM.
- Parameters:
host – Hostname or IP address of OMM
port – Port of the OM Application XML ssl TCP port
Usage:
See
Connection