File tree Expand file tree Collapse file tree 2 files changed +0
-68
lines changed
tests/integration/targets/dcnm_network Expand file tree Collapse file tree 2 files changed +0
-68
lines changed Original file line number Diff line number Diff line change 11
11
delegate_to : localhost
12
12
tags : always
13
13
14
- # maintaining backward compatibility until all test cases are updated
15
- - set_fact :
16
- controller_version : " Unable to determine controller version"
17
- tags : always
18
-
19
- - name : Determine version of DCNM or NDFC
20
- cisco.dcnm.dcnm_rest :
21
- method : GET
22
- path : /appcenter/cisco/ndfc/api/about/version
23
- register : result
24
- ignore_errors : yes
25
- tags : always
26
-
27
- - set_fact :
28
- controller_version : " {{ result.response['DATA']['version'][0:2] | int }}"
29
- when : ( result.response['DATA']['version'] is search("\d\d.\d+") )
30
- ignore_errors : yes
31
- tags : always
32
-
33
- - name : Determine version of DCNM or NDFC
34
- cisco.dcnm.dcnm_rest :
35
- method : GET
36
- path : /fm/fmrest/about/version
37
- register : result
38
- ignore_errors : yes
39
- tags : always
40
-
41
- - set_fact :
42
- controller_version : " {{ result.response['DATA']['version'][0:2] | int }}"
43
- when : ( result.response['DATA']['version'] is search("\d\d.\d+") )
44
- ignore_errors : yes
45
- tags : always
46
-
47
-
48
- - assert :
49
- that :
50
- - ' controller_version != "Unable to determine controller version"'
51
- tags : always
52
-
53
- # new version below
54
-
55
14
- name : MAIN - QUERY - Verify Fabric Deployment
56
15
cisco.dcnm.dcnm_fabric :
57
16
state : query
Original file line number Diff line number Diff line change 835
835
- result.changed == false
836
836
tags : merged
837
837
838
- - name : MERGED - TC12 - Create Network and deploy in switch with null interface
839
- cisco.dcnm.dcnm_network :
840
- fabric : " {{ test_data_common.fabric }}"
841
- state : merged
842
- config :
843
- - net_name : ansible-net13
844
- vrf_name : Tenant-1
845
- net_id : 7005
846
- net_template : Default_Network_Universal
847
- net_extension_template : Default_Network_Extension_Universal
848
- vlan_id : 1500
849
- gw_ip_subnet : ' 192.168.30.1/24'
850
- attach :
851
- - ip_address : " {{ test_data_common.sw1 }}"
852
- ports :
853
- deploy : false
854
- register : result
855
- ignore_errors : yes
856
- tags : merged
857
-
858
- - name : MERGED - TC12 - ASSERT - Check invalid switch
859
- assert :
860
- that :
861
- - ' "Invalid parameters in playbook: ports : Required parameter not found" in result.msg'
862
- - result.changed == false
863
- tags : merged
864
-
865
838
- name : MERGED - TC12 - Create Network with out of range routing tag
866
839
cisco.dcnm.dcnm_network :
867
840
fabric : " {{ test_data_common.fabric }}"
You can’t perform that action at this time.
0 commit comments