community / community.network / 0.2.1 / module / pn_vtep CLI command to create/delete vtep Authors: Pluribus Networks (@rajaspachipulusu17)community.network.pn_vtep (0.2.1) — module
Install with ansible-galaxy collection install community.network:==0.2.1
collections: - name: community.network version: 0.2.1
This module can be used to create a vtep and delete a vtep.
- name: Create vtep pn_vtep: pn_cliswitch: 'sw01' pn_name: 'foo' pn_vrouter_name: 'foo-vrouter' pn_ip: '22.22.22.2' pn_location: 'sw01' pn_virtual_ip: "22.22.22.1"
- name: Delete vtep pn_vtep: pn_cliswitch: 'sw01' state: 'absent' pn_name: 'foo'
pn_ip: description: - Primary IP address. required: false type: str state: choices: - present - absent default: present description: - vtep configuration command. required: false type: str pn_name: description: - vtep name. required: false type: str pn_location: description: - switch name. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_virtual_ip: description: - Virtual/Secondary IP address. required: false type: str pn_vrouter_name: description: - name of the vrouter service. required: false type: str pn_switch_in_cluster: default: true description: - Tells whether switch in cluster or not. required: false type: bool
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 vtep command. returned: on error type: list stdout: description: set of responses from the vtep command. returned: always type: list