Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2c69800
[ansible] increase ansible cache timeout to 20 minutes (#799)
yxieca Feb 4, 2019
56bea85
[switch] increase spawn connection timeout (#788)
mykolaf Jan 29, 2019
94e2ae4
[vxlan_decap]: Fix import issue for the scapy module (#801)
Feb 6, 2019
fe8615b
[warm/fast reboot] fail fast/warm reboot test if BGP GR timeout is de…
yxieca Feb 12, 2019
67d42df
[ansible] Fix neighbor test case (#800)
vsenchyshyn Feb 13, 2019
1e92b6b
[config test] enable config test case for T0-116 topology (#809)
yxieca Feb 14, 2019
edffff1
[snmp] Improve the error handling of snmp pfc_counters check (#798)
wangxin Feb 25, 2019
07e1f29
[acl] Add ACL rules to allow BGP traffic (#796)
wangxin Feb 28, 2019
78d53ea
Add 'ERR ntpd' to loganalyzer ignore files (#816)
romankachur-mlnx Mar 6, 2019
b1dab45
[arp] Ignore intermittent failure of "ip neigh flush all" (#820)
wangxin Mar 13, 2019
43bc625
[logAnalyzer] Avoid logAnalyzer logs being overwritten (#822)
wangxin Mar 13, 2019
4393b10
[t0-64 template] avoid deploying conflict routing entries on leaf swi…
yxieca Mar 13, 2019
b5faae1
[arp ping] add VLAN arp ping to warm/fast reboot test (#824)
yxieca Mar 19, 2019
a2d1580
[warm/fast reboot] refactor test code to reduce duplicate logic (#833)
yxieca Mar 20, 2019
270c85e
[logAnalyzer] Fix the issue of unmatched start and end mark (#831)
wangxin Mar 20, 2019
7e0ba68
[lag_rate] Restore lag setting on VMs in case of failure in test (#839)
wangxin Mar 28, 2019
d7664ed
[acltb] Apply BGP ACL forward rules in acltb_test_rules_part_1.json (…
stepanblyschak Mar 28, 2019
f266d7e
[logAnalyzer] Fix the issue that variables are not overridden as expe…
wangxin Mar 28, 2019
e060b41
[docker] Use recommended CMD for getting docker GPG key (#843)
wangxin Apr 1, 2019
9d54f43
Change warm-reboot time limit to 1 second (#855)
qiluo-msft Apr 5, 2019
467382f
[add-topo] Refresh ARP table of neighbors with new MAC address of new…
wangxin Apr 5, 2019
42f4860
[link state] look up topology name until the separator char (#857)
yxieca Apr 5, 2019
d5b5415
[test]: Change config interface command arguments order (#864)
Apr 9, 2019
3808d97
[ptf_runner] Save ptf log to script executing host in case of failure…
wangxin Apr 10, 2019
dc7d58f
[pfc_wd] change pfc watchdog table name according to the sonic code c…
yxieca Apr 10, 2019
0bc2acf
Scrub credential in `docker pull` command line (#869)
qiluo-msft Apr 13, 2019
336703a
[minigraph]: Fix minigraph parsing error on Mellanox-SN2700-D48C8 (#875)
yxieca Apr 18, 2019
36d50c7
[fast/warm reboot] improve new image installation code (#877)
yxieca Apr 18, 2019
0a31f6b
[ntpd] Update matching pattern of 'ERR ntpd' in loganalyzer ignore fi…
wangxin Apr 24, 2019
8ac9a88
Add many testcases support to t0-56 (#885)
qiluo-msft Apr 28, 2019
d1dd00b
[advanced-reboot] improvements and enable CPU/VLAN ARP watchers durin…
stepanblyschak Apr 30, 2019
eea8cb1
[warm-reboot] increase warm-reboot sniffing time (#899)
yxieca May 2, 2019
d9f88d3
[lag] Increase wait time for LAG to change state to 35 seconds (#871)
jleveque Apr 17, 2019
f529eac
[201811]Modified sensors data for S6100/Z9100 according to latest out…
chitra-raghavan May 9, 2019
84964a7
[advanced-reboot] Improve error reporting in ansible log (#903)
stepanblyschak May 9, 2019
d53846e
[continuous-reboot] wait for warmboo-finalizer to finish if warm-rebo…
stepanblyschak May 9, 2019
c36511a
Workaround python2 bug on strptime with threading (#911)
qiluo-msft May 11, 2019
0d7b517
[advanced-reboot] fix fast-reboot failure (DUT is flooding always) (#…
stepanblyschak May 14, 2019
6892fd1
updated S6100 sensors data (#922)
chitra-raghavan May 20, 2019
5255332
[deploy_pfc_pktgen] Ensure destination directory exists before copyin…
jleveque May 16, 2019
cc9aa3e
[deploy] Wait for vEOS to come back after restart (#906)
wangxin May 17, 2019
7c4b00c
Improved error handling when not all Interfaces are up (#853)
andriymoroz-mlnx May 26, 2019
1ccb7ea
[mlnx] upstream pfc storm dockers and playbooks to check/deploy on fa…
stepanblyschak May 22, 2019
ad550fe
Move image processing from advanced-reboot.yml to separate file (#930)
yvolynets-mlnx Jun 4, 2019
80e2c2b
[dhcp_relay] More detailed crafting and strict testing of OFFER and A…
jleveque Jun 5, 2019
57a0ab2
Extend warm-reboot test to include the BGP sad path (#926)
neethajohn Jun 4, 2019
84f4a6f
Fix python crash in case data plane never stop on fast-reboot (#893)
Jun 8, 2019
84cd691
[warm-reboot] Add preboot LAG sad path automation (#945)
neethajohn Jun 13, 2019
3f30920
Default to use jumbo frames for this test. MTU is configurable for an…
prsunny Jun 11, 2019
c5846e1
Fix testbed_mtu for tasks that invoke fib_test (#964)
prsunny Jun 19, 2019
af43f22
[fast/warm reboot] improve fast/warm reboot handling code (#973)
yxieca Jun 22, 2019
025376a
[fdb_mac_expire.yml]: FDB MAC Expire test case. (#785)
Jun 26, 2019
e7dd7cc
[fast reboot] allow test to replace fast-reboot script on the DUT bef…
yxieca Jun 27, 2019
e52117b
Remove fast-reboot script and related changes (#982)
neethajohn Jun 27, 2019
d3c6992
[loganalyzer] Fix the files not copied issue in run_command_with_log_…
wangxin Jun 25, 2019
fdf4caa
[Fanout] Update Mellanox ONYX fanout switch deploy code and templates…
keboliu Jun 30, 2019
e7823f1
[warm-reboot] Fix the issue where BGP info was not being extracted fr…
neethajohn Jun 28, 2019
a888eff
Improved link flap test: added smart timeout. (#977)
nazariig Jun 26, 2019
ca9f36e
[loganalyzer] Generate dump of log within 1 hour by default if failed…
wangxin Jul 10, 2019
e7bb1fd
[fast-reboot] Upgrade FW for mellanox before fast-reboot (#1000)
neethajohn Jul 10, 2019
3b52d80
[warm reboot] save config after upgrading into new image (#1003)
yxieca Jul 11, 2019
b37eeab
[everflow]: Replace deprecated mirror_session.py file with CLI (#895)
Apr 30, 2019
d61d21c
[everflow]: Change the test command from ip route to vtysh (#920)
stcheng May 20, 2019
9057b93
[everflow]: Remove deprecated tests (#923)
May 20, 2019
922b269
[everflow]: Remove unused variables (#931)
May 28, 2019
d0440a7
[everflow]: Add pause after route change (#942)
stcheng Jun 11, 2019
a3fb8ea
[EVERFLOW]: Add EVERFLOW policer test with DSCP value/mask (#932)
stcheng Jun 25, 2019
22a1721
[everflow]: Fix the tearing down procedure order (#988)
stcheng Jul 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ callback_whitelist = profile_tasks
# current IP information.
fact_caching = jsonfile
fact_caching_connection = ~/.ansible/cache
fact_caching_timeout = 600
fact_caching_timeout = 1200


# retry files
Expand Down
195 changes: 160 additions & 35 deletions ansible/group_vars/sonic/sku-sensors-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ sensors_checks:
compares:
fan: []
power:
- - SMF_S6100_ON-isa-0000/Psu1 Input/power1_input
- SMF_S6100_ON-isa-0000/Psu1 Input/power1_max
- - SMF_S6100_ON-isa-0000/Psu1 Output/power2_input
- SMF_S6100_ON-isa-0000/Psu1 Output/power2_max
- - SMF_S6100_ON-isa-0000/Psu2 Input/power3_input
- SMF_S6100_ON-isa-0000/Psu2 Input/power3_max
- - SMF_S6100_ON-isa-0000/Psu2 Output/power4_input
- SMF_S6100_ON-isa-0000/Psu2 Output/power4_max
- - SMF_S6100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_S6100_ON-isa-0000/PSU1 Input Power/power1_max
- - SMF_S6100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_S6100_ON-isa-0000/PSU1 Output Power/power2_max
- - SMF_S6100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_S6100_ON-isa-0000/PSU2 Input Power/power3_max
- - SMF_S6100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_S6100_ON-isa-0000/PSU2 Output Power/power4_max
temp:
- - coretemp-isa-0000/Core 0/temp2_input
- coretemp-isa-0000/Core 0/temp2_crit
Expand All @@ -78,10 +78,10 @@ sensors_checks:
- SMF_S6100_ON-isa-0000/Front GE/temp10_crit
- - SMF_S6100_ON-isa-0000/Front SFP+/temp11_input
- SMF_S6100_ON-isa-0000/Front SFP+/temp11_crit
- - SMF_S6100_ON-isa-0000/PSU 1/temp14_input
- SMF_S6100_ON-isa-0000/PSU 1/temp14_crit
- - SMF_S6100_ON-isa-0000/PSU 2/temp15_input
- SMF_S6100_ON-isa-0000/PSU 2/temp15_crit
- - SMF_S6100_ON-isa-0000/PSU1 Temp/temp14_input
- SMF_S6100_ON-isa-0000/PSU1 Temp/temp14_max
- - SMF_S6100_ON-isa-0000/PSU2 Temp/temp15_input
- SMF_S6100_ON-isa-0000/PSU2 Temp/temp15_max
non_zero:
fan:
- SMF_S6100_ON-isa-0000/Tray1 Fan1/fan1_input
Expand Down Expand Up @@ -121,10 +121,10 @@ sensors_checks:
- SMF_S6100_ON-isa-0000/PSU1 VOUT/in30_input
- SMF_S6100_ON-isa-0000/PSU2 VIN/in31_input
- SMF_S6100_ON-isa-0000/PSU2 VOUT/in32_input
- SMF_S6100_ON-isa-0000/Psu1 Input/power1_input
- SMF_S6100_ON-isa-0000/Psu1 Output/power2_input
- SMF_S6100_ON-isa-0000/Psu2 Input/power3_input
- SMF_S6100_ON-isa-0000/Psu2 Output/power4_input
- SMF_S6100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_S6100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_S6100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_S6100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_S6100_ON-isa-0000/XP1R0V/curr21_input
- SMF_S6100_ON-isa-0000/XP1R0V_ROV/curr22_input
temp:
Expand All @@ -139,14 +139,12 @@ sensors_checks:
- SMF_S6100_ON-isa-0000/U2 Switch board?/temp9_input
- SMF_S6100_ON-isa-0000/Front GE/temp10_input
- SMF_S6100_ON-isa-0000/Front SFP+/temp11_input
- SMF_S6100_ON-isa-0000/BCM Internal/temp12_input
- SMF_S6100_ON-isa-0000/CPU Internal/temp13_input
- SMF_S6100_ON-isa-0000/PSU 1/temp14_input
- SMF_S6100_ON-isa-0000/PSU 2/temp15_input
- SMF_S6100_ON-isa-0000/PSU1 Temp/temp14_input
- SMF_S6100_ON-isa-0000/PSU2 Temp/temp15_input

psu_skips: {}

Force10-Z9100:
Force10-Z9100-C32:
alarms:
fan:
- SMF_Z9100_ON-isa-0000/Tray1 Fan1/fan1_alarm
Expand Down Expand Up @@ -217,14 +215,14 @@ sensors_checks:
- - coretemp-isa-0000/Core 3/temp5_input
- coretemp-isa-0000/Core 3/temp5_crit
power:
- - SMF_Z9100_ON-isa-0000/Psu1 Input/power1_input
- SMF_Z9100_ON-isa-0000/Psu1 Input/power1_max
- - SMF_Z9100_ON-isa-0000/Psu1 Output/power2_input
- SMF_Z9100_ON-isa-0000/Psu1 Output/power2_max
- - SMF_Z9100_ON-isa-0000/Psu2 Input/power3_input
- SMF_Z9100_ON-isa-0000/Psu2 Input/power3_max
- - SMF_Z9100_ON-isa-0000/Psu2 Output/power4_input
- SMF_Z9100_ON-isa-0000/Psu2 Output/power4_max
- - SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_max
- - SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_max
- - SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_max
- - SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_max
fan: []
non_zero:
fan:
Expand All @@ -241,10 +239,10 @@ sensors_checks:
- SMF_Z9100_ON-isa-0000/Psu1 Fan/fan11_input
- SMF_Z9100_ON-isa-0000/Psu2 Fan/fan12_input
power:
- SMF_Z9100_ON-isa-0000/Psu1 Input/power1_input
- SMF_Z9100_ON-isa-0000/Psu1 Output/power2_input
- SMF_Z9100_ON-isa-0000/Psu2 Input/power3_input
- SMF_Z9100_ON-isa-0000/Psu2 Output/power4_input
- SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_Z9100_ON-isa-0000/PSU1 VIN/in29_input
- SMF_Z9100_ON-isa-0000/PSU1 VOUT/in30_input
- SMF_Z9100_ON-isa-0000/PSU2 VIN/in31_input
Expand All @@ -262,8 +260,135 @@ sensors_checks:
- SMF_Z9100_ON-isa-0000/Front BCM On-Board (U2)/temp4_input
- "SMF_Z9100_ON-isa-0000/BCM Switch On-Board #1 (U38)/temp6_input"
- SMF_Z9100_ON-isa-0000/Rear (U2900)/temp9_input
- SMF_Z9100_ON-isa-0000/PSU 1/temp14_input
- SMF_Z9100_ON-isa-0000/PSU 2/temp15_input
- SMF_Z9100_ON-isa-0000/PSU1 Temp/temp14_input
- SMF_Z9100_ON-isa-0000/PSU2 Temp/temp15_input

psu_skips: {}

Force10-Z9100-C8D48:
alarms:
fan:
- SMF_Z9100_ON-isa-0000/Tray1 Fan1/fan1_alarm
- SMF_Z9100_ON-isa-0000/Tray1 Fan1/fan1_fault
- SMF_Z9100_ON-isa-0000/Tray1 Fan2/fan2_alarm
- SMF_Z9100_ON-isa-0000/Tray1 Fan2/fan2_fault
- SMF_Z9100_ON-isa-0000/Tray2 Fan1/fan3_alarm
- SMF_Z9100_ON-isa-0000/Tray2 Fan1/fan3_fault
- SMF_Z9100_ON-isa-0000/Tray2 Fan2/fan4_alarm
- SMF_Z9100_ON-isa-0000/Tray2 Fan2/fan4_fault
- SMF_Z9100_ON-isa-0000/Tray3 Fan1/fan5_alarm
- SMF_Z9100_ON-isa-0000/Tray3 Fan1/fan5_fault
- SMF_Z9100_ON-isa-0000/Tray3 Fan2/fan6_alarm
- SMF_Z9100_ON-isa-0000/Tray3 Fan2/fan6_fault
- SMF_Z9100_ON-isa-0000/Tray4 Fan1/fan7_alarm
- SMF_Z9100_ON-isa-0000/Tray4 Fan1/fan7_fault
- SMF_Z9100_ON-isa-0000/Tray4 Fan2/fan8_alarm
- SMF_Z9100_ON-isa-0000/Tray4 Fan2/fan8_fault
- SMF_Z9100_ON-isa-0000/Tray5 Fan1/fan9_alarm
- SMF_Z9100_ON-isa-0000/Tray5 Fan1/fan9_fault
- SMF_Z9100_ON-isa-0000/Tray5 Fan2/fan10_alarm
- SMF_Z9100_ON-isa-0000/Tray5 Fan2/fan10_fault
- SMF_Z9100_ON-isa-0000/Psu1 Fan/fan11_alarm
- SMF_Z9100_ON-isa-0000/Psu1 Fan/fan11_fault
- SMF_Z9100_ON-isa-0000/Psu2 Fan/fan12_alarm
- SMF_Z9100_ON-isa-0000/Psu2 Fan/fan12_fault
temp:
- coretemp-isa-0000/Core 0/temp2_crit_alarm
- coretemp-isa-0000/Core 1/temp3_crit_alarm
- coretemp-isa-0000/Core 2/temp4_crit_alarm
- coretemp-isa-0000/Core 3/temp5_crit_alarm
power:
- SMF_Z9100_ON-isa-0000/CPU XP3R3V_EARLY/in1_alarm
- SMF_Z9100_ON-isa-0000/CPU XP5R0V_CP/in2_alarm
- SMF_Z9100_ON-isa-0000/CPU XP3R3V_STD/in3_alarm
- SMF_Z9100_ON-isa-0000/CPU XP3R3V_CP /in4_alarm
- SMF_Z9100_ON-isa-0000/CPU XP3R3V_STD/in3_alarm
- SMF_Z9100_ON-isa-0000/CPU XP3R3V_CP /in4_alarm
- SMF_Z9100_ON-isa-0000/CPU XP0R75V_VTT_A/in5_alarm
- SMF_Z9100_ON-isa-0000/CPU XP0R75V_VTT_B/in6_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R07V_CPU/in7_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R0V_CPU/in8_alarm
- SMF_Z9100_ON-isa-0000/CPU XP12R0V/in9_alarm
- SMF_Z9100_ON-isa-0000/CPU VDDR_CPU_2/in10_alarm
- SMF_Z9100_ON-isa-0000/CPU VDDR_CPU_1/in11_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R5V_CLK/in12_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R35V_CPU/in13_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R8V_CPU/in14_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R0V_CPU_VNN/in15_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R0V_CPU_VCC/in16_alarm
- SMF_Z9100_ON-isa-0000/CPU XP1R5V_EARLY/in17_alarm
- SMF_Z9100_ON-isa-0000/SW XP3R3V_MON/in19_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R8V_MON/in20_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R25V_MON/in21_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R2V_MON/in22_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R0V_SW_MON/in23_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R0V_ROV_SW_MON/in24_alarm
- SMF_Z9100_ON-isa-0000/SW XP5V_MB_MON/in25_alarm
- SMF_Z9100_ON-isa-0000/SW XP1R8V_FPGA_MON/in26_alarm
- SMF_Z9100_ON-isa-0000/SW XP3R3V_FPGA_MON/in27_alarm
- SMF_Z9100_ON-isa-0000/SW XP3R3V_EARLY_MON/in28_alarm

compares:
temp:
- - coretemp-isa-0000/Core 0/temp2_input
- coretemp-isa-0000/Core 0/temp2_crit
- - coretemp-isa-0000/Core 1/temp3_input
- coretemp-isa-0000/Core 1/temp3_crit
- - coretemp-isa-0000/Core 2/temp4_input
- coretemp-isa-0000/Core 2/temp4_crit
- - coretemp-isa-0000/Core 3/temp5_input
- coretemp-isa-0000/Core 3/temp5_crit
power:
- - SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_max
- - SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_max
- - SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_max
- - SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_max
fan: []
non_zero:
fan:
- SMF_Z9100_ON-isa-0000/Tray1 Fan1/fan1_input
- SMF_Z9100_ON-isa-0000/Tray1 Fan2/fan2_input
- SMF_Z9100_ON-isa-0000/Tray2 Fan1/fan3_input
- SMF_Z9100_ON-isa-0000/Tray2 Fan2/fan4_input
- SMF_Z9100_ON-isa-0000/Tray3 Fan1/fan5_input
- SMF_Z9100_ON-isa-0000/Tray3 Fan2/fan6_input
- SMF_Z9100_ON-isa-0000/Tray4 Fan1/fan7_input
- SMF_Z9100_ON-isa-0000/Tray4 Fan2/fan8_input
- SMF_Z9100_ON-isa-0000/Tray5 Fan1/fan9_input
- SMF_Z9100_ON-isa-0000/Tray5 Fan2/fan10_input
- SMF_Z9100_ON-isa-0000/Psu1 Fan/fan11_input
- SMF_Z9100_ON-isa-0000/Psu2 Fan/fan12_input
power:
- SMF_Z9100_ON-isa-0000/PSU1 Input Power/power1_input
- SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_Z9100_ON-isa-0000/PSU1 Output Power/power2_input
- SMF_Z9100_ON-isa-0000/PSU2 Input Power/power3_input
- SMF_Z9100_ON-isa-0000/PSU2 Output Power/power4_input
- SMF_Z9100_ON-isa-0000/PSU1 VIN/in29_input
- SMF_Z9100_ON-isa-0000/PSU1 VOUT/in30_input
- SMF_Z9100_ON-isa-0000/PSU2 VIN/in31_input
- SMF_Z9100_ON-isa-0000/PSU2 VOUT/in32_input
- SMF_Z9100_ON-isa-0000/XP1R0V/curr21_input
- SMF_Z9100_ON-isa-0000/XP1R0V_ROV/curr22_input

temp:
- coretemp-isa-0000/Core 0/temp2_input
- coretemp-isa-0000/Core 1/temp3_input
- coretemp-isa-0000/Core 2/temp4_input
- coretemp-isa-0000/Core 3/temp5_input
- SMF_Z9100_ON-isa-0000/CPU On-board (U2900)/temp1_input
- "SMF_Z9100_ON-isa-0000/BCM Switch On-Board #1 (U44)/temp2_input"
- SMF_Z9100_ON-isa-0000/Front BCM On-Board (U4)/temp3_input
- SMF_Z9100_ON-isa-0000/Front BCM On-Board (U2)/temp4_input
- "SMF_Z9100_ON-isa-0000/BCM Switch On-Board #1 (U38)/temp6_input"
- SMF_Z9100_ON-isa-0000/Rear (U2900)/temp9_input
- SMF_Z9100_ON-isa-0000/PSU1 Temp/temp14_input
- SMF_Z9100_ON-isa-0000/PSU2 Temp/temp15_input

psu_skips: {}

Expand Down
2 changes: 1 addition & 1 deletion ansible/library/minigraph_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def parse_xml(filename, hostname):
s100G_ports = [x for x in range(24, 40, 4)] + [x for x in range(88, 104, 4)]

for i in s50G_ports:
alias = "etp%d" % (i / 4 + 1) + "a" if i % 4 == 0 else "b"
alias = "etp%d" % (i / 4 + 1) + ("a" if i % 4 == 0 else "b")
port_alias_map[alias] = "Ethernet%d" % i
for i in s100G_ports:
alias = "etp%d" % (i / 4 + 1)
Expand Down
2 changes: 1 addition & 1 deletion ansible/linkstate/testbed_inv.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read_config():
def parse_testbed_configuration(filename, target):
with open(filename) as fp:
for line in fp:
if line.startswith(target):
if line.startswith(target + ','):
splitted_line = line.split(",")
ptf_name = splitted_line[1]
topo_name = splitted_line[2]
Expand Down
2 changes: 1 addition & 1 deletion ansible/plugins/connection/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _spawn_connect(self):
self._display.vvv("SSH: EXEC {0}".format(' '.join(cmd)),
host=self.host)
last_user = user
client = pexpect.spawn(' '.join(cmd), env={'TERM': 'dumb'})
client = pexpect.spawn(' '.join(cmd), env={'TERM': 'dumb'}, timeout=60)
i = client.expect(['[Pp]assword:', pexpect.EOF])
if i == 1:
self._display.vvv("Server closed the connection, retry in %d seconds" % self.connection_retry_interval, host=self.host)
Expand Down
3 changes: 0 additions & 3 deletions ansible/roles/eos/handlers/main.yml

This file was deleted.

22 changes: 19 additions & 3 deletions ansible/roles/eos/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@
- name: build a startup config
template: src="{{ topo }}-{{ props.swrole }}.j2"
dest=/mnt/flash/startup-config
when: configuration is defined
notify:
- Restart the box
when: hostname in configuration

- name: Restart the box
command: /sbin/shutdown -r now "Ansible updates triggered"
when: hostname in configuration

- name: Pause for reboot
pause: seconds=30
when: hostname in configuration

- name: Wait for VM to come up
wait_for:
host: "{{ ansible_ssh_host }}"
port: 22
state: started
delay: 10
timeout: 600
connection: local
when: hostname in configuration
3 changes: 3 additions & 0 deletions ansible/roles/eos/templates/t0-64-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ route-map DEFAULT_ROUTES permit
{% for podset in range(0, props.podset_number) %}
{% for tor in range(0, props.tor_number) %}
{% for subnet in range(0, props.tor_subnet_number) %}
{# Skip tor 0 podset 0 #}
{% if podset != 0 or tor != 0 %}
{% set suffix = ( (podset * props.tor_number * props.max_tor_subnet_number * props.tor_subnet_size) +
(tor * props.max_tor_subnet_number * props.tor_subnet_size) +
(subnet * props.tor_subnet_size) ) %}
Expand All @@ -49,6 +51,7 @@ route-map DEFAULT_ROUTES permit
{% set prefixlen_v4 = (32 - ((props.tor_subnet_size | log(2))) | int) %}
ip route {{ octet1 }}.{{ octet2 }}.{{ octet3 }}.{{ octet4 }}/{{ prefixlen_v4 }} {{ props.nhipv4 }}
ipv6 route {{ '20%02x' % octet1 }}:{{ '%02X%02X' % (octet2, octet3) }}:0:{{ '%02X' % octet4 }}::/64 {{ props.nhipv6 }}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
Expand Down
51 changes: 51 additions & 0 deletions ansible/roles/fanout/tasks/fanout_mlnx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
##############################################################################################
### playbook to deploy the fanout swtich
### Use this playbook to deploy the VLAN configurations of fanout leaf switch in SONiC testbed
### This playbook will run based on hardware flatform. Each fanout switch hardware type has its
### own unique feature and configuration command or format. Unless you use the hardware swtich
### specified in this playbook, you would need to come up with your own fanout switch deployment
### playbook
################################################################################################
# Gather minigraph facts
- name: Gathering lab graph facts about the device
conn_graph_facts: host={{ inventory_hostname }}
connection: local
tags: always

- name: prepare fanout switch admin login info
set_fact: ansible_ssh_user={{ fanout_admin_user }} ansible_ssh_pass={{ fanout_admin_password }} peer_hwsku={{device_info['HwSku']}}
tags: always

- set_fact:
fanout_root_user: "user"
fanout_root_pass: "password"
tags: deploy,pfcwd_config,check_pfcwd_config

##########################################################
# deploy tasks to deploy default configuration on fanout #
##########################################################
- block:
- debug: msg={{ inventory_hostname }}
- name: build fanout startup config for fanout mlnx-os-switch
action: apswitch template=mlnx_fanout.j2
connection: switch
args:
login: "{{ switch_login['MLNX-OS'] }}"
vars:
action_variable: "deploy"
when: peer_hwsku == "MLNX-OS"
tags: deploy

###################################################################
# build, deploy and start docker images for the PFC WD test #
###################################################################
- include: mlnx/deploy_pfcwd_fanout.yml
when: peer_hwsku == "MLNX-OS"
tags: deploy,pfcwd_config

###################################################################
# check and recover docker images for the PFC WD test #
###################################################################
- include: mlnx/check_pfcwd_fanout.yml
when: peer_hwsku == "MLNX-OS"
tags: check_pfcwd_config
Loading