1 diff -ruN a/sysinv/sysinv/sysinv/sysinv/puppet/interface.py b/sysinv/sysinv/sysinv/sysinv/puppet/interface.py
2 --- a/sysinv/sysinv/sysinv/sysinv/puppet/interface.py 2020-05-19 09:09:32.685727476 +0000
3 +++ b/sysinv/sysinv/sysinv/sysinv/puppet/interface.py 2020-05-19 09:10:34.225727195 +0000
5 # others share the same pci-sriov sysfs enabling mechanism
6 sriovfs_path = ("/sys/class/net/%s/device/sriov_numvfs" %
7 get_interface_port_name(context, iface))
8 - options['pre_up'] = "echo 0 > %s; echo %s > %s" % (
9 - sriovfs_path, iface['sriov_numvfs'], sriovfs_path)
10 + sriovpf_up_cmd = ("ifconfig %s up" %
11 + get_interface_port_name(context, iface))
12 + options['pre_up'] = "echo 0 > %s; echo %s > %s; %s" % (
13 + sriovfs_path, iface['sriov_numvfs'], sriovfs_path, sriovpf_up_cmd)
14 elif interface_class == constants.INTERFACE_CLASS_PCI_PASSTHROUGH:
15 sriovfs_path = ("/sys/class/net/%s/device/sriov_numvfs" %
16 get_interface_port_name(context, iface))