Просмотр исходного кода

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 лет назад
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить