ansible / ansible.builtin / v2.5.15 / module / pn_vrouterlbif CLI command to add/remove vrouter-loopback-interface. | "added in version" 2.2 of ansible.builtin" Authors: Pluribus Networks (@amitsi) preview | supported by communityansible.builtin.pn_vrouterlbif (v2.5.15) — module
pip
Install with pip install ansible==2.5.15
Execute vrouter-loopback-interface-add, vrouter-loopback-interface-remove commands.
Each fabric, cluster, standalone switch, or virtual network (VNET) can provide its tenants with a virtual router (vRouter) service that forwards traffic between networks and implements Layer 3 protocols.
- name: add vrouter-loopback-interface pn_vrouterlbif: state: 'present' pn_vrouter_name: 'ansible-vrouter' pn_interface_ip: '104.104.104.1'
- name: remove vrouter-loopback-interface pn_vrouterlbif: state: 'absent' pn_vrouter_name: 'ansible-vrouter' pn_interface_ip: '104.104.104.1'
state: choices: - present - absent description: - State the action to perform. Use 'present' to add vrouter loopback interface and 'absent' to remove vrouter loopback interface. required: true pn_index: description: - Specify the interface index from 1 to 255. pn_cliswitch: description: - Target switch(es) to run the cli on. required: false pn_clipassword: description: - Provide login password if user is not root. required: false pn_cliusername: description: - Provide login username if user is not root. required: false pn_interface_ip: description: - Specify the IP address. required: true pn_vrouter_name: description: - Specify the name of the vRouter. required: true
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(s). returned: always type: str stderr: description: The set of error responses from the vrouterlb command. returned: on error type: list stdout: description: The set of responses from the vrouterlb command. returned: always type: list