瀏覽代碼

network.dpdk: Add dpdk.service dep to ovs unit

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/146/head
Alexandru Avadanii 6 年之前
父節點
當前提交
ce9242e180
No account linked to committer's email address
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      linux/network/dpdk.sls

+ 11
- 0
linux/network/dpdk.sls 查看文件

@@ -41,6 +41,17 @@ openvswitch_dpdk_pkgs:
- openvswitch-switch
- bridge-utils

{# create drop-in dpdk dependency for openvswitch-switch (ovsdb-server) #}
/etc/systemd/system/openvswitch-switch.service.d/dpdk.conf:
file.managed:
- makedirs: true
- require:
- pkg: openvswitch_dpdk_pkgs
- contents: |
[Unit]
Requires=dpdk.service
After=dpdk.service

linux_network_dpdk_ovs_service:
cmd.run:
- name: "ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true"

Loading…
取消
儲存