Skip to content

Latest commit

 

History

History
198 lines (172 loc) · 9.28 KB

comware_evpn_module.rst

File metadata and controls

198 lines (172 loc) · 9.28 KB

comware_evpn

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
  • present
  • absent
Desired state for the interface configuration
rd no false Route distinguisher
rtentry no Route target
addrfamily no
  • ipv4
  • ipv6
  • vpn
  • evpn
Address family
rttype no
  • import
  • export
RT type
asnum no
  • md5
  • hmac_sha_1
  • hmac_sha_256
  • hmac_sha_384
  • hmac_sha_384
Autonomous System number
sessaf no
  • ipv4
  • ipv6
Address family of session
ipaddr no false
  • true
  • false
Address of session
ipadd no Remote IPv4 or IPv6 address
mask no Mask of session address
aftype no
  • ipv4uni
  • ipv4mul
  • mdt
  • vpnv4
  • ipv6uni
  • ipv6mul
  • vpnv6
  • l2vpn
  • l2vpn_evpn
  • link_state
  • ipv4mvpn
  • ipv4flosp
  • vpnv4flosp
  • ipv6flosp
  • vpnv6flosp
Address Family Identifier
family no
  • ipv4uni
  • ipv4mul
  • mdt
  • vpnv4
  • ipv6uni
  • ipv6mul
  • vpnv6
  • l2vpn
  • l2vpn_evpn
  • link_state
  • ipv4mvpn
  • ipv4flosp
  • vpnv4flosp
  • ipv6flosp
  • vpnv6flosp
Address Family Identifier of Neighbor
del_bgp no
  • true
  • false
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.