¡@

Home 

OpenStack Study: openstack_driver.py

OpenStack Index

**** CubicPower OpenStack Study ****

def get_openstack_security_group_driver():

    if CONF.security_group_api.lower() == 'nova':

        return importutils.import_object(NOVA_DRIVER)

    elif CONF.security_group_api.lower() in ('neutron', 'quantum'):

        return importutils.import_object(NEUTRON_DRIVER)

    else:

        return importutils.import_object(CONF.security_group_api)

**** CubicPower OpenStack Study ****

def is_neutron_security_groups():

    return CONF.security_group_api.lower() in ('neutron', 'quantum')