community.network.ce_netstream_aging 模块 – 管理华为 CloudEngine 交换机上 NetStream 的超时模式。
注意
此模块是 community.network 集合 (版本 5.1.0) 的一部分。
如果您正在使用 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查是否已安装它,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.network。
要在剧本中使用它,请指定:community.network.ce_netstream_aging。
注意
community.network 集合已弃用,并将从 Ansible 12 中删除。请参阅 讨论主题 以获取更多信息。
已弃用
- 在以下版本中移除:
- 版本 6.0.0 
- 原因:
- 此集合及其中的所有内容均未维护且已弃用。 
- 替代方案:
- 未知。 
概要
- 管理华为 CloudEngine 交换机上 NetStream 的超时模式。 
别名:network.cloudengine.ce_netstream_aging
参数
| 参数 | 注释 | 
|---|---|
| 指定 NetStream 手动超时的槽位号。 | |
| 指定资源的所需状态。 选项 
 | |
| NetStream 超时间隔。如果为活动类型,则间隔为 1-60。如果为非活动类型,则间隔为 5-600。 默认:  | |
| NetStream 超时类型。 选项 
 | |
| 指定 NetStream 超时活动间隔的数据包类型。 选项 
 | 
备注
注意
- 推荐连接方式为 - network_cli。
- 此模块也适用于旧版剧本的 - local连接。
示例
- name: Netstream aging module test
  hosts: cloudengine
  connection: local
  gather_facts: false
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli
  tasks:
  - name: Configure netstream ip timeout active interval , the interval is 40 minutes.
    community.network.ce_netstream_aging:
      timeout_interval: 40
      type: ip
      timeout_type: active
      state: present
      provider: "{{ cli }}"
  - name: Configure netstream vxlan timeout active interval , the interval is 40 minutes.
    community.network.ce_netstream_aging:
      timeout_interval: 40
      type: vxlan
      timeout_type: active
      active_state: present
      provider: "{{ cli }}"
  - name: Delete netstream ip timeout active interval , set the ip timeout interval to 30 minutes.
    community.network.ce_netstream_aging:
      type: ip
      timeout_type: active
      state: absent
      provider: "{{ cli }}"
  - name: Delete netstream vxlan timeout active interval , set the vxlan timeout interval to 30 minutes.
    community.network.ce_netstream_aging:
      type: vxlan
      timeout_type: active
      state: absent
      provider: "{{ cli }}"
  - name: Enable netstream ip tcp session timeout.
    community.network.ce_netstream_aging:
      type: ip
      timeout_type: tcp-session
      state: present
      provider: "{{ cli }}"
  - name: Enable netstream vxlan tcp session timeout.
    community.network.ce_netstream_aging:
      type: vxlan
      timeout_type: tcp-session
      state: present
      provider: "{{ cli }}"
  - name: Disable netstream ip tcp session timeout.
    community.network.ce_netstream_aging:
      type: ip
      timeout_type: tcp-session
      state: absent
      provider: "{{ cli }}"
  - name: Disable netstream vxlan tcp session timeout.
    community.network.ce_netstream_aging:
      type: vxlan
      timeout_type: tcp-session
      state: absent
      provider: "{{ cli }}"
返回值
常用的返回值已在此处 记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 检查设备上是否进行了更改 返回: 始终 示例:  | |
| 模块执行后配置的键值对 返回: 详细模式 示例:  | |
| 现有配置的键值对 返回: 详细模式 示例:  | |
| 传递到模块的参数的键值对 返回: 详细模式 示例:  | |
| 发送到设备的命令 返回: 始终 示例:  | 
状态
- 此模块将在6.0.0版中移除。[已弃用] 
- 更多信息请参见 已弃用。 
