Skip to content

Commit ce9242e

Browse files
committed
network.dpdk: Add dpdk.service dep to ovs unit
Signed-off-by: Alexandru Avadanii <[email protected]>
1 parent 1ba71ad commit ce9242e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

linux/network/dpdk.sls

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ openvswitch_dpdk_pkgs:
4141
- openvswitch-switch
4242
- bridge-utils
4343
44+
{# create drop-in dpdk dependency for openvswitch-switch (ovsdb-server) #}
45+
/etc/systemd/system/openvswitch-switch.service.d/dpdk.conf:
46+
file.managed:
47+
- makedirs: true
48+
- require:
49+
- pkg: openvswitch_dpdk_pkgs
50+
- contents: |
51+
[Unit]
52+
Requires=dpdk.service
53+
After=dpdk.service
54+
4455
linux_network_dpdk_ovs_service:
4556
cmd.run:
4657
- name: "ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true"

0 commit comments

Comments
 (0)