Ensure used/used_by are set on creation

This commit is contained in:
Joshua Boniface 2021-06-21 01:25:38 -04:00
parent bff6d71e18
commit e8bd1bf2c4
1 changed files with 2 additions and 0 deletions

View File

@ -1137,6 +1137,8 @@ if enable_networking:
(('node.sriov.vf', myhostname, 'sriov_vf.config.link_state', vfphy), vf['link_state']),
(('node.sriov.vf', myhostname, 'sriov_vf.config.trust', vfphy), vf['trust']),
(('node.sriov.vf', myhostname, 'sriov_vf.config.query_rss', vfphy), vf['query_rss_en']),
(('node.sriov.vf', myhostname, 'sriov_vf.used', vfphy), False),
(('node.sriov.vf', myhostname, 'sriov_vf.used_by', vfphy), ''),
])
# Append the device to the list of VFs
sriov_vf_list.append(vfphy)