Commit 9adb323
committed
fix: Fix "interface_pci_id" role option
Cause: The introduction of this feature in commit 2b0bb1b was broken:
The new `interface_pci_id` option was not passed to `firewall_lib`. The
integration test case was very shallow and did not verify the success of
the operation.
Consequence: Calling the role with `interface_pci_id` had no effect,
that setting was ignored.
Fix: Pass the option to the module. Rework the test to add a positive
assertion that the interface mapped to the given PCI ID actually appears
in the nftables/iptables rules.
Also replace the hardcoded 1af4:0001 ID in the test with runtime
detection. That *happens* to be the ID of QEMU's virtio card, but this is
neither obvious nor reliable nor does it apply to other environments
such as Testing Farm.
Fixes #2771 parent 24620c0 commit 9adb323
2 files changed
+41
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
35 | | - | |
| 52 | + | |
36 | 53 | | |
37 | 54 | | |
38 | 55 | | |
| |||
42 | 59 | | |
43 | 60 | | |
44 | 61 | | |
45 | | - | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
49 | | - | |
| 66 | + | |
50 | 67 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 68 | + | |
54 | 69 | | |
| 70 | + | |
55 | 71 | | |
56 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
57 | 80 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 81 | + | |
61 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
62 | 91 | | |
63 | 92 | | |
64 | 93 | | |
65 | 94 | | |
66 | 95 | | |
67 | 96 | | |
68 | 97 | | |
69 | | - | |
| 98 | + | |
70 | 99 | | |
71 | 100 | | |
72 | 101 | | |
| |||
0 commit comments