Skip to content

Commit 7028c05

Browse files
authored
Merge pull request #844 from netascode/discovery_creds_ext_isn
Added discovery cred support for external and ISN fabrics
2 parents 435770a + 3913dcf commit 7028c05

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

roles/dtc/common/templates/ndfc_inventory/dc_external_fabric/dc_external_fabric_inventory.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
hostname: {{ switch['name'] }}
2828
model: {{ pdata['model'] }}
2929
version: {{ pdata['version'] }}
30+
{% if switch['poap'].discovery_creds is defined and switch['poap'].discovery_creds %}
31+
discovery_username: PLACE_HOLDER_USERNAME
32+
discovery_password: PLACE_HOLDER_PASSWORD
33+
{% endif %}
3034
config_data:
3135
modulesModel: {{ pdata['modulesModel'] }}
3236
gateway: {{ pdata['gateway'] }}
@@ -42,6 +46,10 @@
4246
- preprovision_serial: {{ switch['poap']['preprovision']['serial_number'] }}
4347
model: {{ switch['poap']['preprovision']['model'] }}
4448
version: {{ switch['poap']['preprovision']['version'] }}
49+
{% if switch['poap'].discovery_creds is defined and switch['poap'].discovery_creds %}
50+
discovery_username: PLACE_HOLDER_USERNAME
51+
discovery_password: PLACE_HOLDER_PASSWORD
52+
{% endif %}
4553
config_data:
4654
modulesModel: {{ switch['poap']['preprovision']['modulesModel'] }}
4755
gateway: {{ switch['management']['default_gateway_v4'] | ansible.utils.ipaddr('address') }}/{{ switch['management']['subnet_mask_ipv4'] }}

roles/dtc/common/templates/ndfc_inventory/isn_fabric/isn_fabric_inventory.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
hostname: {{ switch['name'] }}
2727
model: {{ pdata['model'] }}
2828
version: {{ pdata['version'] }}
29+
{% if switch['poap'].discovery_creds is defined and switch['poap'].discovery_creds %}
30+
discovery_username: PLACE_HOLDER_USERNAME
31+
discovery_password: PLACE_HOLDER_PASSWORD
32+
{% endif %}
2933
config_data:
3034
modulesModel: {{ pdata['modulesModel'] }}
3135
gateway: {{ pdata['gateway'] }}
@@ -42,6 +46,10 @@
4246
- preprovision_serial: {{ switch['poap']['preprovision']['serial_number'] }}
4347
model: {{ switch['poap']['preprovision']['model'] }}
4448
version: {{ switch['poap']['preprovision']['version'] }}
49+
{% if switch['poap'].discovery_creds is defined and switch['poap'].discovery_creds %}
50+
discovery_username: PLACE_HOLDER_USERNAME
51+
discovery_password: PLACE_HOLDER_PASSWORD
52+
{% endif %}
4553
config_data:
4654
modulesModel: {{ switch['poap']['preprovision']['modulesModel'] }}
4755
gateway: {{ switch['management']['default_gateway_v4'] | ansible.utils.ipaddr('address') }}/{{ switch['management']['subnet_mask_ipv4'] }}

0 commit comments

Comments
 (0)