add N3K-F type to nxos platforms (#47944)
This commit is contained in:
parent
9d10a0e9f8
commit
ba2c8a24e2
1 changed files with 6 additions and 2 deletions
|
@ -66,8 +66,12 @@
|
||||||
- set_fact: chassis_type="{{ nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'][0]['productid'].split('-')[1] }}"
|
- set_fact: chassis_type="{{ nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'][0]['productid'].split('-')[1] }}"
|
||||||
|
|
||||||
# Check if platform is fretta
|
# Check if platform is fretta
|
||||||
- set_fact: fretta={% for row in nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'] if 'FM-R' in row['productid'] %}"true"{% endfor %}
|
- set_fact: fretta={% for row in nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'] if '-R' in row['productid'] %}"true"{% endfor %}
|
||||||
when: platform is match("N9K")
|
when: platform is match("N9K|N3K")
|
||||||
|
|
||||||
|
# Set platform to N3K-F for fretta
|
||||||
|
- set_fact: platform="N3K-F"
|
||||||
|
when: ( platform is match("N3K")) and ( fretta is search("true"))
|
||||||
|
|
||||||
# Set platform to N9K-F for fretta
|
# Set platform to N9K-F for fretta
|
||||||
- set_fact: platform="N9K-F"
|
- set_fact: platform="N9K-F"
|
||||||
|
|
Loading…
Reference in a new issue