Added in version 1.8
Manage VXLAN tunnels on Comware 7 devices
parameter | required | default | choices | comments |
---|---|---|---|---|
tunnel | yes | Tunnel interface identifier | ||
global_src | no | Global source address for VXLAN tunnels | ||
src | no | Source address or interface for the tunnel | ||
dest | no | Destination address for the tunnel | ||
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 tunnel interface 20 exists for vxlan and configures a global source address (although it's not used here) - comware_vxlan_tunnel: tunnel=20 global_src=10.10.10.10 src=10.1.1.1 dest=10.1.1.2 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # ensure tunnel interface 21 - comware_vxlan_tunnel: tunnel=21 src=10.1.1.1 dest=10.1.1.2 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # ensure tunnel interface 21 does not exist (does not have to be a vxlan tunnel) - comware_vxlan_tunnel: tunnel=21 state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
state=absent removes the tunnel interface if it existsstate=absent can also remove non-vxlan tunnel interfaces