ansible / ansible.builtin / v2.9.27 / module / pn_prefix_list CLI command to create/delete prefix-list | "added in version" 2.9 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_prefix_list (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
This module can be used to create or delete prefix list.
- name: Create prefix list pn_prefix_list: pn_cliswitch: "sw01" pn_name: "foo" pn_scope: "local" state: "present"
- name: Delete prefix list pn_prefix_list: pn_cliswitch: "sw01" pn_name: "foo" state: "absent"
state: choices: - present - absent default: present description: - State the action to perform. Use C(present) to create prefix-list and C(absent) to delete prefix-list. required: false type: str pn_name: description: - Prefix List Name. required: true type: str pn_scope: choices: - local - fabric description: - scope of prefix-list. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. 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 prefix-list command. returned: on error type: list stdout: description: set of responses from the prefix-list command. returned: always type: list