Skip to content

Latest commit

 

History

History
155 lines (130 loc) · 6.25 KB

comware_vsi_module.rst

File metadata and controls

155 lines (130 loc) · 6.25 KB

comware_vsi

Added in version 1.8

Configure some command functions of vsi view

parameter required default choices comments
vsi yes Name of the VSI
gateway_intf no vsi view Gateway configuration interface
gateway_subnet no vsi view Gateway configuration subnet
gateway_mask no vsi view Gateway configuration subnet wild card mask
vxlan no Specify a Virtual eXtensible LAN
encap no
  • true
  • false
Ethernet virtual private network module
rd no Configure a route distinguisher
vpn_target_auto no
  • both
  • export
  • import
Configure route targets
state no present
  • present
  • absent
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/


    # - name:  config vsi
  # comware_vsi: vsi=vpna gateway_intf=Vsi-interface1 gateway_subnet=10.1.1.0 gateway_mask=0.0.0.255 vxlan=10 \
  encap=true rd=auto vpn_target_auto=both username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# - name:  delelte vsi configs
  # comware_vsi: vsi=vpna state=default username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

l2vpn needs to enbled before config vsi view.If you want to use vsi gateway interface, it must be exist , you can use interface module to create it.when giving vsi and state is default , it will delete the given vsi config all.