community / community.network / 2.3.0 / module / pn_vrouter_loopback_interface CLI command to add/remove vrouter-loopback-interface Authors: Pluribus Networks (@rajaspachipulusu17)community.network.pn_vrouter_loopback_interface (2.3.0) — module
Install with ansible-galaxy collection install community.network:==2.3.0
collections: - name: community.network version: 2.3.0
This module can be used to add loopback interface to a vRouter or remove loopback interface from a vRouter.
- name: Add vrouter loopback interface community.network.pn_vrouter_loopback_interface: state: "present" pn_cliswitch: "sw01" pn_vrouter_name: "sw01-vrouter" pn_ip: "192.168.10.1"
- name: Remove vrouter loopback interface community.network.pn_vrouter_loopback_interface: state: "absent" pn_cliswitch: "sw01" pn_vrouter_name: "sw01-vrouter" pn_ip: "192.168.10.1" pn_index: "2"
pn_ip: description: - loopback IP address. required: true type: str state: choices: - present - absent default: present description: - State the action to perform. Use C(present) to add vrouter-loopback-interface and C(absent) to remove vrouter-loopback-interface. required: false type: str pn_index: description: - loopback index from 1 to 255. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_vrouter_name: description: - name of service config. required: true 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 response from the vrouter-loopback-interface command. returned: on error type: list stdout: description: set of responses from the vrouter-loopback-interface command. returned: always type: list