community.network.ce_evpn_bgp module – Manages BGP EVPN configuration on HUAWEI CloudEngine switches.
Note
This module is part of the community.network collection (version 5.1.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.network.
To use it in a playbook, specify: community.network.ce_evpn_bgp.
Note
The community.network collection has been deprecated and will be removed from Ansible 12. See the discussion thread for more information.
DEPRECATED
- Removed in:
- version 6.0.0 
- Why:
- This collection and all content in it is unmaintained and deprecated. 
- Alternative:
- Unknown. 
Synopsis
- This module offers the ability to configure a BGP EVPN peer relationship on HUAWEI CloudEngine switches. 
Aliases: network.cloudengine.ce_evpn_bgp
Parameters
| Parameter | Comments | 
|---|---|
| Enable or disable a device to advertise IP routes imported to a VPN instance to its EVPN instance. Choices: 
 | |
| Configures a device to advertise routes to its BGP EVPN peers. Choices: 
 | |
| Specifies integral AS number. The value is an integer ranging from 1 to 4294967295. | |
| Name of a BGP instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. | |
| Specifies the IPv4 address of a BGP EVPN peer. The value is in dotted decimal notation. | |
| Enable or disable a BGP device to exchange routes with a specified peer or peer group in the address family view. Choices: 
 | |
| Specify the name of a peer group that BGP peers need to join. The value is a string of 1 to 47 case-sensitive characters, spaces not supported. | |
| Manage the state of the resource. Choices: 
 | |
| Associates a specified VPN instance with the IPv4 address family. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. | 
Notes
Note
- Recommended connection is - network_cli.
- This module also works with - localconnections for legacy playbooks.
Examples
- name: Evpn bgp module test
  hosts: cloudengine
  connection: local
  gather_facts: false
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli
  tasks:
  - name: Enable peer address.
    community.network.ce_evpn_bgp:
      bgp_instance: 100
      peer_address: 1.1.1.1
      as_number: 100
      peer_enable: true
      provider: "{{ cli }}"
  - name: Enable peer group arp.
    community.network.ce_evpn_bgp:
      bgp_instance: 100
      peer_group_name: aaa
      advertise_router_type: arp
      provider: "{{ cli }}"
  - name: Enable advertise l2vpn evpn.
    community.network.ce_evpn_bgp:
      bgp_instance: 100
      vpn_name: aaa
      advertise_l2vpn_evpn: enable
      provider: "{{ cli }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| check to see if a change was made on the device Returned: always Sample:  | |
| k/v pairs of configuration after module execution Returned: verbose mode Sample:  | |
| k/v pairs of existing rollback Returned: always Sample:  | |
| k/v pairs of parameters passed into module Returned: always Sample:  | |
| command sent to the device Returned: always Sample:  | 
Status
- This module will be removed in version 6.0.0. [deprecated] 
- For more information see DEPRECATED. 
