def __virtual__():
    return 'smtp' if 'smtp.send_msg' in __salt__ else False
Consume the AgentAPI instance from the AgentExtensionsManager
dataset/ETHPy150Open saltstack/salt/salt/states/smtp.py/__virtual__--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/agent/l2/agent_extension.py/AgentCoreResourceExtension.consume_api