#!/usr/share/venvs/netq-agent/bin/python
# Copyright 2016, 2017 Cumulus Networks, Inc.  All Rights reserved.
#
# This software is subject to the Cumulus Networks End User License Agreement
# available at the following locations:
#
# Internet: https://cumulusnetworks.com/downloads/eula/latest/view/
# Cumulus Linux systems: /usr/share/cumulus/EULA.txt

import sys
import traceback
import syslog

from netq_lib.common import utils
from netq_agent.cmd import agent

if __name__ == '__main__':
    try:
        sys.exit(agent.main())
    except Exception as ex:  # pylint: disable=broad-except
        logger = utils.get_logger('netq-agent', None)
        logger.exception(ex)
        sys.exit(1)
