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
# ----------------------------------------------------------------------------------------------------------------------
Raise an appropriate error if the supplied 'name' is not valid.
dataset/ETHPy150Open saltstack/salt/salt/modules/napalm_network.py/__virtual__--crossover with--dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_fs.py/raise_if_config_name_not_valid