Skip to content

Latest commit

 

History

History
189 lines (166 loc) · 8.72 KB

comware_bgp_group_module.rst

File metadata and controls

189 lines (166 loc) · 8.72 KB

comware_bgp_group

Added in version 1.8

create and config bgp group

parameter required default choices comments
bgp yes Autonomous system number <1-4294967295>
instance no Specify a BGP instance by its name
group no Create a peer group
group_type no
  • external
  • internal
Group type , include external and internal
peer no Specify BGP peers , a group or peer ID
peer_connect_intf no false Set interface name to be used as session's output interface
peer_in_group no Specify a peer-group
address_family no
  • l2vpn
Specify an address family , only l2vpn can be config here
evpn no false
  • true
  • false
Specify the EVPN address family
policy_vpn_target no enable
  • enable
  • disable
Filter VPN routes with VPN-Target attribute
reflect_client no false
  • false
Configure the peers as route reflectors
peer_group_state no
  • false
Enable or disable the specified peers
state no present
  • present
  • default
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:  config bgp and create group
  # comware_bgp_group: bgp=200 group=evpn  group_type=internal   username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
# - name:  config peer connet interface
  # comware_bgp_group: bgp=200 peer=evpn peer_connect_intf=LoopBack0  username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
# - name:  join peer in the group
  # comware_bgp_group: bgp=200 peer=1.1.1.1 peer_in_group=evpn  username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
# - name:  join peer in the group
  # comware_bgp_group: bgp=200 peer=3.3.3.3 peer_in_group=evpn  username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
# - name:  create address-family view and config it
  # comware_bgp_group: bgp=200 address_family=l2vpn evpn=true policy_vpn_target=disable peer=evpn reflect_client=true  peer_group_state=true  \
  username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
# - name:  remove bgp
  # comware_bgp_group: bgp=200 state=default username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

Connect interface must be exist in the device if you want use it.If you want join a peer in a group , the group must be already exist.bgp with and without instance are in different view , carefully config it.