community.network.ce_vxlan_vap 模块 – 管理华为 CloudEngine 设备上的 VXLAN 虚拟接入点。
注意
此模块是 community.network 集合(版本 5.1.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install community.network
。
要在 playbook 中使用它,请指定:community.network.ce_vxlan_vap
。
注意
community.network 集合已弃用,将从 Ansible 12 中删除。有关更多信息,请参见讨论主题。
已弃用
- 删除时间:
版本 6.0.0
- 原因:
此集合及其中的所有内容均未维护且已弃用。
- 替代方案:
未知。
概要
管理华为 CloudEngine 设备上的 VXLAN 虚拟接入点。
别名:network.cloudengine.ce_vxlan_vap
参数
参数 |
注释 |
---|---|
指定绑定到 BD(桥域)的 VLAN。该值是一个从 1 到 4094 的整数。 |
|
指定桥域 ID。该值是一个从 1 到 16777215 的整数。 |
|
当 encapsulation 为“dot1q”时,指定外部 VLAN 标签中的 VLAN ID。当 encapsulation 为“qinq”时,指定一个外部 VLAN ID,以便 Layer 2 子接口接收双标记数据包。该值是一个从 1 到 4094 的整数。 |
|
指定允许通过 Layer 2 子接口的数据包的封装类型。 选项
|
|
指定子接口全名,例如 “10GE1/0/41.1”。该值是一个包含 1 到 63 个字符(不区分大小写,支持空格)的字符串。 |
|
当 encapsulation 为“qinq”时,指定 Layer 2 子接口接收的双标记数据包的内部 VLAN ID。该值是一个从 1 到 4094 的整数。 |
|
确定设备上是否存在配置。 选项
|
注释
注意
此模块需要远程被管理设备上启用 netconf 系统服务。
推荐连接方式是
netconf
。此模块还适用于旧版 playbook 的
local
连接。
示例
- name: Vxlan vap module test
hosts: ce128
connection: local
gather_facts: false
tasks:
- name: Create a mapping between a VLAN and a BD
community.network.ce_vxlan_vap:
bridge_domain_id: 100
bind_vlan_id: 99
- name: Bind a Layer 2 sub-interface to a BD
community.network.ce_vxlan_vap:
bridge_domain_id: 100
l2_sub_interface: 10GE2/0/20.1
- name: Configure an encapsulation type on a Layer 2 sub-interface
community.network.ce_vxlan_vap:
l2_sub_interface: 10GE2/0/20.1
encapsulation: dot1q
返回值
常见返回值记录在 此处,以下是此模块特有的字段
键 |
描述 |
---|---|
检查设备上是否进行了更改 返回: 始终 示例: |
|
模块执行后的配置的键/值对 返回: 详细模式 示例: |
|
现有配置的键/值对 返回: 详细模式 示例: |
|
传递到模块的参数的键/值对 返回: 详细模式 示例: |
|
发送到设备的命令 返回: 始终 示例: |
状态
此模块将在 6.0.0 版本中移除。[已弃用]
更多信息请参见 已弃用。