def get_topics(): topics = [] topics.append('q-agent-notifier-port-update') topics.append('q-agent-notifier-network-delete') topics.append('q-agent-notifier-tunnel-update') topics.append('q-agent-notifier-security_group-update') topics.append('q-agent-notifier-dvr-update') if context.NeutronAPIContext()()['l2_population']: topics.append('q-agent-notifier-l2population-update') return topics
def ovs_ctxt(self): ovs_ctxt = { 'core_plugin': 'neutron.plugins.ml2.plugin.Ml2Plugin', 'neutron_plugin': 'ovs', 'neutron_security_groups': self.neutron_security_groups, 'config': '/etc/neutron/plugins/ml2/ml2_conf.ini' } neutron_api_settings = context.NeutronAPIContext()() ovs_ctxt['neutron_security_groups'] = \ neutron_api_settings['neutron_security_groups'] ovs_ctxt['l2_population'] = neutron_api_settings['l2_population'] ovs_ctxt['distributed_routing'] = neutron_api_settings['enable_dvr'] ovs_ctxt['overlay_network_type'] = \ neutron_api_settings['overlay_network_type'] ovs_ctxt['prevent_arp_spoofing'] = config('prevent-arp-spoofing') return ovs_ctxt
def use_l3ha(): return not is_container() and context.NeutronAPIContext()().get( 'enable_l3ha', False)
DPDKDeviceContext(), neutron_ovs_context.RemoteRestartContext( ['neutron-plugin', 'neutron-control']) ], }), (DPDK_INTERFACES, { 'services': ['dpdk', 'openvswitch-switch'], 'contexts': [DPDKDeviceContext()], }), ]) SRIOV_RESOURCE_MAP = OrderedDict([ (NEUTRON_SRIOV_AGENT_CONF, { 'services': ['neutron-sriov-agent'], 'contexts': [neutron_ovs_context.OVSPluginContext(), context.NeutronAPIContext()], }), ]) TEMPLATES = 'templates/' INT_BRIDGE = "br-int" EXT_BRIDGE = "br-ex" DATA_BRIDGE = 'br-data' def install_packages(): # NOTE(jamespage): install neutron-common package so we always # get a clear signal on which OS release is # being deployed apt_install(filter_installed_packages(['neutron-common']), fatal=True) # NOTE(jamespage):
def use_dvr(): return context.NeutronAPIContext()()['enable_dvr']