community.network.ce_vxlan_arp 模块 – 管理华为 CloudEngine 设备上 VXLAN 的 ARP 属性。
注意
此模块是 community.network 集合(版本 5.1.0)的一部分。
如果您使用的是 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.network。
要在 playbook 中使用它,请指定:community.network.ce_vxlan_arp。
注意
community.network 集合已被弃用,将从 Ansible 12 中移除。有关更多信息,请参阅讨论线程。
已弃用
- 在以下版本中移除:
- 6.0.0 版本 
- 原因:
- 此集合及其中的所有内容均未维护且已弃用。 
- 替代方案:
- 未知。 
概要
- 管理华为 CloudEngine 设备上 VXLAN 的 ARP 属性。 
别名:network.cloudengine.ce_vxlan_arp
参数
| 参数 | 注释 | 
|---|---|
| 启用 EVN BGP 或 BGP EVPN 来收集主机信息。 选项 
 | |
| 在 BD 中启用 ARP 广播抑制。 选项 
 | |
| 指定 BD(桥接域)ID。该值是一个介于 1 到 16777215 之间的整数。 | |
| 启用 EVN BGP。 选项 
 | |
| 指定 EVN BGP 对等方的 IP 地址。该值采用点分十进制表示法。 | |
| 将本地设备配置为路由反射器 (RR),将其对等方配置为客户端。 选项 
 | |
| 将本地设备配置为 EVN 网络上的路由反射器 (RR)。 选项 
 | |
| 指定 EVN BGP 对等方的源地址。该值采用点分十进制表示法。 | |
| 启用 EVN BGP 或 BGP EVPN 以通告主机信息。 选项 
 | |
| 确定配置是否应存在于设备上。 选项 
 | |
| VBDIF 接口的完整名称,例如 Vbdif100。 | 
注释
注意
- 建议使用 - network_cli连接。
- 此模块也适用于旧版 playbook 的 - local连接。
示例
- name: Vxlan arp module test
  hosts: ce128
  connection: local
  gather_facts: false
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli
  tasks:
  - name: Configure EVN BGP on Layer 2 and Layer 3 VXLAN gateways to establish EVN BGP peer relationships.
    community.network.ce_vxlan_arp:
      evn_bgp: enable
      evn_source_ip: 6.6.6.6
      evn_peer_ip: 7.7.7.7
      provider: "{{ cli }}"
  - name: Configure a Layer 3 VXLAN gateway as a BGP RR.
    community.network.ce_vxlan_arp:
      evn_bgp: enable
      evn_server: enable
      provider: "{{ cli }}"
  - name: Enable EVN BGP on a Layer 3 VXLAN gateway to collect host information.
    community.network.ce_vxlan_arp:
      vbdif_name: Vbdif100
      arp_collect_host: enable
      provider: "{{ cli }}"
  - name: Enable Layer 2 and Layer 3 VXLAN gateways to use EVN BGP to advertise host information.
    community.network.ce_vxlan_arp:
      host_collect_protocol: bgp
      provider: "{{ cli }}"
  - name: Enable ARP broadcast suppression on a Layer 2 VXLAN gateway.
    community.network.ce_vxlan_arp:
      bridge_domain_id: 100
      arp_suppress: enable
      provider: "{{ cli }}"
返回值
通用返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 检查设备上是否进行了更改 返回: 始终 示例:  | |
| 模块执行后配置的键值对 返回: 详细模式 示例:  | |
| 现有配置的键值对 返回: 详细模式 示例:  | |
| 传递到模块的参数的键值对 返回: 详细模式 示例:  | |
| 发送到设备的命令 返回: 始终 示例:  | 
状态
- 此模块将在 6.0.0 版本中移除。[已弃用] 
- 有关更多信息,请参阅已弃用。 
