community.network.bigmon_policy 模块 – 创建和删除 bigmon 带外策略。

注意

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

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

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

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

注意

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

已弃用

在以下版本中移除:

6.0.0 版本

原因:

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

替代方案:

未知。

概要

  • 创建和删除 bigmon 带外策略。

别名:network.bigswitch.bigmon_policy

参数

参数

注释

access_token

字符串

Bigmon 访问令牌。如果未设置此项,则使用环境变量 BIGSWITCH_ACCESS_TOKEN

action

字符串

将匹配的数据包转发到交付接口,Drop 用于测量匹配数据包的速率,但不转发到交付接口,捕获数据包并写入 PCAP 文件,或启用 NetFlow 生成。

选项

  • "forward" ← (默认)

  • "drop"

  • "flow-gen"

controller

字符串 / 必需

控制器地址。

delivery_packet_count

字符串

运行策略,直到交付 delivery_packet_count 个数据包。

默认值: 0

duration

字符串

运行策略持续 duration 时间或直到交付 delivery_packet_count 个数据包,以先发生者为准。

默认值: 0

name

字符串 / 必需

策略的名称。

policy_description

字符串

策略描述。

priority

字符串

与此策略关联的优先级。优先级较高的策略优先于优先级较低的策略。

默认值: 100

start_time

字符串

策略生效的日期

默认值: "ansible_date_time.iso8601"

state

字符串

策略是否存在。

选项

  • "present" ← (默认)

  • "absent"

validate_certs

布尔值

如果为 false,则不会验证 SSL 证书。这仅应在使用自签名证书的个人控制设备上使用。

选项

  • false

  • true ← (默认)

示例

- name: Policy to aggregate filter and deliver data center (DC) 1 traffic
  community.network.bigmon_policy:
    name: policy1
    policy_description: DC 1 traffic policy
    action: drop
    controller: '{{ inventory_hostname }}'
    state: present
    validate_certs: false

状态

  • 此模块将在 6.0.0 版本中删除。[已弃用]

  • 更多信息请参见 已弃用

作者

  • Ted (@tedelhourani)