�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l j j
Z d d l m Z d d
l m Z d d l m Z e j � Z d e f d � � YZ d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust certifiedt supported_bys8
module: na_ontap_qos_policy_group
short_description: NetApp ONTAP manage policy group in Quality of Service.
extends_documentation_fragment:
- netapp.na_ontap
version_added: '2.8'
author: NetApp Ansible Team (@carchi8py) <[email protected]>
description:
- Create, destroy, modify, or rename QoS policy group on NetApp ONTAP.
options:
state:
choices: ['present', 'absent']
description:
- Whether the specified policy group should exist or not.
default: 'present'
name:
description:
- The name of the policy group to manage.
vserver:
description:
- Name of the vserver to use.
from_name:
description:
- Name of the existing policy group to be renamed to name.
max_throughput:
description:
- Maximum throughput defined by this policy.
min_throughput:
description:
- Minimum throughput defined by this policy.
force:
type: bool
default: False
description:
- Setting to 'true' forces the deletion of the workloads associated with the policy group along with the policy group.
sQ
- name: create qos policy group
na_ontap_qos_policy_group:
state: present
name: policy_1
vserver: policy_vserver
max_throughput: 800KB/s,800iops
min_throughput: 100iops
hostname: 10.193.78.30
username: admin
password: netapp1!
- name: modify qos policy group max throughput
na_ontap_qos_policy_group:
state: present
name: policy_1
vserver: policy_vserver
max_throughput: 900KB/s,800iops
min_throughput: 100iops
hostname: 10.193.78.30
username: admin
password: netapp1!
- name: delete qos policy group
na_ontap_qos_policy_group:
state: absent
name: policy_1
vserver: policy_vserver
hostname: 10.193.78.30
username: admin
password: netapp1!
t
N( t NetAppModule( t
AnsibleModule( t to_nativet NetAppOntapQosPolicyGroupc B` se e Z d Z d � Z d
d � Z d � Z d
d � Z d � Z d � Z d � Z
d � Z d � Z RS( s;
Create, delete, modify and rename a policy group.
c C` sM t j � | _ | j j t d t d t d d d d d g d d � d t d t d d � d
t d t d d � d t d t d d � d t d t d d � d
t d t d d � d t d t d d d t � � � t d | j d t � | _ t � | _
| j
j | j j � | _
t t k r1| j j d d � n t j d | j � | _ d S( s>