community.network.pn_ipv6security_raguard 模块 – 用于创建/修改/删除 ipv6security-raguard 的 CLI 命令

注意

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

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

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

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

注意

community.network 集合已弃用,并将从 Ansible 12 中删除。有关详细信息,请参阅讨论帖

已弃用

删除时间:

版本 6.0.0

原因:

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

替代方案:

未知。

概要

  • 此模块可用于添加 ipv6 RA Guard 策略、更新 ipv6 RA Guard 策略和删除 ipv6 RA Guard 策略。

别名:network.netvisor.pn_ipv6security_raguard

参数

参数

注释

pn_access_list

字符串

源 IP 的 RA Guard 访问列表。

pn_cliswitch

字符串

要在其上运行 CLI 的目标交换机。

pn_device

字符串

RA Guard 设备。主机或路由器。

选择

  • "host"

  • "router"

pn_name

字符串 / 必需

RA Guard 策略名称。

pn_prefix_list

字符串

RA Guard 前缀列表。

pn_router_priority

字符串

RA Guard 路由器优先级。

选择

  • "low"

  • "medium"

  • "high"

state

字符串

ipv6security-raguard 配置命令。

选择

  • "present" ← (默认)

  • "update"

  • "absent"

示例

- name: Ipv6 security ragurad create
  community.network.pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_device: "host"

- name: Ipv6 security ragurad create
  community.network.pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo1"
    pn_device: "host"
    pn_access_list: "sample"
    pn_prefix_list: "sample"
    pn_router_priority: "low"

- name: Ipv6 security ragurad modify
  community.network.pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo1"
    pn_device: "router"
    pn_router_priority: "medium"
    state: "update"

- name: Ipv6 security ragurad delete
  community.network.pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    state: "absent"

返回值

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

描述

changed

布尔值

指示 CLI 是否在目标上引起了更改。

返回:始终

command

字符串

在目标节点上运行的 CLI 命令。

返回:始终

stderr

列表 / 元素=字符串

来自 ipv6security-raguard 命令的一组错误响应。

返回:发生错误时

stdout

列表 / 元素=字符串

来自 ipv6security-raguard 命令的一组响应。

返回:始终

状态

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

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

作者

  • Pluribus Networks (@rajaspachipulusu17)