Browse Source

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

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/146/head
Alexandru Avadanii 6 years ago
parent
commit
ce9242e180
No account linked to committer's email address
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      linux/network/dpdk.sls

+ 11
- 0
linux/network/dpdk.sls View File

@@ -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…
Cancel
Save