ansible / ansible.builtin / v2.9.26 / module / pn_prefix_list_network CLI command to add/remove prefix-list-network | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_prefix_list_network (v2.9.26) — module
pip
Install with pip install ansible==2.9.26
This module is used to add network associated with prefix list and remove networks associated with prefix list.
- name: prefix list network add pn_prefix_list_network: pn_cliswitch: "sw01" pn_name: "foo" pn_network: "172.16.3.1" pn_netmask: "24" state: "present"
- name: prefix list network remove pn_prefix_list_network: pn_cliswitch: "sw01" state: "absent" pn_name: "foo" pn_network: "172.16.3.1" pn_netmask: "24"
state: choices: - present - absent description: - State the action to perform. Use C(present) to create prefix-list-network and C(absent) to delete prefix-list-network. required: true type: str pn_name: description: - Prefix List Name. required: false type: str pn_netmask: description: - netmask of the network associated the prefix list. required: false type: str pn_network: description: - network associated with the 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-network command. returned: on error type: list stdout: description: set of responses from the prefix-list-network command. returned: always type: list