def get_network_attach_config_spec(client_factory, vif_info, index):
    config_spec = client_factory.create('ns0:VirtualMachineConfigSpec')
    vif_spec = _create_vif_spec(client_factory, vif_info)
    config_spec.deviceChange = [vif_spec]
    if vif_info['iface_id'] is not None:
        config_spec.extraConfig = [_iface_id_option_value(client_factory,
                                                          vif_info['iface_id'],
                                                          index)]
    return config_spec
Builds the vif attach config spec.
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/get_network_attach_config_spec