summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b0ab2c0)
Change-Id: I865ccf6b77713f596defeacec3b6cfb17655a5ff
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
else:
self.logger.info("new_vminstance(): adding network adapter "\
"to a network {}".format(nets[0].get('name')))
else:
self.logger.info("new_vminstance(): adding network adapter "\
"to a network {}".format(nets[0].get('name')))
+ nic_type = 'VMXNET3'
+ if net['type'] in ['SR-IOV', 'VF']:
+ nic_type = net['type']
self.add_network_adapter_to_vms(vapp, nets[0].get('name'),
primary_nic_index,
nicIndex,
self.add_network_adapter_to_vms(vapp, nets[0].get('name'),
primary_nic_index,
nicIndex,
+ net,
+ nic_type=nic_type)
nicIndex += 1
# cloud-init for ssh-key injection
nicIndex += 1
# cloud-init for ssh-key injection