Added in version 1.8
Configure the EVPN issue to be applied to the device.
parameter | required | default | choices | comments |
---|---|---|---|---|
name | no | Full name of the interface | ||
vrf | no | false | VPN instance name. | |
state | no | present |
|
Desired state for the interface configuration |
rd | no | false | Route distinguisher | |
rtentry | no | Route target | ||
addrfamily | no |
|
Address family | |
rttype | no |
|
RT type | |
asnum | no |
|
Autonomous System number | |
sessaf | no |
|
Address family of session | |
ipaddr | no | false |
|
Address of session |
ipadd | no | Remote IPv4 or IPv6 address | ||
mask | no | Mask of session address | ||
aftype | no |
|
Address Family Identifier | |
family | no |
|
Address Family Identifier of Neighbor | |
del_bgp | no |
|
Whether delete BGP | |
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/ |
# configure evpn rt - comware_evpn: vrf=ali1 addrfamily=ipv4 rttype=export rtentry=30:2 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # delete bgp - comware_evpn: del_bgp=true state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }} comware_evpn: bgp_name=10 vrf=200 asnum=120 mask=255 ipaddr=1.1.1.1 sessaf=ipv4 state=present username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
The asnum is unsigned integer,and the value range is 1 to 4294967295.The type of vrf is string,the length is 1 to 31 characters.The type of mask is Unsigned integer,and the value range is 0 to 128,or 255.For non-dynamic peers, this is 255.For IPv4 dynamic peers,this is 0 to 32.For IPv6 dynamic peers, this is 0 to 128.Dynamic peers are not supported.if you want to config bgp evpn ,please use comware_bgp_global.py to create bgp process first.