Fixed: * The udev-rules template is not tested * Wrong unicode character in the template leads to udev ignoring the rule completely * The template is unable to be rendered due to absent import * udev is not retrigerred with new rules Change-Id: I134b5e49b883afcc5e34feaaa561d7ca70192796 Closes-Bug: PROD-16649pull/133/head
@@ -1 +1 @@ | |||
KERNEL==”tap[0-9a-z\-]*", RUN+="/sbin/ip link set %k txqueuelen {{ network.tap_custom_txqueuelen }}" | |||
KERNEL=="tap[0-9a-z\-]*", RUN+="/sbin/ip link set %k txqueuelen {{ tap_custom_txqueuelen }}" |
@@ -373,5 +373,19 @@ NetworkManager: | |||
- source: salt://linux/files/60-net-txqueue.rules | |||
- mode: 755 | |||
- template: jinja | |||
- defaults: | |||
tap_custom_txqueuelen: {{ network.tap_custom_txqueuelen }} | |||
udev_reload_rules: | |||
cmd.run: | |||
- name: "/bin/udevadm control --reload-rules" | |||
- onchanges: | |||
- file: /etc/udev/rules.d/60-net-txqueue.rules | |||
udev_retrigger: | |||
cmd.run: | |||
- name: "/bin/udevadm trigger --attr-match=subsystem=net" | |||
- onchanges: | |||
- udev_reload_rules | |||
{%- endif %} |
@@ -8,6 +8,7 @@ linux: | |||
hostname: linux | |||
fqdn: linux.ci.local | |||
network_manager: false | |||
tap_custom_txqueuelen: 10000 | |||
interface: | |||
eth0: | |||
enabled: true |