#!/usr/bin/env python3
# Copyright (C) 2020 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
# from core.svcs.cli_cue.nv import nv as main

if __name__ == "__main__":
    try:
        from core.scripts.nv_env_config import nv_env_apply
        nv_env_apply()
        
        from core.infra.cue.nvl import main
        main()
    except KeyboardInterrupt:
        import sys
        sys.stdout.flush()
        sys.stderr.write("\nKeyboard Interrupt received, terminating...\n")
        sys.stdout.flush()
        sys.exit(0)
