Added in version 1.8
Manage VXLAN to VSI mappings and Tunnel mappings to VXLAN
parameter | required | default | choices | comments |
---|---|---|---|---|
vxlan | yes | VXLAN that will be mapped to the VSI | ||
vsi | yes | Name of the VSI | ||
descr | yes | description of the VSI | ||
tunnels | no | Desired Tunnel interface ID or a list of IDs. Any tunnel not in the list will be removed if it exists | ||
state | no | present |
|
Desired state for the interface configuration |
hostname | yes | IP Address or hostname of the Comware v7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | NETCONF port number | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# ensure VXLAN and VSI do not exist - comware_vxlan: vxlan=100 vsi=VSI_VXLAN_100 tunnels=20 state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # ensure VXLAN 100 exists and is mapped to VSI VSI_VXLAN_100 with only tunnel interface 20 - comware_vxlan: vxlan=100 vsi=VSI_VXLAN_100 tunnels=20 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # ensure 3 tunnels mapped to the vxlan - comware_vxlan: vxlan: 100 vsi: VSI_VXLAN_100 tunnels: ['20', '21', '22'] username: "{{ username }}" password: "{{ password }}" hostname: "{{ inventory_hostname }}"
Note
VXLAN tunnels should be created before using this module.state=absent removes the vsi and associated vxlan mapping if they bothexist.Remember that is a 1 to 1 mapping between vxlan IDs and VSIs