File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -583,3 +583,21 @@ command:
583
583
mokutil --sb-state || true
584
584
_summary: Check secure boot state
585
585
_purpose: Output whether secure boot is enabled or disabled
586
+
587
+ unit: template
588
+ template-resource: device
589
+ template-filter: device.category == 'NETWORK' and device.interface != ''
590
+ template-id: info/sriov-check__interface
591
+ plugin: attachment
592
+ category_id: com.canonical.plainbox::info
593
+ id: info/sriov-check_{interface}
594
+ estimated_duration: 0.1
595
+ imports: from com.canonical.plainbox import manifest
596
+ requires:
597
+ manifest.has_sriov == 'True'
598
+ command:
599
+ interface="{interface}"
600
+ sriov_file="/sys/class/net/$interface/device/sriov_numvfs"
601
+ [ -f "$sriov_file" ]
602
+ _summary: Check SR-IOV capability for network interface {interface}
603
+ _purpose: Check if network interface {interface} is SR-IOV enabled by verifying sriov_numvfs file exists
Original file line number Diff line number Diff line change @@ -2,3 +2,8 @@ unit: manifest entry
2
2
id: has_secure_boot
3
3
_name: Secure Boot support
4
4
value-type: bool
5
+
6
+ unit: manifest entry
7
+ id: has_sriov
8
+ _name: SR-IOV support
9
+ value-type: bool
Original file line number Diff line number Diff line change @@ -9,9 +9,12 @@ environ: LXD_TEMPLATE LXD_ROOTFS
9
9
flags: also-after-suspend
10
10
_summary: SRIOV LXD container test for network device {interface}
11
11
estimated_duration: 120.0
12
+ imports: from com.canonical.plainbox import manifest
12
13
requires:
13
14
executable.name == 'lxc'
14
15
package.name == 'lxd' or package.name == 'lxd-installer' or snap.name == 'lxd'
16
+ manifest.has_sriov == 'True'
17
+ depends: info/sriov-check_{interface}
15
18
command:
16
19
sriov.py --debug --interface {interface} lxd
17
20
user: root
@@ -31,9 +34,12 @@ environ: LXD_TEMPLATE KVM_IMAGE
31
34
flags: also-after-suspend
32
35
_summary: SRIOV LXD VM test for network device {interface}
33
36
estimated_duration: 180.0
37
+ imports: from com.canonical.plainbox import manifest
34
38
requires:
35
39
executable.name == 'lxc'
36
40
package.name == 'lxd' or package.name == 'lxd-installer' or snap.name == 'lxd'
41
+ manifest.has_sriov == 'True'
42
+ depends: info/sriov-check_{interface}
37
43
command:
38
44
sriov.py --debug --interface {interface} lxdvm
39
45
user: root
You can’t perform that action at this time.
0 commit comments