96c1788e94
Fix use of OVS DPDK context by direct use of methods on context for OVS table values. For modern OVS versions that require the PCI address of the DPDK device for type=dpdk ports, use a hash of the PCI address for the port name rather than the index of the PCI device in the current list of devices to use; this is idempotent in the event that the configuration changes and new devices appear in the list of devices to use for DPDK. Only set OVS table values if the value has changed; OVS will try to re-allocate hugepage memory, irrespective as to whether the table value actually changed. Switch to using /run/libvirt-vhost-user for libvirt created DPDK sockets, allowing libvirt to directly create the socket as part of instance creation; Use systemd-tmpfiles to ensure that the vhost-user subdirectory is re-created on boot with the correct permissions. Scan data-port and dpdk-bond-mappings for PCI devices to use for DPDK to avoid having to replicate all PCI devices in data-port configuration when DPDK bonds are in use. Change-Id: I2964046bc8681fa870d61c6cd23b6ad6fee47bf4
36 lines
1.0 KiB
INI
36 lines
1.0 KiB
INI
# mitaka
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
# Config managed by neutron-openvswitch charm
|
|
###############################################################################
|
|
[ovs]
|
|
enable_tunneling = True
|
|
local_ip = {{ local_ip }}
|
|
bridge_mappings = {{ bridge_mappings }}
|
|
{% if enable_dpdk -%}
|
|
datapath_type = netdev
|
|
vhostuser_socket_dir = /run/libvirt-vhost-user
|
|
{% endif -%}
|
|
|
|
[agent]
|
|
tunnel_types = {{ overlay_network_type }}
|
|
l2_population = {{ l2_population }}
|
|
enable_distributed_routing = {{ distributed_routing }}
|
|
prevent_arp_spoofing = {{ prevent_arp_spoofing }}
|
|
{% if veth_mtu -%}
|
|
veth_mtu = {{ veth_mtu }}
|
|
{% endif -%}
|
|
polling_interval = {{ polling_interval }}
|
|
{% if extension_drivers -%}
|
|
extensions = {{ extension_drivers }}
|
|
{% endif -%}
|
|
|
|
[securitygroup]
|
|
{% if neutron_security_groups and not enable_dpdk -%}
|
|
enable_security_group = True
|
|
firewall_driver = {{ firewall_driver }}
|
|
{% else -%}
|
|
enable_security_group = False
|
|
{% endif -%}
|