New in version 2.2.
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.
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| pn_clipassword | no | Provide login password if user is not root. |
||
| pn_cliswitch | no | Target switch(es) to run the cli on. |
||
| pn_cliusername | no | Provide login username if user is not root. |
||
| pn_index | no | Specify the interface index from 1 to 255. |
||
| pn_interface_ip | yes | Specify the IP address. |
||
| pn_vrouter_name | yes | Specify the name of the vRouter. |
||
| state | yes |
| State the action to perform. Use 'present' to add vrouter loopback interface and 'absent' to remove vrouter loopback interface. |
- 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'
Common return values are documented here Common Return Values, the following are the fields unique to this module:
| name | description | returned | type | sample |
|---|---|---|---|---|
| changed | Indicates whether the CLI caused changes on the target. | always | bool | |
| command | The CLI command run on the target node(s). | |||
| stderr | The set of error responses from the vrouterlb command. | on error | list | |
| stdout | The set of responses from the vrouterlb command. | always | list |
For more information on what this means please read Core Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/pn_vrouterlbif_module.html