ce_evpn_bgp – Manages BGP EVPN configuration on HUAWEI CloudEngine switches¶
New in version 2.4.
Synopsis¶
- This module offers the ability to configure a BGP EVPN peer relationship on HUAWEI CloudEngine switches.
Parameters¶
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: no
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli
  tasks:
  - name: Enable peer address.
    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.
    ce_evpn_bgp:
      bgp_instance: 100
      peer_group_name: aaa
      advertise_router_type: arp
      provider: "{{ cli }}"
  - name: Enable advertise l2vpn evpn.
    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:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Li Yanfeng (@QijunPan)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
