community / community.network / 5.0.2 / module / pn_dhcp_filter CLI command to create/modify/delete dhcp-filter Authors: Pluribus Networks (@rajaspachipulusu17)community.network.pn_dhcp_filter (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
This module can be used to create, delete and modify a DHCP filter config.
- name: Dhcp filter create community.network.pn_dhcp_filter: pn_cliswitch: "sw01" pn_name: "foo" state: "present" pn_trusted_ports: "1"
- name: Dhcp filter delete community.network.pn_dhcp_filter: pn_cliswitch: "sw01" pn_name: "foo" state: "absent" pn_trusted_ports: "1"
- name: Dhcp filter modify community.network.pn_dhcp_filter: pn_cliswitch: "sw01" pn_name: "foo" state: "update" pn_trusted_ports: "1,2"
state: choices: - present - absent - update description: - State the action to perform. Use C(present) to create dhcp-filter and C(absent) to delete dhcp-filter C(update) to modify the dhcp-filter. required: true type: str pn_name: description: - name of the DHCP filter. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_trusted_ports: description: - trusted ports of dhcp config. 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 dhcp-filter command. returned: on error type: list stdout: description: set of responses from the dhcp-filter command. returned: always type: list