コード例 #1
0
 def setUp(self):
     super(TestDPDKDeviceContext, self).setUp(context,
                                              TO_PATCH + DPDK_PATCH)
     self.config.side_effect = self.test_config.get
     self.test_context = context.DPDKDeviceContext()
     self.resolve_dpdk_bridges.return_value = self._dpdk_bridges
     self.resolve_dpdk_bonds.return_value = self._dpdk_bonds
コード例 #2
0
    }),
    (OVS_CONF, {
        'services': ['neutron-openvswitch-agent'],
        'contexts': [neutron_ovs_context.OVSPluginContext()],
    }),
    (OVS_DEFAULT, {
        'services': ['openvswitch-switch'],
        'contexts': [
            neutron_ovs_context.OVSDPDKDeviceContext(),
            neutron_ovs_context.RemoteRestartContext(
                ['neutron-plugin', 'neutron-control'])
        ],
    }),
    (DPDK_INTERFACES, {
        'services': ['dpdk'],
        'contexts': [neutron_ovs_context.DPDKDeviceContext()],
    }),
    (PHY_NIC_MTU_CONF, {
        'services': ['os-charm-phy-nic-mtu'],
        'contexts': [context.PhyNICMTUContext()],
    }),
])
METADATA_RESOURCE_MAP = OrderedDict([
    (NEUTRON_METADATA_AGENT_CONF, {
        'services': ['neutron-metadata-agent'],
        'contexts': [
            neutron_ovs_context.SharedSecretContext(),
            neutron_ovs_context.APIIdentityServiceContext()
        ],
    }),
])
コード例 #3
0
 def setUp(self):
     super(TestDPDKDeviceContext, self).setUp(context,
                                              TO_PATCH + DPDK_PATCH)
     self.config.side_effect = self.test_config.get
     self.test_context = context.DPDKDeviceContext()