Store PHY MAC for VFs and restore after free

This commit is contained in:
2021-06-22 00:54:32 -04:00
parent 60e1da09dd
commit e623909a43
4 changed files with 4 additions and 1 deletions

View File

@ -848,6 +848,7 @@ def unset_sriov_vf_vm(zkhandler, node, vf):
update_list = [
(('node.sriov.vf', node, 'sriov_vf.used', vf), 'False'),
(('node.sriov.vf', node, 'sriov_vf.used_by', vf), ''),
(('node.sriov.vf', node, 'sriov_vf.mac', vf), zkhandler.read(('node.sriov.vf', node, 'sriov_vf.phy_mac', vf)))
]
zkhandler.write(update_list)