community.network.ce_bfd_view module – Manages BFD session view configuration on HUAWEI CloudEngine devices.
Note
This module is part of the community.network collection (version 4.0.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.ce_bfd_view
.
Synopsis
Manages BFD session view configuration on HUAWEI CloudEngine devices.
Parameters
Parameter |
Comments |
---|---|
Enables the BFD session to enter the AdminDown state. By default, a BFD session is enabled. The default value is bool type. Choices:
|
|
Specifies the description of a BFD session. The value is a string of 1 to 51 case-sensitive characters with spaces. |
|
Specifies the local detection multiplier of a BFD session. The value is an integer that ranges from 3 to 50. |
|
Specifies the local discriminator of a BFD session. The value is an integer that ranges from 1 to 16384. |
|
Specifies the minimum interval for sending BFD packets. The value is an integer that ranges from 50 to 1000, in milliseconds. |
|
Specifies the minimum interval for receiving BFD packets. The value is an integer that ranges from 50 to 1000, in milliseconds. |
|
Specifies the remote discriminator of a BFD session. The value is an integer that ranges from 1 to 4294967295. |
|
Specifies the name of a BFD session. The value is a string of 1 to 15 case-sensitive characters without spaces. |
|
Determines whether the config should be present or not on the device. Choices:
|
|
Specifies a priority for BFD control packets. The value is an integer ranging from 0 to 7. The default value is 7, which is the highest priority. |
|
Specifies the WTR time of a BFD session. The value is an integer that ranges from 1 to 60, in minutes. The default value is 0. |
Notes
Note
This module requires the netconf system service be enabled on the remote device being managed.
Recommended connection is
netconf
.This module also works with
local
connections for legacy playbooks.
Examples
- name: Bfd view module test
hosts: cloudengine
connection: local
gather_facts: no
tasks:
- name: Set the local discriminator of a BFD session to 80 and the remote discriminator to 800
community.network.ce_bfd_view:
session_name: atob
local_discr: 80
remote_discr: 800
state: present
- name: Set the minimum interval for receiving BFD packets to 500 ms
community.network.ce_bfd_view:
session_name: atob
min_rx_interval: 500
state: present
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
check to see if a change was made on the device Returned: always Sample: |
|
k/v pairs of configuration after module execution Returned: always Sample: |
|
k/v pairs of existing configuration Returned: always Sample: |
|
k/v pairs of parameters passed into module Returned: always Sample: |
|
commands sent to the device Returned: always Sample: |