def get_legacy_qos_policy(extra_specs):
 external_policy_name = extra_specs.get('netapp:qos_policy_group')
 if (external_policy_name is None):
  return None
 return dict(policy_name=external_policy_name)

def get_legacy_qos_policy ( extra_specs ) : external_policy_name = extra_specs . get ( 'netapp:qos_policy_group' ) if ( external_policy_name is None ) : return None return dict ( policy_name = external_policy_name )
return legacy qos policy information if present in extra specs .