def __virtual__():

    if HAS_NAPALM and 'proxy' in __opts__:
        return __virtualname__
    else:
        return (False, 'The module NET (napalm_network) cannot be loaded: \
                napalm or proxy could not be loaded.')

# ----------------------------------------------------------------------------------------------------------------------
# helper functions -- will not be exported
# ----------------------------------------------------------------------------------------------------------------------
NAPALM library must be installed for this module to work.
dataset/ETHPy150Open saltstack/salt/salt/modules/napalm_network.py/__virtual__