Added in version 1.8
config instance rely ip vpn-instance and route-distinguisher
parameter | required | default | choices | comments |
---|---|---|---|---|
vpn_instance | yes | Name of the VPN instance | ||
ASN | no | |||
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 | The Comware port used to connect to the switch | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
- name: create and config ip vpn-instance comware_vpn_instance: vpn_instance=vpna vpn_instance_rd=1:1 address_family=ipv4 vpn_target=2:2 vpn_target_mode=both \ username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: create and config ip vpn-instance comware_vpn_instance: vpn_instance=vpna vpn_instance_rd=1:1 address_family=evpn vpn_target=1:1 vpn_target_mode=both \ username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: create and config ip vpn-instance comware_vpn_instance: vpn_instance=vpna state=default username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
some of the instance configs can be set before ip vpn-instance and route-distinguisher alreadyexists .state default or absent will make the device default config , if you want delete instance insanceautonomous_system and instance_instance are both required . if you want delete vpn_instance,provide vpn_instance is OK.