Skip to content

Commit

Permalink
Bring up all interfaces after creating VFs (so that bond interface can
Browse files Browse the repository at this point in the history
come up after VFs are added).

Change-Id: I4b299a8578483907f3cd2eef706f4d09ecc8fdf4
Partial-Bug: 1573255
  • Loading branch information
srajag committed May 19, 2016
1 parent 085823c commit 69e568b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabfile/tasks/provision.py
Expand Up @@ -2600,7 +2600,9 @@ def setup_sriov_interfaces(host_string, host_config, bondinfo):
'''
def enable_vf(iface, vf):
with settings(host_string=host_string):
str = 'echo %s > /sys/class/net/%s/device/sriov_numvfs' % (vf,
# Keep this command consistent with
# contrail_provisioning/common/base.py
str = 'echo %s > /sys/class/net/%s/device/sriov_numvfs; sleep 2; ifup -a' % (vf,
iface)
sudo(str)

Expand Down

0 comments on commit 69e568b

Please sign in to comment.