Skip to content

Commit e780a58

Browse files
Final set of lint changes
1 parent 61ede5c commit e780a58

File tree

140 files changed

+2483
-2483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+2483
-2483
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
nxos_vars:
2-
switch1_file1: air.ndfc_ut
3-
switch1_file2: earth.ndfc_ut
4-
switch1_file3: fire.ndfc_ut
5-
switch1_file4: water.ndfc_ut
6-
switch2_file1: black.ndfc_ut
7-
switch2_file2: blue.ndfc_ut
8-
switch2_file3: green.ndfc_ut
9-
switch2_file4: red.ndfc_ut
2+
switch1_file1: air.ndfc_ut
3+
switch1_file2: earth.ndfc_ut
4+
switch1_file3: fire.ndfc_ut
5+
switch1_file4: water.ndfc_ut
6+
switch2_file1: black.ndfc_ut
7+
switch2_file2: blue.ndfc_ut
8+
switch2_file3: green.ndfc_ut
9+
switch2_file4: red.ndfc_ut

playbooks/roles/dcnm_vrf/dcnm_tests.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@
3131
hosts: dcnm
3232
gather_facts: false
3333
connection: ansible.netcommon.httpapi
34-
# Uncomment and modify if not using dynamic_inventory.py
35-
# See the individual test yaml files for a description of
36-
# how each var below is used in each test. Some tests,
37-
# for example, do not use interface_1.
38-
# vars:
39-
# fabric_1: f1
40-
# switch_1: 10.1.1.2
41-
# switch_2: 10.1.1.3
42-
# switch_3: 10.1.1.4
43-
# interface_1: Ethernet1/1
44-
# interface_2: Ethernet1/2
45-
# interface_3: Ethernet1/3
46-
## Uncomment ONE of the following testcases
47-
# testcase: deleted
48-
# testcase: merged
49-
# testcase: query
34+
# Uncomment and modify if not using dynamic_inventory.py
35+
# See the individual test yaml files for a description of
36+
# how each var below is used in each test. Some tests,
37+
# for example, do not use interface_1.
38+
# vars:
39+
# fabric_1: f1
40+
# fabric_1: f1
41+
# switch_1: 10.1.1.2
42+
# switch_3: 10.1.1.4
43+
# switch_3: 10.1.1.4
44+
# switch_4: 10.1.1.5
45+
# interface_3: Ethernet1/3
46+
## Uncomment ONE of the following testcases
47+
# testcase: deleted
48+
# testcase: merged
49+
# testcase: query
5050

5151
roles:
5252
- dcnm_vrf

plugins/modules/dcnm_links.py

Lines changed: 45 additions & 45 deletions
Large diffs are not rendered by default.

plugins/modules/dcnm_network.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@
405405
srvr_vrf: vrf_10
406406
attach:
407407
- ip_address: 192.168.1.224
408-
# Replace the ports with new ports
409-
# ports: [Ethernet1/13, Ethernet1/14]
408+
# Replace the ports with new ports
409+
# ports: [Ethernet1/13, Ethernet1/14]
410410
ports: [Ethernet1/16, Ethernet1/17]
411-
# Delete this attachment
411+
# Delete this attachment
412412
# - ip_address: 192.168.1.225
413413
# ports: [Ethernet1/13, Ethernet1/14]
414414
deploy: true
@@ -448,20 +448,20 @@
448448
# - ip_address: 192.168.1.225
449449
# ports: [Ethernet1/13, Ethernet1/14]
450450
deploy: true
451-
# Delete this network
452-
# - net_name: ansible-net12
453-
# vrf_name: Tenant-2
454-
# net_id: 7002
455-
# net_template: Default_Network_Universal
456-
# net_extension_template: Default_Network_Extension_Universal
457-
# vlan_id: 151
458-
# gw_ip_subnet: '192.168.40.1/24'
459-
# attach:
460-
# - ip_address: 192.168.1.224
461-
# ports: [Ethernet1/11, Ethernet1/12]
462-
# - ip_address: 192.168.1.225
463-
# ports: [Ethernet1/11, Ethernet1/12]
464-
# deploy: false
451+
# Delete this network
452+
# - net_name: ansible-net12
453+
# vrf_name: Tenant-2
454+
# net_id: 7002
455+
# net_template: Default_Network_Universal
456+
# net_extension_template: Default_Network_Extension_Universal
457+
# vlan_id: 151
458+
# gw_ip_subnet: '192.168.40.1/24'
459+
# attach:
460+
# - ip_address: 192.168.1.224
461+
# ports: [Ethernet1/11, Ethernet1/12]
462+
# - ip_address: 192.168.1.225
463+
# ports: [Ethernet1/11, Ethernet1/12]
464+
# deploy: false
465465
466466
- name: Delete selected networks
467467
cisco.dcnm.dcnm_network:
@@ -677,16 +677,16 @@ def diff_for_attach_deploy(self, want_a, have_a, replace=False):
677677

678678
torconfig = tor_w["switch"] + "(" + ",".join(atch_tor_ports) + ")"
679679
want.update({"torPorts": torconfig})
680-
# Update torports_configured to True. If there is no other config change for attach
681-
# We will still append this attach to attach_list as there is tor port change
680+
# Update torports_configured to True. If there is no other config change for attach
681+
# We will still append this attach to attach_list as there is tor port change
682682
if sorted(atch_tor_ports) != sorted(h_tor_ports):
683683
torports_configured = True
684684

685685
if not torports_present:
686686
torconfig = tor_w["switch"] + "(" + tor_w["torPorts"] + ")"
687687
want.update({"torPorts": torconfig})
688-
# Update torports_configured to True. If there is no other config change for attach
689-
# We will still append this attach to attach_list as there is tor port change
688+
# Update torports_configured to True. If there is no other config change for attach
689+
# We will still append this attach to attach_list as there is tor port change
690690
torports_configured = True
691691

692692
if have.get("torports"):

plugins/modules/dcnm_service_node.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -205,55 +205,55 @@
205205
config:
206206
- name: SN-11
207207
type: firewall
208-
# Replace can only modify the form factor
209-
# form_factor: virtual # the virtual will be changed to new physical
210-
# form_factor: physical
208+
# Replace can only modify the form factor
209+
# form_factor: virtual # the virtual will be changed to new physical
210+
# form_factor: physical
211211
svc_int_name: svc1
212212
attach_interface: Ethernet1/1
213213
switches:
214214
- 192.168.1.224
215-
# Nothing will be replaced in the below service node as there is no change
216-
# Dont touch this if its present on DCNM
217-
# - name: SN-12
218-
# type: firewall
219-
# form_factor: virtual
220-
# svc_int_name: svc1
221-
# attach_interface: vPC1
222-
# switches: # up to two switches, if two switches are provided, vpc is only option
223-
# - 192.168.1.224
224-
# - 192.168.1.225
215+
# Nothing will be replaced in the below service node as there is no change
216+
# Dont touch this if its present on DCNM
217+
# - name: SN-12
218+
# type: firewall
219+
# form_factor: virtual
220+
# svc_int_name: svc1
221+
# attach_interface: vPC1
222+
# switches: # up to two switches, if two switches are provided, vpc is only option
223+
# - 192.168.1.224
224+
# - 192.168.1.225
225225
226226
- name: Override Service Nodes
227227
cisco.dcnm.dcnm_service_node:
228228
fabric: Fabric1
229229
service_fabric: external
230230
state: overridden
231231
config:
232-
# Create this service node
232+
# Create this service node
233233
- name: SN-13
234234
type: firewall
235235
form_factor: virtual
236236
svc_int_name: svc1
237237
attach_interface: Ethernet1/1
238238
switches:
239239
- 192.168.1.224
240-
# Delete this service node from the DCNM
241-
# - name: SN-11
242-
# type: firewall
243-
# form_factor: virtual
244-
# svc_int_name: svc1
245-
# attach_interface: Ethernet1/1
246-
# switches:
247-
# - 192.168.1.224
248-
# Delete this service node from the DCNM
249-
# - name: SN-12
250-
# type: firewall
251-
# form_factor: virtual
252-
# svc_int_name: svc1
253-
# attach_interface: vPC1
254-
# switches: # up to two switches, if two switches are provided, vpc is only option
255-
# - 192.168.1.224
256-
# - 192.168.1.225
240+
# Delete this service node from the DCNM
241+
# - name: SN-11
242+
# type: firewall
243+
# form_factor: virtual
244+
# svc_int_name: svc1
245+
# attach_interface: Ethernet1/1
246+
# switches:
247+
# - 192.168.1.224
248+
# Delete this service node from the DCNM
249+
# - name: SN-12
250+
# type: firewall
251+
# form_factor: virtual
252+
# svc_int_name: svc1
253+
# attach_interface: vPC1
254+
# switches: # up to two switches, if two switches are provided, vpc is only option
255+
# - 192.168.1.224
256+
# - 192.168.1.225
257257
258258
- name: Delete selected Service Nodes
259259
cisco.dcnm.dcnm_service_node:

plugins/modules/dcnm_vrf.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -508,14 +508,14 @@
508508
# - ip_address: 192.168.1.225
509509
# Create the following attachment
510510
- ip_address: 192.168.1.226
511-
# Dont touch this if its present on DCNM
512-
# - vrf_name: ansible-vrf-r2
513-
# vrf_id: 9008012
514-
# vrf_template: Default_VRF_Universal
515-
# vrf_extension_template: Default_VRF_Extension_Universal
516-
# attach:
517-
# - ip_address: 192.168.1.224
518-
# - ip_address: 192.168.1.225
511+
# Dont touch this if its present on DCNM
512+
# - vrf_name: ansible-vrf-r2
513+
# vrf_id: 9008012
514+
# vrf_template: Default_VRF_Universal
515+
# vrf_extension_template: Default_VRF_Extension_Universal
516+
# attach:
517+
# - ip_address: 192.168.1.224
518+
# - ip_address: 192.168.1.225
519519
520520
# The two VRFs below will be overridden in the target fabric.
521521
- name: Override vrfs
@@ -535,16 +535,16 @@
535535
# - ip_address: 192.168.1.225
536536
# Create the following attachment
537537
- ip_address: 192.168.1.226
538-
# Delete this vrf
539-
# - vrf_name: ansible-vrf-r2
540-
# vrf_id: 9008012
541-
# vrf_template: Default_VRF_Universal
542-
# vrf_extension_template: Default_VRF_Extension_Universal
543-
# vlan_id: 2000
544-
# service_vrf_template: null
545-
# attach:
546-
# - ip_address: 192.168.1.224
547-
# - ip_address: 192.168.1.225
538+
# Delete this vrf
539+
# - vrf_name: ansible-vrf-r2
540+
# vrf_id: 9008012
541+
# vrf_template: Default_VRF_Universal
542+
# vrf_extension_template: Default_VRF_Extension_Universal
543+
# vlan_id: 2000
544+
# service_vrf_template: null
545+
# attach:
546+
# - ip_address: 192.168.1.224
547+
# - ip_address: 192.168.1.225
548548
549549
- name: Delete selected vrfs
550550
cisco.dcnm.dcnm_vrf:

0 commit comments

Comments
 (0)