community.network.icx_lldp 模块 – 在 Ruckus ICX 7000 系列交换机上管理 LLDP 配置
注意
此模块是 community.network 集合 (版本 5.1.0) 的一部分。
如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install community.network。
要在剧本中使用它,请指定: community.network.icx_lldp。
注意
community.network 集合已被弃用,并将从 Ansible 12 中移除。请参阅 讨论主题 以了解更多信息。
已弃用
- 移除于:
- 6.0.0 版本 
- 原因:
- 此集合及其中的所有内容均未维护且已弃用。 
- 替代方案:
- 未知。 
概要
- 此模块提供对 ICX 网络设备上 LLDP 服务的声明式管理。 
别名:network.icx.icx_lldp
参数
| 参数 | 注释 | 
|---|---|
| 检查运行配置。这可以设置为环境变量。模块将使用环境变量值(默认值:True),除非通过将其指定为模块参数来覆盖它。 选项 
 | |
| 指定接口 | |
| 要启用 lldp 的以太网端口列表。要添加一系列端口,请使用“to”关键字。请参阅示例。 | |
| 接口的 lldp 配置状态 选项 
 | |
| 全局启用链路层发现协议 (LLDP) 的接收和传输。 选项 
 | 
备注
注意
- 针对 ICX 10.1 进行了测试。 
- 有关使用 ICX 平台的信息,请参阅 ICX OS 平台选项指南。 
示例
- name: Disable LLDP
  community.network.icx_lldp:
    state: absent
- name: Enable LLDP
  community.network.icx_lldp:
    state: present
- name: Disable LLDP on ports 1/1/1 - 1/1/10, 1/1/20
  community.network.icx_lldp:
    interfaces:
     - name:
        - ethernet 1/1/1 to 1/1/10
        - ethernet 1/1/20
       state: absent
    state: present
- name: Enable LLDP on ports 1/1/5 - 1/1/10
  community.network.icx_lldp:
    interfaces:
      - name:
        - ethernet 1/1/1 to 1/1/10
返回值
公共返回值已在此处记录 此处,以下是此模块独有的字段
| 键 | 描述 | 
|---|---|
| 要发送到设备的配置模式命令列表 返回:始终返回,除了使用 Netconf 传输来管理设备的平台。 示例:  | 
状态
- 此模块将在 6.0.0 版本中移除。 *[已弃用]* 
- 有关更多信息,请参阅 已弃用。 
