Skip to content

Commit

Permalink
CLI:apply: call udevadm trigger, using --action=move (Closes: #107122…
Browse files Browse the repository at this point in the history
…0) (LP: #2066344, LP: #2071363)

This will (re)-apply .link files, e.g. to set offloading options, see:
systemd/systemd@0c3af33
  • Loading branch information
slyon committed Jul 3, 2024
1 parent 185b7e7 commit f606c6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions netplan_cli/cli/commands/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ def command_apply(self, run_generate=True, sync=False, exit_on_error=True, state

# Reloading of udev rules happens during 'netplan generate' already
# subprocess.check_call(['udevadm', 'control', '--reload-rules'])
subprocess.check_call(['udevadm', 'trigger', '--attr-match=subsystem=net'])
subprocess.check_call(['udevadm', 'settle'])
subprocess.check_call(['udevadm', 'trigger', '--action=move', '--subsystem-match=net', '--settle'])

# apply any SR-IOV related changes, if applicable
NetplanApply.process_sriov_config(config_manager, exit_on_error)
Expand Down

0 comments on commit f606c6a

Please sign in to comment.