noc.core.mongo.connection

Module Contents

noc.core.mongo.connection.logger
noc.core.mongo.connection._connected = False
noc.core.mongo.connection.connect()
Connect to the mongo database

New in version 19.3.

Returns:
noc.core.mongo.connection.is_connected()
Check if mongo database connection is active
Returns:True if connect() has been called, False otherwise