'Return the volume parameters from extra specs.'

def _get_volume_params_from_specs(self, specs):

    opts_capability = {'smarttier': False, 'smartcache': False, 'smartpartition': False, 'thin_provisioning_support': False, 'thick_provisioning_support': False, 'hypermetro': False, 'replication_enabled': False, 'replication_type': 'async'}
    opts_value = {'policy': None, 'partitionname': None, 'cachename': None}
    opts_associate = {'smarttier': 'policy', 'smartcache': 'cachename', 'smartpartition': 'partitionname'}
    opts = self._get_opts_from_specs(opts_capability, opts_value, opts_associate, specs)
    opts = smartx.SmartX().get_smartx_specs_opts(opts)
    opts = replication.get_replication_opts(opts)
    LOG.debug('volume    opts    %(opts)s.', {'opts': opts})
    return opts
