• 博客
  • Ansible 社区论坛
  • 文档
Ansible Logo
Ansible 社区文档
Ansible

Ansible 入门

  • Ansible 入门指南
  • 执行环境入门指南

安装、升级和配置

  • 安装指南
  • Ansible 移植指南

使用 Ansible

  • 构建 Ansible 清单
  • 使用 Ansible 命令行工具
  • 使用 Ansible playbook
  • 使用 Ansible vault 保护敏感数据
  • 使用 Ansible 模块和插件
  • 使用 Ansible 集合
  • 在 Windows 和 BSD 上使用 Ansible
  • Ansible 提示和技巧

为 Ansible 作出贡献

  • Ansible 社区指南
  • Ansible 集合贡献者指南
  • ansible-core 贡献者指南
  • 高级贡献者指南
  • Ansible 文档样式指南

扩展 Ansible

  • 开发者指南

常见的 Ansible 场景

  • 旧版公共云指南

网络自动化

  • 网络入门
  • 网络高级主题
  • 网络开发者指南

Ansible Galaxy

  • Galaxy 用户指南
  • Galaxy 开发者指南

参考和附录

  • 集合索引
    • Amazon 命名空间中的集合
    • Ansible 命名空间中的集合
    • Arista 命名空间中的集合
    • AWX 命名空间中的集合
    • Azure 命名空间中的集合
    • Check_point 命名空间中的集合
    • Chocolatey 命名空间中的集合
    • Cisco 命名空间中的集合
    • Cloud 命名空间中的集合
    • Cloudscale_ch 命名空间中的集合
    • Community 命名空间中的集合
      • Community.Aws
      • Community.Ciscosmb
      • Community.Crypto
      • Community.Digitalocean
      • Community.Dns
      • Community.Docker
      • Community.General
      • Community.Grafana
      • Community.Hashi_Vault
      • Community.Hrobot
      • Community.Library_Inventory_Filtering_V1
      • Community.Libvirt
      • Community.Mongodb
      • Community.Mysql
      • Community.Network
        • 描述
        • 插件索引
      • Community.Okd
      • Community.Postgresql
      • Community.Proxysql
      • Community.Rabbitmq
      • Community.Routeros
      • Community.Sap_Libs
      • Community.Sops
      • Community.Vmware
      • Community.Windows
      • Community.Zabbix
    • Containers 命名空间中的集合
    • Cyberark 命名空间中的集合
    • Dellemc 命名空间中的集合
    • F5networks 命名空间中的集合
    • Fortinet 命名空间中的集合
    • Frr 命名空间中的集合
    • Gluster 命名空间中的集合
    • Google 命名空间中的集合
    • Grafana 命名空间中的集合
    • Hetzner 命名空间中的集合
    • Hpe 命名空间中的集合
    • Ibm 命名空间中的集合
    • Ieisystem 命名空间中的集合
    • Infinidat 命名空间中的集合
    • Infoblox 命名空间中的集合
    • Inspur 命名空间中的集合
    • Junipernetworks 命名空间中的集合
    • Kaytus 命名空间中的集合
    • Kubernetes 命名空间中的集合
    • Kubevirt 命名空间中的集合
    • Lowlydba 命名空间中的集合
    • Mellanox 命名空间中的集合
    • Microsoft 命名空间中的集合
    • Netapp 命名空间中的集合
    • Netapp_eseries 命名空间中的集合
    • Netbox 命名空间中的集合
    • Ngine_io 命名空间中的集合
    • Openstack 命名空间中的集合
    • Openvswitch 命名空间中的集合
    • Ovirt 命名空间中的集合
    • Purestorage 命名空间中的集合
    • Sensu 命名空间中的集合
    • Servicenow 命名空间中的集合
    • Splunk 命名空间中的集合
    • T_systems_mms 命名空间中的集合
    • Telekom_mms 命名空间中的集合
    • Theforeman 命名空间中的集合
    • Vmware 命名空间中的集合
    • Vultr 命名空间中的集合
    • Vyos 命名空间中的集合
    • Wti 命名空间中的集合
  • 所有模块和插件的索引
  • Playbook 关键字
  • 返回值
  • Ansible 配置设置
  • 控制 Ansible 的行为:优先级规则
  • YAML 语法
  • Python 3 支持
  • 解释器发现
  • 发布和维护
  • 测试策略
  • 健全性测试
  • 常见问题
  • 词汇表
  • Ansible 参考:模块实用程序
  • 特殊变量
  • Red Hat Ansible Automation Platform
  • Ansible Automation Hub
  • 记录 Ansible 输出

路线图

  • Ansible 路线图
  • ansible-core 路线图




Ansible
  • 集合索引
  • Community 命名空间中的集合
  • Community.Network
  • community.network.icx_linkagg 模块 – 在 Ruckus ICX 7000 系列交换机上管理链路聚合组


community.network.icx_linkagg 模块 – 在 Ruckus ICX 7000 系列交换机上管理链路聚合组

注意

此模块是 community.network 集合 (版本 5.1.0) 的一部分。

如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。

要安装它,请使用:ansible-galaxy collection install community.network。

要在 playbook 中使用它,请指定:community.network.icx_linkagg。

注意

community.network 集合已弃用,并将从 Ansible 12 中移除。有关更多信息,请参阅 讨论主题。

  • 已弃用

  • 概要

  • 参数

  • 备注

  • 示例

  • 返回值

  • 状态

已弃用

在以下版本中移除:

版本 6.0.0

原因:

此集合及其中的所有内容均未维护且已弃用。

替代方案:

未知。

概要

  • 此模块提供对 Ruckus ICX 网络设备上链路聚合组的声明式管理。

别名:network.icx.icx_linkagg

参数

参数

注释

aggregate

列表 / 元素=字符串

链路聚合定义列表。

check_running_config

布尔值

检查运行配置。这可以设置为环境变量。除非通过将其指定为模块参数来覆盖,否则模块将使用环境变量值(默认:True)。

选项

  • false

  • true

group

整数

端口通道链路聚合组的通道组编号。范围 1-255 或设置为“auto”以自动生成 LAG ID

members

列表 / 元素=字符串

链路聚合组的端口成员或范围列表。

mode

字符串

链路聚合组的模式。

选项

  • "dynamic"

  • "static"

name

字符串

LAG 的名称

state

字符串

链路聚合组的状态。

选项

  • "present"

  • "absent"

check_running_config

布尔值

检查运行配置。这可以设置为环境变量。除非通过将其指定为模块参数来覆盖,否则模块将使用环境变量值(默认:True)。

选项

  • false

  • true ← (默认)

group

整数

端口通道链路聚合组的通道组编号。范围 1-255 或设置为“auto”以自动生成 LAG ID

members

列表 / 元素=字符串

链路聚合组的端口成员或范围列表。

mode

字符串

链路聚合组的模式。

选项

  • "dynamic"

  • "static"

name

字符串

LAG 的名称

purge

布尔值

清除未在 *aggregate* 参数中定义的链接。

选项

  • false ← (默认)

  • true

state

字符串

链路聚合组的状态。

选项

  • "present" ← (默认)

  • "absent"

备注

注意

  • 针对 ICX 10.1 测试。

  • 有关使用 ICX 平台的信息,请参阅 ICX OS 平台选项指南。

示例

- name: Create static link aggregation group
  community.network.icx_linkagg:
    group: 10
    mode: static
    name: LAG1

- name: Create link aggregation group with auto id
  community.network.icx_linkagg:
    group: auto
    mode: dynamic
    name: LAG2

- name: Delete link aggregation group
  community.network.icx_linkagg:
    group: 10
    state: absent

- name: Set members to LAG
  community.network.icx_linkagg:
    group: 200
    mode: static
    members:
      - ethernet 1/1/1 to 1/1/6
      - ethernet 1/1/10

- name: Remove links other then LAG id 100 and 3 using purge
  community.network.icx_linkagg:
    aggregate:
      - { group: 3}
      - { group: 100}
    purge: true

返回值

常用的返回值已在 此处 记录,以下是此模块特有的字段

键

描述

commands

列表 / 元素=字符串

要发送到设备的配置模式命令列表

返回:始终返回,除了使用 Netconf 传输来管理设备的平台。

示例: ["lag LAG1 dynamic id 11", "ports ethernet 1/1/1 to 1/1/6", "no ports ethernet 1/1/10", "no lag LAG1 dynamic id 12"]

状态

  • 此模块将在 6.0.0 版本中移除。*已弃用*

  • 有关更多信息,请参阅 已弃用。

作者

  • Ruckus Wireless (@Commscope)

集合链接

  • 问题跟踪器
  • 代码库(源代码)
上一页 下一页

© 版权所有 Ansible 项目贡献者。 上次更新于 2024 年 12 月 19 日。