mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Minor fixes (#25059)
1) Examples: Remove double space between "option:" and "value" 2) Documentation: Fix rendering usses 3) Documentation: Remove `required: true` to match argspec
This commit is contained in:
parent
ce584571e8
commit
3740ad2828
27 changed files with 287 additions and 291 deletions
|
@ -116,34 +116,34 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Radius authentication Server Basic settings"
|
||||
ce_aaa_server:
|
||||
state: present
|
||||
authen_scheme_name: test1
|
||||
first_authen_mode: radius
|
||||
radius_server_group: test2
|
||||
state: present
|
||||
authen_scheme_name: test1
|
||||
first_authen_mode: radius
|
||||
radius_server_group: test2
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo radius authentication Server Basic settings"
|
||||
ce_aaa_server:
|
||||
state: absent
|
||||
authen_scheme_name: test1
|
||||
first_authen_mode: radius
|
||||
radius_server_group: test2
|
||||
state: absent
|
||||
authen_scheme_name: test1
|
||||
first_authen_mode: radius
|
||||
radius_server_group: test2
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Hwtacacs accounting Server Basic settings"
|
||||
ce_aaa_server:
|
||||
state: present
|
||||
acct_scheme_name: test1
|
||||
accounting_mode: hwtacacs
|
||||
hwtacas_template: test2
|
||||
state: present
|
||||
acct_scheme_name: test1
|
||||
accounting_mode: hwtacacs
|
||||
hwtacas_template: test2
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo hwtacacs accounting Server Basic settings"
|
||||
ce_aaa_server:
|
||||
state: absent
|
||||
acct_scheme_name: test1
|
||||
accounting_mode: hwtacacs
|
||||
hwtacas_template: test2
|
||||
state: absent
|
||||
acct_scheme_name: test1
|
||||
accounting_mode: hwtacacs
|
||||
hwtacas_template: test2
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -185,56 +185,56 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config local user when use local scheme"
|
||||
ce_aaa_server_host:
|
||||
state: present
|
||||
local_user_name: user1
|
||||
local_password: 123456
|
||||
state: present
|
||||
local_user_name: user1
|
||||
local_password: 123456
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo local user when use local scheme"
|
||||
ce_aaa_server_host:
|
||||
state: absent
|
||||
local_user_name: user1
|
||||
local_password: 123456
|
||||
state: absent
|
||||
local_user_name: user1
|
||||
local_password: 123456
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config radius server ip"
|
||||
ce_aaa_server_host:
|
||||
state: present
|
||||
radius_group_name: group1
|
||||
raduis_server_type: Authentication
|
||||
radius_server_ip: 10.1.10.1
|
||||
radius_server_port: 2000
|
||||
radius_server_mode: Primary-server
|
||||
radius_vpn_name: _public_
|
||||
state: present
|
||||
radius_group_name: group1
|
||||
raduis_server_type: Authentication
|
||||
radius_server_ip: 10.1.10.1
|
||||
radius_server_port: 2000
|
||||
radius_server_mode: Primary-server
|
||||
radius_vpn_name: _public_
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo radius server ip"
|
||||
ce_aaa_server_host:
|
||||
state: absent
|
||||
radius_group_name: group1
|
||||
raduis_server_type: Authentication
|
||||
radius_server_ip: 10.1.10.1
|
||||
radius_server_port: 2000
|
||||
radius_server_mode: Primary-server
|
||||
radius_vpn_name: _public_
|
||||
state: absent
|
||||
radius_group_name: group1
|
||||
raduis_server_type: Authentication
|
||||
radius_server_ip: 10.1.10.1
|
||||
radius_server_port: 2000
|
||||
radius_server_mode: Primary-server
|
||||
radius_vpn_name: _public_
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config hwtacacs server ip"
|
||||
ce_aaa_server_host:
|
||||
state: present
|
||||
hwtacacs_template: template
|
||||
hwtacacs_server_ip: 10.10.10.10
|
||||
hwtacacs_server_type: Authorization
|
||||
hwtacacs_vpn_name: _public_
|
||||
state: present
|
||||
hwtacacs_template: template
|
||||
hwtacacs_server_ip: 10.10.10.10
|
||||
hwtacacs_server_type: Authorization
|
||||
hwtacacs_vpn_name: _public_
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo hwtacacs server ip"
|
||||
ce_aaa_server_host:
|
||||
state: absent
|
||||
hwtacacs_template: template
|
||||
hwtacacs_server_ip: 10.10.10.10
|
||||
hwtacacs_server_type: Authorization
|
||||
hwtacacs_vpn_name: _public_
|
||||
state: absent
|
||||
hwtacacs_template: template
|
||||
hwtacacs_server_ip: 10.10.10.10
|
||||
hwtacacs_server_type: Authorization
|
||||
hwtacacs_vpn_name: _public_
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -145,40 +145,40 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config ACL"
|
||||
ce_acl:
|
||||
state: present
|
||||
acl_name: 2200
|
||||
state: present
|
||||
acl_name: 2200
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo ACL"
|
||||
ce_acl:
|
||||
state: delete_acl
|
||||
acl_name: 2200
|
||||
state: delete_acl
|
||||
acl_name: 2200
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config ACL base rule"
|
||||
ce_acl:
|
||||
state: present
|
||||
acl_name: 2200
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
time_range: wdz_acl_time
|
||||
state: present
|
||||
acl_name: 2200
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
time_range: wdz_acl_time
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "undo ACL base rule"
|
||||
ce_acl:
|
||||
state: absent
|
||||
acl_name: 2200
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
time_range: wdz_acl_time
|
||||
state: absent
|
||||
acl_name: 2200
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
time_range: wdz_acl_time
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -291,40 +291,40 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config ACL"
|
||||
ce_acl_advance:
|
||||
state: present
|
||||
acl_name: 3200
|
||||
state: present
|
||||
acl_name: 3200
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo ACL"
|
||||
ce_acl_advance:
|
||||
state: delete_acl
|
||||
acl_name: 3200
|
||||
state: delete_acl
|
||||
acl_name: 3200
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config ACL advance rule"
|
||||
ce_acl_advance:
|
||||
state: present
|
||||
acl_name: test
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
protocol: tcp
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
state: present
|
||||
acl_name: test
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
protocol: tcp
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo ACL advance rule"
|
||||
ce_acl_advance:
|
||||
state: absent
|
||||
acl_name: test
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
protocol: tcp
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
state: absent
|
||||
acl_name: test
|
||||
rule_name: test_rule
|
||||
rule_id: 111
|
||||
rule_action: permit
|
||||
protocol: tcp
|
||||
source_ip: 10.10.10.10
|
||||
src_mask: 24
|
||||
frag_type: fragment
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -73,18 +73,18 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Apply acl to interface"
|
||||
ce_acl_interface:
|
||||
state: present
|
||||
acl_name: 2000
|
||||
interface: 40GE1/0/1
|
||||
direction: outbound
|
||||
state: present
|
||||
acl_name: 2000
|
||||
interface: 40GE1/0/1
|
||||
direction: outbound
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo acl from interface"
|
||||
ce_acl_interface:
|
||||
state: absent
|
||||
acl_name: 2000
|
||||
interface: 40GE1/0/1
|
||||
direction: outbound
|
||||
state: absent
|
||||
acl_name: 2000
|
||||
interface: 40GE1/0/1
|
||||
direction: outbound
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -205,22 +205,22 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Enable BGP"
|
||||
ce_bgp:
|
||||
state: present
|
||||
as_number: 100
|
||||
confed_id_number: 250
|
||||
state: present
|
||||
as_number: 100
|
||||
confed_id_number: 250
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Disable BGP"
|
||||
ce_bgp:
|
||||
state: absent
|
||||
as_number: 100
|
||||
confed_id_number: 250
|
||||
state: absent
|
||||
as_number: 100
|
||||
confed_id_number: 250
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Create confederation peer AS num"
|
||||
ce_bgp:
|
||||
state: present
|
||||
confed_peer_as_num: 260
|
||||
state: present
|
||||
confed_peer_as_num: 260
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -418,52 +418,52 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config BGP Address_Family"
|
||||
ce_bgp_af:
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo BGP Address_Family"
|
||||
ce_bgp_af:
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config import route"
|
||||
ce_bgp_af:
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
import_protocol: ospf
|
||||
import_process_id: 123
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
import_protocol: ospf
|
||||
import_process_id: 123
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo import route"
|
||||
ce_bgp_af:
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
import_protocol: ospf
|
||||
import_process_id: 123
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
import_protocol: ospf
|
||||
import_process_id: 123
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config network route"
|
||||
ce_bgp_af:
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
network_address: 1.1.1.1
|
||||
mask_len: 24
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
network_address: 1.1.1.1
|
||||
mask_len: 24
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo network route"
|
||||
ce_bgp_af:
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
network_address: 1.1.1.1
|
||||
mask_len: 24
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
network_address: 1.1.1.1
|
||||
mask_len: 24
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -250,17 +250,17 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config bgp peer"
|
||||
ce_bgp_neighbor:
|
||||
state: present
|
||||
vrf_name: js
|
||||
peer_addr: 192.168.10.10
|
||||
remote_as: 500
|
||||
state: present
|
||||
vrf_name: js
|
||||
peer_addr: 192.168.10.10
|
||||
remote_as: 500
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config bgp route id"
|
||||
ce_bgp_neighbor:
|
||||
state: absent
|
||||
vrf_name: js
|
||||
peer_addr: 192.168.10.10
|
||||
state: absent
|
||||
vrf_name: js
|
||||
peer_addr: 192.168.10.10
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -406,20 +406,20 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config BGP peer Address_Family"
|
||||
ce_bgp_neighbor_af:
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
remote_address: 192.168.10.10
|
||||
nexthop_configure: local
|
||||
state: present
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
remote_address: 192.168.10.10
|
||||
nexthop_configure: local
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo BGP peer Address_Family"
|
||||
ce_bgp_neighbor_af:
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
remote_address: 192.168.10.10
|
||||
nexthop_configure: local
|
||||
state: absent
|
||||
vrf_name: js
|
||||
af_type: ipv4uni
|
||||
remote_address: 192.168.10.10
|
||||
nexthop_configure: local
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -52,7 +52,6 @@ options:
|
|||
by the configured retries, the task fails. See examples.
|
||||
required: false
|
||||
default: null
|
||||
aliases: ['waitfor']
|
||||
match:
|
||||
description:
|
||||
- The I(match) argument is used in conjunction with the
|
||||
|
@ -201,7 +200,7 @@ def main():
|
|||
# { command: <str>, output: <str>, prompt: <str>, response: <str> }
|
||||
commands=dict(type='list', required=True),
|
||||
|
||||
wait_for=dict(type='list', aliases=['waitfor']),
|
||||
wait_for=dict(type='list'),
|
||||
match=dict(default='all', choices=['any', 'all']),
|
||||
|
||||
retries=dict(default=10, type='int'),
|
||||
|
|
|
@ -32,8 +32,8 @@ author:
|
|||
- Zhijin Zhou (@CloudEngine-Ansible)
|
||||
notes:
|
||||
- The relevant configurations will be deleted if DLDP is disabled using enable=disable.
|
||||
- When using auth_mode=none, it will restore the default DLDP authentication mode(By default,
|
||||
DLDP packets are not authenticated.).
|
||||
- When using auth_mode=none, it will restore the default DLDP authentication mode. By default,
|
||||
DLDP packets are not authenticated.
|
||||
- By default, the working mode of DLDP is enhance, so you are advised to use work_mode=enhance to restore defualt
|
||||
DLDP working mode.
|
||||
- The default interval for sending Advertisement packets is 5 seconds, so you are advised to use time_interval=5 to
|
||||
|
|
|
@ -57,18 +57,18 @@ options:
|
|||
description:
|
||||
- Configures a route distinguisher (RD) for a BD EVPN instance.
|
||||
The format of an RD can be as follows
|
||||
1) 2-byte AS number:4-byte user-defined number, for example, 1:3. An AS number is an integer ranging from
|
||||
0 to 65535, and a user-defined number is an integer ranging from 0 to 4294967295. The AS and user-defined
|
||||
- 1) 2-byte AS number:4-byte user-defined number, for example, 1:3. An AS number is an integer ranging from
|
||||
0 to 65535, and a user-defined number is an integer ranging from 0 to 4294967295. The AS and user-defined
|
||||
numbers cannot be both 0s. This means that an RD cannot be 0:0.
|
||||
2) Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number is an integer
|
||||
ranging from 65536 to 4294967295, and a user-defined number is an integer ranging from 0 to 65535.
|
||||
3) 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte
|
||||
AS number in dotted notation is in the format of x.y, where x and y are integers ranging from 0 to 65535.
|
||||
4) A user-defined number is an integer ranging from 0 to 65535. The AS and user-defined numbers cannot be
|
||||
both 0s. This means that an RD cannot be 0.0:0.
|
||||
5) 32-bit IP address:2-byte user-defined number. For example, 192.168.122.15:1. An IP address ranges from
|
||||
0.0.0.0 to 255.255.255.255, and a user-defined number is an integer ranging from 0 to 65535.
|
||||
6) 'auto' specifies the RD that is automatically generated.
|
||||
- 2) Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number is an integer
|
||||
ranging from 65536 to 4294967295, and a user-defined number is an integer ranging from 0 to 65535.
|
||||
- 3) 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte
|
||||
AS number in dotted notation is in the format of x.y, where x and y are integers ranging from 0 to 65535.
|
||||
- 4) A user-defined number is an integer ranging from 0 to 65535. The AS and user-defined numbers cannot be
|
||||
both 0s. This means that an RD cannot be 0.0:0.
|
||||
- 5) 32-bit IP address:2-byte user-defined number. For example, 192.168.122.15:1. An IP address ranges from
|
||||
0.0.0.0 to 255.255.255.255, and a user-defined number is an integer ranging from 0 to 65535.
|
||||
- 6) 'auto' specifies the RD that is automatically generated.
|
||||
required: false
|
||||
default: null
|
||||
vpn_target_both:
|
||||
|
|
|
@ -72,12 +72,12 @@ EXAMPLES = """
|
|||
|
||||
- name: "Collect only the config facts"
|
||||
ce_facts:
|
||||
gather_subset: config
|
||||
gather_subset: config
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Do not collect hardware facts"
|
||||
ce_facts:
|
||||
gather_subset: "!hardware"
|
||||
gather_subset: "!hardware"
|
||||
provider: "{{ cli }}"
|
||||
"""
|
||||
|
||||
|
|
|
@ -90,32 +90,32 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config debug time stamp"
|
||||
ce_info_center_debug:
|
||||
state: present
|
||||
debug_time_stamp: date_boot
|
||||
state: present
|
||||
debug_time_stamp: date_boot
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo debug time stamp"
|
||||
ce_info_center_debug:
|
||||
state: absent
|
||||
debug_time_stamp: date_boot
|
||||
state: absent
|
||||
debug_time_stamp: date_boot
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config debug module log level"
|
||||
ce_info_center_debug:
|
||||
state: present
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
debug_enable: true
|
||||
debug_level: error
|
||||
state: present
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
debug_enable: true
|
||||
debug_level: error
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo debug module log level"
|
||||
ce_info_center_debug:
|
||||
state: absent
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
debug_enable: true
|
||||
debug_level: error
|
||||
state: absent
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
debug_enable: true
|
||||
debug_level: error
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -102,34 +102,34 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config trap buffer"
|
||||
ce_info_center_trap:
|
||||
state: present
|
||||
trap_buff_enable: true
|
||||
trap_buff_size: 768
|
||||
state: present
|
||||
trap_buff_enable: true
|
||||
trap_buff_size: 768
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo trap buffer"
|
||||
ce_info_center_trap:
|
||||
state: absent
|
||||
trap_buff_enable: true
|
||||
trap_buff_size: 768
|
||||
state: absent
|
||||
trap_buff_enable: true
|
||||
trap_buff_size: 768
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config trap module log level"
|
||||
ce_info_center_trap:
|
||||
state: present
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
trap_enable: true
|
||||
trap_level: error
|
||||
state: present
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
trap_enable: true
|
||||
trap_level: error
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo trap module log level"
|
||||
ce_info_center_trap:
|
||||
state: absent
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
trap_enable: true
|
||||
trap_level: error
|
||||
state: absent
|
||||
module_name: aaa
|
||||
channel_id: 1
|
||||
trap_enable: true
|
||||
trap_level: error
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -90,29 +90,29 @@ EXAMPLES = '''
|
|||
|
||||
- name: Config ipv4 netstream record
|
||||
ce_netstream_template:
|
||||
state: present
|
||||
type: ip
|
||||
record_name: test
|
||||
state: present
|
||||
type: ip
|
||||
record_name: test
|
||||
provider: "{{ cli }}"
|
||||
- name: Undo ipv4 netstream record
|
||||
ce_netstream_template:
|
||||
state: absent
|
||||
type: ip
|
||||
record_name: test
|
||||
state: absent
|
||||
type: ip
|
||||
record_name: test
|
||||
provider: "{{ cli }}"
|
||||
- name: Config ipv4 netstream record collect_counter
|
||||
ce_netstream_template:
|
||||
state: present
|
||||
type: ip
|
||||
record_name: test
|
||||
collect_counter: bytes
|
||||
state: present
|
||||
type: ip
|
||||
record_name: test
|
||||
collect_counter: bytes
|
||||
provider: "{{ cli }}"
|
||||
- name: Undo ipv4 netstream record collect_counter
|
||||
ce_netstream_template:
|
||||
state: absent
|
||||
type: ip
|
||||
record_name: test
|
||||
collect_counter: bytes
|
||||
state: absent
|
||||
type: ip
|
||||
record_name: test
|
||||
collect_counter: bytes
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -94,8 +94,8 @@ options:
|
|||
lsaointervalflag:
|
||||
description:
|
||||
- Specifies whether cancel the interval of LSA originate or not.
|
||||
If set the parameter but noe specifies value ,the default will be used.
|
||||
true:cancel the interval of LSA originate,the interval is 0.
|
||||
If set the parameter but noe specifies value, the default will be used.
|
||||
true:cancel the interval of LSA originate, the interval is 0.
|
||||
false:do not cancel the interval of LSA originate.
|
||||
required: false
|
||||
default: False
|
||||
|
|
|
@ -33,7 +33,6 @@ options:
|
|||
confirm:
|
||||
description:
|
||||
- Safeguard boolean. Set to true if you're sure you want to reboot.
|
||||
required: true
|
||||
type: bool
|
||||
default: false
|
||||
save_config:
|
||||
|
|
|
@ -103,32 +103,32 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP community"
|
||||
ce_snmp_community:
|
||||
state: present
|
||||
community_name: Wdz123456789
|
||||
access_right: write
|
||||
state: present
|
||||
community_name: Wdz123456789
|
||||
access_right: write
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo SNMP community"
|
||||
ce_snmp_community:
|
||||
state: absent
|
||||
community_name: Wdz123456789
|
||||
access_right: write
|
||||
state: absent
|
||||
community_name: Wdz123456789
|
||||
access_right: write
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP group"
|
||||
ce_snmp_community:
|
||||
state: present
|
||||
group_name: wdz_group
|
||||
security_level: noAuthNoPriv
|
||||
acl_number: 2000
|
||||
state: present
|
||||
group_name: wdz_group
|
||||
security_level: noAuthNoPriv
|
||||
acl_number: 2000
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo SNMP group"
|
||||
ce_snmp_community:
|
||||
state: absent
|
||||
group_name: wdz_group
|
||||
security_level: noAuthNoPriv
|
||||
acl_number: 2000
|
||||
state: absent
|
||||
group_name: wdz_group
|
||||
security_level: noAuthNoPriv
|
||||
acl_number: 2000
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -61,14 +61,14 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP contact"
|
||||
ce_snmp_contact:
|
||||
state: present
|
||||
contact: call Operator at 010-99999999
|
||||
state: present
|
||||
contact: call Operator at 010-99999999
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo SNMP contact"
|
||||
ce_snmp_contact:
|
||||
state: absent
|
||||
contact: call Operator at 010-99999999
|
||||
state: absent
|
||||
contact: call Operator at 010-99999999
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -61,14 +61,14 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP location"
|
||||
ce_snmp_location:
|
||||
state: present
|
||||
location: nanjing China
|
||||
state: present
|
||||
location: nanjing China
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Remove SNMP location"
|
||||
ce_snmp_location:
|
||||
state: absent
|
||||
location: nanjing China
|
||||
state: absent
|
||||
location: nanjing China
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -120,19 +120,19 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP version"
|
||||
ce_snmp_target_host:
|
||||
state: present
|
||||
version: v2cv3
|
||||
state: present
|
||||
version: v2cv3
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP target host"
|
||||
ce_snmp_target_host:
|
||||
state: present
|
||||
host_name: test1
|
||||
address: 1.1.1.1
|
||||
notify_type: trap
|
||||
vpn_name: js
|
||||
security_model: v2c
|
||||
security_name: wdz
|
||||
state: present
|
||||
host_name: test1
|
||||
address: 1.1.1.1
|
||||
notify_type: trap
|
||||
vpn_name: js
|
||||
security_model: v2c
|
||||
security_name: wdz
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -86,21 +86,21 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP trap all enable"
|
||||
ce_snmp_traps:
|
||||
state: present
|
||||
feature_name: all
|
||||
state: present
|
||||
feature_name: all
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP trap interface"
|
||||
ce_snmp_traps:
|
||||
state: present
|
||||
interface_type: 40GE
|
||||
interface_number: 2/0/1
|
||||
state: present
|
||||
interface_type: 40GE
|
||||
interface_number: 2/0/1
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP trap port"
|
||||
ce_snmp_traps:
|
||||
state: present
|
||||
port_number: 2222
|
||||
state: present
|
||||
port_number: 2222
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ DOCUMENTATION = '''
|
|||
---
|
||||
module: ce_snmp_user
|
||||
version_added: "2.4"
|
||||
short_description: Manages SNMP user configuration.
|
||||
short_description: Manages SNMP user configuration on HUAWEI CloudEngine switches.
|
||||
description:
|
||||
- Manages SNMP user configurations on CloudEngine switches.
|
||||
author:
|
||||
|
@ -97,40 +97,40 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config SNMP usm user"
|
||||
ce_snmp_user:
|
||||
state: present
|
||||
usm_user_name: wdz_snmp
|
||||
remote_engine_id: 800007DB03389222111200
|
||||
acl_number: 2000
|
||||
user_group: wdz_group
|
||||
state: present
|
||||
usm_user_name: wdz_snmp
|
||||
remote_engine_id: 800007DB03389222111200
|
||||
acl_number: 2000
|
||||
user_group: wdz_group
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo SNMP usm user"
|
||||
ce_snmp_user:
|
||||
state: absent
|
||||
usm_user_name: wdz_snmp
|
||||
remote_engine_id: 800007DB03389222111200
|
||||
acl_number: 2000
|
||||
user_group: wdz_group
|
||||
state: absent
|
||||
usm_user_name: wdz_snmp
|
||||
remote_engine_id: 800007DB03389222111200
|
||||
acl_number: 2000
|
||||
user_group: wdz_group
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP local user"
|
||||
ce_snmp_user:
|
||||
state: present
|
||||
aaa_local_user: wdz_user
|
||||
auth_protocol: md5
|
||||
auth_key: huawei123
|
||||
priv_protocol: des56
|
||||
priv_key: huawei123
|
||||
state: present
|
||||
aaa_local_user: wdz_user
|
||||
auth_protocol: md5
|
||||
auth_key: huawei123
|
||||
priv_protocol: des56
|
||||
priv_key: huawei123
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Config SNMP local user"
|
||||
ce_snmp_user:
|
||||
state: absent
|
||||
aaa_local_user: wdz_user
|
||||
auth_protocol: md5
|
||||
auth_key: huawei123
|
||||
priv_protocol: des56
|
||||
priv_key: huawei123
|
||||
state: absent
|
||||
aaa_local_user: wdz_user
|
||||
auth_protocol: md5
|
||||
auth_key: huawei123
|
||||
priv_protocol: des56
|
||||
priv_key: huawei123
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -157,12 +157,12 @@ existing:
|
|||
description: k/v pairs of existing switchport
|
||||
returned: always
|
||||
type: dict
|
||||
sample: {}
|
||||
sample: {}
|
||||
end_state:
|
||||
description: k/v pairs of switchport after module execution
|
||||
returned: always
|
||||
type: dict
|
||||
sample: {"next_hop": "3.3.3.3", "pref": "100",
|
||||
sample: {"next_hop": "3.3.3.3", "pref": "100",
|
||||
"prefix": "192.168.20.0", "mask": "24", "description": "testing",
|
||||
"tag" : "null"}
|
||||
updates:
|
||||
|
|
|
@ -140,26 +140,26 @@ EXAMPLES = '''
|
|||
|
||||
- name: "Config stp mode"
|
||||
ce_stp:
|
||||
state: present
|
||||
stp_mode: stp
|
||||
state: present
|
||||
stp_mode: stp
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Undo stp mode"
|
||||
ce_stp:
|
||||
state: absent
|
||||
stp_mode: stp
|
||||
state: absent
|
||||
stp_mode: stp
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Enable bpdu protection"
|
||||
ce_stp:
|
||||
state: present
|
||||
bpdu_protection: enable
|
||||
state: present
|
||||
bpdu_protection: enable
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: "Disable bpdu protection"
|
||||
ce_stp:
|
||||
state: present
|
||||
bpdu_protection: disable
|
||||
state: present
|
||||
bpdu_protection: disable
|
||||
provider: "{{ cli }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -63,15 +63,13 @@ options:
|
|||
description:
|
||||
- If C(mode=trunk), used as the VLAN range to ADD or REMOVE
|
||||
from the trunk, such as 2-10 or 2,5,10-15, etc.
|
||||
aliases:
|
||||
- trunk_add_vlans
|
||||
required: false
|
||||
default: null
|
||||
state:
|
||||
description:
|
||||
- Manage the state of the resource.
|
||||
required: false
|
||||
default: present
|
||||
default: present
|
||||
choices: ['present', 'absent', 'unconfigured']
|
||||
'''
|
||||
|
||||
|
@ -137,14 +135,14 @@ existing:
|
|||
description: k/v pairs of existing switchport
|
||||
returned: always
|
||||
type: dict
|
||||
sample: {"access_vlan": "10", "interface": "10GE1/0/22",
|
||||
"mode": "access", "switchport": "enable"}
|
||||
sample: {"access_vlan": "10", "interface": "10GE1/0/22",
|
||||
"mode": "access", "switchport": "enable"}
|
||||
end_state:
|
||||
description: k/v pairs of switchport after module execution
|
||||
returned: always
|
||||
type: dict
|
||||
sample: {"access_vlan": "20", "interface": "10GE1/0/22",
|
||||
"mode": "access", "switchport": "enable"}
|
||||
sample: {"access_vlan": "20", "interface": "10GE1/0/22",
|
||||
"mode": "access", "switchport": "enable"}
|
||||
updates:
|
||||
description: command string sent to the device
|
||||
returned: always
|
||||
|
|
Loading…
Reference in a new issue