diff --git a/lib/ansible/modules/network/cloudengine/ce_aaa_server.py b/lib/ansible/modules/network/cloudengine/ce_aaa_server.py index 87f26d7398..281da72049 100644 --- a/lib/ansible/modules/network/cloudengine/ce_aaa_server.py +++ b/lib/ansible/modules/network/cloudengine/ce_aaa_server.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_aaa_server_host.py b/lib/ansible/modules/network/cloudengine/ce_aaa_server_host.py index 4ab1268f4c..a798f863a8 100644 --- a/lib/ansible/modules/network/cloudengine/ce_aaa_server_host.py +++ b/lib/ansible/modules/network/cloudengine/ce_aaa_server_host.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_acl.py b/lib/ansible/modules/network/cloudengine/ce_acl.py index 11be14ed8a..1f9846cf0a 100644 --- a/lib/ansible/modules/network/cloudengine/ce_acl.py +++ b/lib/ansible/modules/network/cloudengine/ce_acl.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_acl_advance.py b/lib/ansible/modules/network/cloudengine/ce_acl_advance.py index 2ec3da1433..e8cbbc9186 100644 --- a/lib/ansible/modules/network/cloudengine/ce_acl_advance.py +++ b/lib/ansible/modules/network/cloudengine/ce_acl_advance.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_acl_interface.py b/lib/ansible/modules/network/cloudengine/ce_acl_interface.py index e65fa23dc2..ea53ff6853 100644 --- a/lib/ansible/modules/network/cloudengine/ce_acl_interface.py +++ b/lib/ansible/modules/network/cloudengine/ce_acl_interface.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_bgp.py b/lib/ansible/modules/network/cloudengine/ce_bgp.py index 6866c31067..04d292ffd9 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bgp.py +++ b/lib/ansible/modules/network/cloudengine/ce_bgp.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_bgp_af.py b/lib/ansible/modules/network/cloudengine/ce_bgp_af.py index febbc8809d..d303e708e2 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bgp_af.py +++ b/lib/ansible/modules/network/cloudengine/ce_bgp_af.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor.py b/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor.py index 92caa9d6c0..ccf0505e59 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor.py +++ b/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor_af.py b/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor_af.py index f775565dc9..6c2568cd39 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor_af.py +++ b/lib/ansible/modules/network/cloudengine/ce_bgp_neighbor_af.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_command.py b/lib/ansible/modules/network/cloudengine/ce_command.py index d91fcc2c1c..ccdc054d19 100644 --- a/lib/ansible/modules/network/cloudengine/ce_command.py +++ b/lib/ansible/modules/network/cloudengine/ce_command.py @@ -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: , output: , prompt: , response: } 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'), diff --git a/lib/ansible/modules/network/cloudengine/ce_dldp.py b/lib/ansible/modules/network/cloudengine/ce_dldp.py index 8f31523dbf..b2aae7753b 100644 --- a/lib/ansible/modules/network/cloudengine/ce_dldp.py +++ b/lib/ansible/modules/network/cloudengine/ce_dldp.py @@ -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 diff --git a/lib/ansible/modules/network/cloudengine/ce_evpn_bd_vni.py b/lib/ansible/modules/network/cloudengine/ce_evpn_bd_vni.py index 77acc3542b..e83bb92e00 100644 --- a/lib/ansible/modules/network/cloudengine/ce_evpn_bd_vni.py +++ b/lib/ansible/modules/network/cloudengine/ce_evpn_bd_vni.py @@ -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: diff --git a/lib/ansible/modules/network/cloudengine/ce_facts.py b/lib/ansible/modules/network/cloudengine/ce_facts.py index 70bc9de058..630fdfdf94 100644 --- a/lib/ansible/modules/network/cloudengine/ce_facts.py +++ b/lib/ansible/modules/network/cloudengine/ce_facts.py @@ -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 }}" """ diff --git a/lib/ansible/modules/network/cloudengine/ce_info_center_debug.py b/lib/ansible/modules/network/cloudengine/ce_info_center_debug.py index fc792bf210..d91ab39d67 100644 --- a/lib/ansible/modules/network/cloudengine/ce_info_center_debug.py +++ b/lib/ansible/modules/network/cloudengine/ce_info_center_debug.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_info_center_trap.py b/lib/ansible/modules/network/cloudengine/ce_info_center_trap.py index 3beb5863d9..4b343c5a74 100644 --- a/lib/ansible/modules/network/cloudengine/ce_info_center_trap.py +++ b/lib/ansible/modules/network/cloudengine/ce_info_center_trap.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_netstream_template.py b/lib/ansible/modules/network/cloudengine/ce_netstream_template.py index 73d3bcfa65..37babca7f5 100644 --- a/lib/ansible/modules/network/cloudengine/ce_netstream_template.py +++ b/lib/ansible/modules/network/cloudengine/ce_netstream_template.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_ospf_vrf.py b/lib/ansible/modules/network/cloudengine/ce_ospf_vrf.py index c2b188cfb1..e2b01431c8 100644 --- a/lib/ansible/modules/network/cloudengine/ce_ospf_vrf.py +++ b/lib/ansible/modules/network/cloudengine/ce_ospf_vrf.py @@ -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 diff --git a/lib/ansible/modules/network/cloudengine/ce_reboot.py b/lib/ansible/modules/network/cloudengine/ce_reboot.py index 22d9fa54cc..45f0563cd2 100644 --- a/lib/ansible/modules/network/cloudengine/ce_reboot.py +++ b/lib/ansible/modules/network/cloudengine/ce_reboot.py @@ -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: diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_community.py b/lib/ansible/modules/network/cloudengine/ce_snmp_community.py index ac3b6394e3..53693f621a 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_community.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_community.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_contact.py b/lib/ansible/modules/network/cloudengine/ce_snmp_contact.py index de3e844999..e86f057e5d 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_contact.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_contact.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_location.py b/lib/ansible/modules/network/cloudengine/ce_snmp_location.py index a82d0114dc..eaae9352f6 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_location.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_location.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_target_host.py b/lib/ansible/modules/network/cloudengine/ce_snmp_target_host.py index 2a81338025..9b10cc1e91 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_target_host.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_target_host.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_traps.py b/lib/ansible/modules/network/cloudengine/ce_snmp_traps.py index 101787d79a..b1b9c0a60e 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_traps.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_traps.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_snmp_user.py b/lib/ansible/modules/network/cloudengine/ce_snmp_user.py index 444b0112b0..8f67f08435 100644 --- a/lib/ansible/modules/network/cloudengine/ce_snmp_user.py +++ b/lib/ansible/modules/network/cloudengine/ce_snmp_user.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_static_route.py b/lib/ansible/modules/network/cloudengine/ce_static_route.py index eccdb7ef2f..68ba29caca 100644 --- a/lib/ansible/modules/network/cloudengine/ce_static_route.py +++ b/lib/ansible/modules/network/cloudengine/ce_static_route.py @@ -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: diff --git a/lib/ansible/modules/network/cloudengine/ce_stp.py b/lib/ansible/modules/network/cloudengine/ce_stp.py index 05dccb96e1..7e68639655 100644 --- a/lib/ansible/modules/network/cloudengine/ce_stp.py +++ b/lib/ansible/modules/network/cloudengine/ce_stp.py @@ -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 }}" ''' diff --git a/lib/ansible/modules/network/cloudengine/ce_switchport.py b/lib/ansible/modules/network/cloudengine/ce_switchport.py index d07f3c4a67..65beb33b0b 100644 --- a/lib/ansible/modules/network/cloudengine/ce_switchport.py +++ b/lib/ansible/modules/network/cloudengine/ce_switchport.py @@ -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