Sort the list of VFs for easier parsing
This commit is contained in:
parent
e8bd1bf2c4
commit
ca11dbf491
|
@ -1164,10 +1164,10 @@ if enable_networking:
|
||||||
global sriov_vf_list, d_sriov_vf
|
global sriov_vf_list, d_sriov_vf
|
||||||
|
|
||||||
# Add VFs to the list
|
# Add VFs to the list
|
||||||
for vf in new_sriov_vf_list:
|
for vf in sorted(new_sriov_vf_list):
|
||||||
d_sriov_vf[vf] = SRIOVVFInstance.SRIOVVFInstance(vf, zkhandler, config, logger, this_node)
|
d_sriov_vf[vf] = SRIOVVFInstance.SRIOVVFInstance(vf, zkhandler, config, logger, this_node)
|
||||||
|
|
||||||
sriov_vf_list = new_sriov_vf_list
|
sriov_vf_list = sorted(new_sriov_vf_list)
|
||||||
logger.out('{}SR-IOV VF list:{} {}'.format(fmt_blue, fmt_end, ' '.join(sriov_vf_list)), state='i')
|
logger.out('{}SR-IOV VF list:{} {}'.format(fmt_blue, fmt_end, ' '.join(sriov_vf_list)), state='i')
|
||||||
|
|
||||||
if enable_hypervisor:
|
if enable_hypervisor:
|
||||||
|
|
Loading…
Reference in New Issue