Преглед на файлове

network.dpdk: ovs-vswitchd alternative inversion

By default, the alternative installed by `openvswitch-switch`
packages shadows (higher prio) `openvswitch-switch-dpdk` version,
e.g. for UCA Pike packages:

$ update-alternatives --query ovs-vswitchd
Alternative: /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
Priority: 50
Alternative: /usr/lib/openvswitch-switch/ovs-vswitchd
Priority: 100

To avoid confusion, when DPDK is enabled and ovs-vswitchd-dpdk
should be used, remove the alternative for classic ovs-vswitchd
(which can easily be re-eneabled later if needed).

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/145/head
Alexandru Avadanii преди 6 години
родител
ревизия
f49be1e756
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. +9
    -0
      linux/network/dpdk.sls

+ 9
- 0
linux/network/dpdk.sls Целия файл

@@ -73,6 +73,15 @@ linux_network_dpdk_ovs_option_{{ option }}:

{%- endfor %}

openvswitch_dpdk_ovs_alternative:
alternatives.remove:
- name: ovs-vswitchd
- path: /usr/lib/openvswitch-switch/ovs-vswitchd
- require:
- pkg: openvswitch_dpdk_pkgs
- watch_in:
- service: service_openvswitch

service_openvswitch:
service.running:
- name: openvswitch-switch

Loading…
Отказ
Запис