community / community.general / 0.1.1 / module / pn_vrouter_interface_ip CLI command to add/remove vrouter-interface-ip Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communitycommunity.general.pn_vrouter_interface_ip (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module can be used to add an IP address on interface from a vRouter or remove an IP address on interface from a vRouter.
- name: Add vrouter interface to nic pn_vrouter_interface_ip: state: "present" pn_cliswitch: "sw01" pn_vrouter_name: "foo-vrouter" pn_ip: "2620:0:1651:1::30" pn_netmask: "127" pn_nic: "eth0.4092"
- name: Remove vrouter interface to nic pn_vrouter_interface_ip: state: "absent" pn_cliswitch: "sw01" pn_vrouter_name: "foo-vrouter" pn_ip: "2620:0:1651:1::30" pn_nic: "eth0.4092"
pn_bd: description: - interface Bridge Domain. required: false type: str pn_ip: description: - IP address. required: false type: str state: choices: - present - absent description: - State the action to perform. Use C(present) to addvrouter-interface-ip and C(absent) to remove vrouter-interface-ip. required: true type: str pn_nic: description: - virtual NIC assigned to interface. required: false type: str pn_vnet: description: - interface VLAN VNET. required: false type: str pn_netmask: description: - netmask. 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: 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 vrouter-interface-ip command. returned: on error type: list stdout: description: set of responses from the vrouter-interface-ip command. returned: always type: list