'Create QOS policy group on the backend if appropriate.'

def provision_qos_policy_group(self, qos_policy_group_info):

    if (qos_policy_group_info is None):
        return
    legacy = qos_policy_group_info.get('legacy')
    if (legacy is not None):
        return
    spec = qos_policy_group_info.get('spec')
    if (spec is not None):
        if (not self.qos_policy_group_exists(spec['policy_name'])):
            self.qos_policy_group_create(spec['policy_name'], spec['max_throughput'])
        else:
            self.qos_policy_group_modify(spec['policy_name'], spec['max_throughput'])
