ansible / ansible.builtin / v2.8.13 / module / pn_cpu_class CLI command to create/modify/delete cpu-class | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_cpu_class (v2.8.13) — module
pip
Install with pip install ansible==2.8.13
This module can be used to create, modify and delete CPU class information.
- name: create cpu class pn_cpu_class: pn_cliswitch: 'sw01' state: 'present' pn_name: 'icmp' pn_rate_limit: '1000' pn_scope: 'local'
- name: delete cpu class pn_cpu_class: pn_cliswitch: 'sw01' state: 'absent' pn_name: 'icmp'
- name: modify cpu class pn_cpu_class: pn_cliswitch: 'sw01' state: 'update' pn_name: 'icmp' pn_rate_limit: '2000'
state: choices: - present - absent - update description: - State the action to perform. Use C(present) to create cpu-class and C(absent) to delete cpu-class C(update) to modify the cpu-class. required: true type: str pn_name: description: - name for the CPU class. required: false type: str pn_scope: choices: - local - fabric description: - scope for CPU class. required: false pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_rate_limit: description: - rate-limit for CPU class. required: false type: str pn_hog_protect: choices: - disable - enable - enable-and-drop description: - enable host-based hog protection. required: false type: str
changed: description: indicates whether the CLI caused changes on the target. returned: always type: bool command: description: the CLI command run on the target node. returned: always type: str stderr: description: set of error responses from the cpu-class command. returned: on error type: list stdout: description: set of responses from the cpu-class command. returned: always type: list