Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
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
0d62161
Merge EVERFLOW test updates #1010
stcheng Jul 15, 2019
5da3759
Add test parameter for increasing sniff time (#1011)
neethajohn Jul 16, 2019
54af304
Add tests for interface naming mode (#716)
chitra-raghavan Mar 21, 2019
b15ac79
[warm reboot] always save the configuration (#1013)
yxieca Jul 16, 2019
674c462
[ecn]: Modified the ecn profiles in script to LOSSLESS as all platfor…
chitra-raghavan Jul 17, 2019
703c350
[testbed-cli] Fix and enhance usage statement (#795)
jleveque Jan 30, 2019
1ddd9e0
Remove duplicated case branches in testbed-cli.sh (#854)
wangxin Apr 5, 2019
4aec75a
[testbed-cli] flush ip neighbor after add_topo (#881)
mykolaf May 27, 2019
a0608f2
rename eos login/password variable name for clarity
lguohan Jan 30, 2019
5496ab7
[vm_set] Reduce the testbed-cli.sh start-vms time from 3 hours to 20 …
wangxin Jul 9, 2019
993d555
[ansible-plugin] back port stdout callback plugin 'yaml' from ansible…
dawnbeauty Jul 18, 2019
b2a2156
[fast/warm reboot] check the existence of correct file as stated (#1018)
yxieca Jul 18, 2019
d9afea5
[sonic_upgrade] remove none-current and non-next images (#1020)
yxieca Jul 18, 2019
f218801
[minigraph] allow generating minigraph without data plane acl defined…
yxieca Jul 19, 2019
f1462af
[linkstate] fix linkstate scripts (#965)
stepanblyschak Jul 1, 2019
041fbd9
[bgp-gr-helper] Add script for testing the BGP graceful restart helpe…
wangxin Jul 21, 2019
6429d36
Add time diff check between BGP v4 and v6 peers (#1014)
neethajohn Jul 23, 2019
ce5aaef
rename sonic password variable names
lguohan Jan 30, 2019
ab9361d
move eos/sonic creds into group_vars/all to share them among differen…
lguohan Jan 30, 2019
998b959
[warm-reboot] Add Preboot n BGP member down and n Lag down tests (#1004)
neethajohn Jul 24, 2019
2b2f85e
[advanced-reboot] help switch to populate fdb table before test (#1035)
stepanblyschak Jul 30, 2019
57e4120
[mlnx][fanout] disable mac learning on fanout (#1041)
stepanblyschak Jul 31, 2019
d9ec5f8
[add-topo] Add support for specifying PTF docker image tag (#1046)
wangxin Aug 2, 2019
454ed3c
[dhcp_relay] Set Broadcast flag for all test packets (#1030)
bbinxie Aug 1, 2019
374c5d1
[CRM] Wait more time for CRM stats to update (#1053)
wangxin Aug 5, 2019
3a008e9
Improve vxlan decap test. Make a test after vxlan removal (#914)
pavel-shirshov May 16, 2019
a2acb92
Add extended statistics output for vxlan-decap test (#1049)
pavel-shirshov Aug 2, 2019
a26bca8
[vxlan decap]: Use one tunnel with N tunnel maps. (#1057)
pavel-shirshov Aug 8, 2019
7ba1287
Rename fan driver for Arista 7170-64C and 7260CX3-64 (#861)
Staphylo Apr 9, 2019
1dc9cf7
[Config Test] swss exit after remove port channel due to SAI not foun…
gord1306 Aug 15, 2019
a9d3196
Some improvements for vxlan decap test (#1071)
pavel-shirshov Aug 16, 2019
82835d2
[warm-reboot] Add lag flap check after warm boot (#1066)
neethajohn Aug 19, 2019
5c297f0
Add sensor data for Arista-7260CX3-Q64 (#1074)
neethajohn Aug 19, 2019
d6f2ebe
[vxlan-decap]: Improvements of the test (#1075)
pavel-shirshov Aug 20, 2019
bb17dcf
[everflow/policer] remove route after session is removed (#1060)
stepanblyschak Aug 8, 2019
f9c9335
[vxlan-decap]: Generate mapping between vlan member ports and vlan ip…
pavel-shirshov Aug 21, 2019
c552709
[vm-set]: Add setting of RCVBUF default parameter (#1076)
pavel-shirshov Aug 21, 2019
a065967
[minigraph]: Add ERSPANV6 ACL slot (#935)
Jun 5, 2019
033aa45
[everflow]: Add Mellanox support due to specific GRE packet format (#…
stcheng Aug 21, 2019
68f7714
[warm-reboot] Preboot sad path automation for n lag members (#1036)
neethajohn Aug 28, 2019
9df3e35
Backport pytest infra and scripts to 201811 branch (#1080)
wangxin Sep 4, 2019
fd6239e
Merge pull request #1105 from sumukhatv/m0-nightly
sumukhatv Sep 10, 2019
9ddd92e
Fix trying to access match group when regex match failed (#1095)
neethajohn Sep 10, 2019
4cb5653
Preboot sad path automation for n vlan ports (#1096)
neethajohn Sep 10, 2019
839b363
Fix issue 2414 by always using static arp/neighbour entry (#1106)
stephenxs Sep 11, 2019
7843f70
[fib] address an error left in manual merge (#1110)
yxieca Sep 12, 2019
5e04d50
Fix merge error for #1096 (#1112)
neethajohn Sep 12, 2019
845b7ac
Avoid FDB clear (#1116)
neethajohn Sep 16, 2019
4aa0693
Improve exit code return in shell scripts (#1117)
wangxin Sep 17, 2019
04badf6
[everflow_policer] stabilize policer test case (#1098)
stepanblyschak Sep 11, 2019
779eada
[everflow]: Add pause to stablize the test (#1102)
stcheng Sep 17, 2019
8878e43
Merge pull request #1118 from bbinxie/patch-3
sumukhatv Sep 18, 2019
dc5fba0
Make link flap timeout configurable. (#1062)
yvolynets-mlnx Sep 19, 2019
2eba20a
Update CRM test to handle acl counter on different platforms. (#983)
iris00522 Jul 2, 2019
f5be0a6
Update CRM test to support SPC2 (#916)
yvolynets-mlnx May 22, 2019
87ec6e4
[minigraph_facts] Refactor such that port names and aliases are neve…
jleveque Apr 5, 2019
0886551
[dhcp_relay] Correct to use port alias instead of port name (#998)
gord1306 Jul 9, 2019
dc4ef33
Add SKU sensors data for Arista-7050-QX-32S (#1132)
zzhiyuan Sep 27, 2019
dcf774d
Fix Asym PFC teardown: provide valid port OID. (#1147)
nazariig Oct 2, 2019
c3a5909
Warm-reboot control plane assistant test (#1124)
pavel-shirshov Oct 2, 2019
7999ce0
M0 testcases (#1144)
sumukhatv Oct 3, 2019
1b9a128
Test case 1 of PFC watchdog against warm-reboot: happy path (#825)
wendani Oct 4, 2019
5a29d69
Let storm all test run on queue index 3 (#1133)
wendani Oct 4, 2019
fe9900d
[pytest]porting back changes from master to 201811 (#1145)
keboliu Oct 8, 2019
8aa1dc6
Align Asym PFC configuration commands. (#1122)
nazariig Sep 19, 2019
4de6e7a
Improve the scripts for preparing PTF interfaces 201811 (#1142)
wangxin Oct 11, 2019
f523ec5
Test case 2 of PFC watchdog against warm-reboot: sad path (#834)
wendani Oct 10, 2019
4f69429
Test case 3 of PFC watchdog against warm-reboot: random storming (#837)
wendani Oct 14, 2019
07003d0
Merge pull request #1119 from wendani/qos_sai_master
lguohan Sep 27, 2019
8b0c582
[bgp_speaker] Flush secondary IP address assigned to PTF interface in…
wangxin Oct 15, 2019
342269c
Dump only the current result and summary files for debugging and trou…
wendani Oct 3, 2019
1a9d00d
Add the capability to check if the number of exact matches is equal t…
wendani Oct 3, 2019
05986b0
Use lookup('pipe', 'date +%H:%M:%S') in place of ansible_date_time.ti…
wendani Oct 4, 2019
4a14c38
Allow log analyzer to take a specified start marker (#1135)
wendani Oct 3, 2019
ff29dce
Fine control PFC storm stop at Arista & Mellanox fanout (#1134)
wendani Oct 4, 2019
acd54a6
pfc_gen: add the flexiblity to defer storm start and stop at Arista f…
wendani Oct 14, 2019
cf25a70
Merge pull request #1143 from wendani/qos_sai_master1
lguohan Oct 14, 2019
69975bb
PG headroom change for th2 (#1156)
wendani Oct 15, 2019
2c64632
qos sai: refactor tx enable/disable (#1162)
wendani Oct 16, 2019
620d083
qos sai: enable headroom pool test on Arista-7260CX3-Q64 (#1163)
wendani Oct 16, 2019
74f970f
[platform/test_reboot]Only check reboot-cause for power off and watch…
stephenxs Oct 21, 2019
4335daf
[warm-reboot] Routing change (add/del) during warm boot automation (#…
neethajohn Oct 17, 2019
dc35040
pfcwd warm-reboot: sleep to allow control-plane message to flow into …
wendani Oct 18, 2019
46184c5
Extend tx enable/disable to support port id list (#1168)
wendani Oct 21, 2019
4196616
Sleep to allow counter change propagate to COUNTERS_DB (#1174)
wendani Oct 22, 2019
ca7d19a
[advanced-reboot] fix syntax error (#1176)
mykolaf Oct 23, 2019
30df644
【reboot]: Fix the wait condition (#1178)
neethajohn Oct 23, 2019
a684637
update sensors path for seastone (#1155)
bbinxie Oct 25, 2019
7a3ef41
PFC wd warm-reboot: Ensure default pfc wd config is used for warm-reb…
wendani Oct 29, 2019
e02364f
Support two hw platforms in the ferret.py (#1183)
pavel-shirshov Oct 28, 2019
fc2f88c
PFC storm stop on arista fanout: use if else semantics to prevent com…
wendani Oct 31, 2019
a9b44c3
Fix typo in ferret.py (#1192)
pavel-shirshov Nov 1, 2019
a3f092f
[mlnx][fanout] simplify mlnx pfc storm on fanout functionality (#1195)
stepanblyschak Nov 4, 2019
07b3d02
[sensors] use platform string to index sensor test data (#1193)
yxieca Nov 4, 2019
63911fc
[pfcwd] ignore error log about deprecated API (mellanox) (#1209)
stepanblyschak Nov 13, 2019
a7f4a4e
[test_sfp.py]Ignore the error logs for known issue in SFP reset & LPM…
stephenxs Nov 19, 2019
cfbeafd
[tests] add sym link to ansible.cfg for pytest-tests (#1172)
stepanblyschak Nov 9, 2019
9416328
Add port map for Q64 hwsku (#1199)
wendani Nov 11, 2019
3490043
Merge pull request #1219 from renukamanavalan/clet (#1236)
renukamanavalan Dec 1, 2019
7487c8a
[test behavior] disable allow_recover by default (#1241)
yxieca Nov 29, 2019
65f4089
[interface.yml] Raise the failure again in the rescue block (#1247)
wangxin Dec 2, 2019
ac4f7ed
Break up Pfcwd test into subtests (#1258)
neethajohn Dec 4, 2019
47d98fe
[201811][dhcp_relay] Add link state change tests (#1264)
jleveque Dec 9, 2019
0c15a8d
Change snmp community string before minigraph deploy (#1276)
neethajohn Dec 11, 2019
cb40a40
Update topo_facts from configlet, if present. (#1270)
renukamanavalan Dec 12, 2019
018c76d
[pytest]: Extended FDB test with ARP verification (#1277)
yvolynets-mlnx Dec 15, 2019
1639af8
[dhcp_relay] Increase duration to wait for interface state changes (#…
jleveque Dec 18, 2019
b4e4e7e
Drop the external flag and instead check for clet file presence. (#1295)
renukamanavalan Dec 18, 2019
ac6da0f
[201811] Make tests/ptftests a proper symlink (#1298)
jleveque Dec 19, 2019
02cc537
[Bug fix] Stop pmon sensord task in PSU test to avoid fail test case…
keboliu Dec 23, 2019
7f42bf9
Break down warm boot sad into multiple testcases (#1285)
neethajohn Dec 16, 2019
6e61b2c
Add HW Sku for platform info pytest (#1301)
sujinmkang Dec 23, 2019
dbd70c7
[fanout] Deploy Mellanox fanout using non-root account (#1212) (#1315)
wangxin Jan 8, 2020
0a15d4f
Fix platform PSU consistency checking issue (#1325)
wangxin Jan 15, 2020
b9024d6
[advanced-reboot] assert on total_disrupt_time (#1308)
stepanblyschak Jan 17, 2020
6e60b31
Revert "[advanced-reboot] assert on total_disrupt_time (#1308)" (#1346)
yxieca Jan 19, 2020
346fc34
[mellanox][pfcwd] ignore next_hop_cnt deprecate message (#1355)
stepanblyschak Jan 23, 2020
dff7899
Added required files as symbolic link (#1356)
renukamanavalan Jan 24, 2020
943c9db
Fix Ansible compatibility issues in warm-reboot sad scripts (#1357)
neethajohn Jan 26, 2020
41111ed
[deploy server] changes to make server deployment smoother (#1371)
yxieca Feb 8, 2020
414c95f
[platform/test_sfp] backport (#1338) to 201811 branch. (#1378)
stephenxs Feb 11, 2020
cb6ad18
[test_reboot]Wait a few seconds before checking the reboot-cause (#1367)
stephenxs Feb 9, 2020
de68bbe
Warm reboot is not enabled on Mellanox ACS-MSN2410 on 201811 yet (#1382)
wangxin Feb 16, 2020
e5fdff2
[swap_syncd]: Correct privilege for sysctl (#1421)
lguohan Mar 5, 2020
13b8093
[qos_sai]: Add watermark and DWRR parameters for Arista-7060CX-32S-C3…
lguohan Mar 5, 2020
460f68e
[qos_sai]: Fix QOS parameters for S6100 and Arista-7260CX3-D108C8 (#1…
lguohan Mar 5, 2020
19dfdc2
[qos_sai]: Fix headroom parameters for Arista-7260cx3-Q64 (#1424)
neethajohn Mar 6, 2020
dcf8288
Added a knob to disable buffer watermark and dscp-pg mapping test (#1…
neethajohn Mar 10, 2020
20b747b
[wr_arp] Added ssl support in ferret.py for wr_arp test case (#1415)
Mar 6, 2020
63e642c
Fix ARP issues seen in QOS tests (#1420)
neethajohn Mar 10, 2020
426971d
[qos_sai]: Enable error handling and fix issues due to undefined vars…
neethajohn Mar 10, 2020
85237bd
[wr_arp] change wr_arp.yml according to the ansible version (#1446)
yxieca Mar 13, 2020
7b78231
Assign a random port when no ports are selected (#1444)
neethajohn Mar 12, 2020
289265f
Add QOS parameters for Force10-S6000 (#1449)
neethajohn Mar 13, 2020
600e59b
[qos] Fix script to accomodate the per-port buffer settings (#1450)
neethajohn Mar 13, 2020
a1cc3a5
[advanced reboot] Add Paramiko module for device connection (#1542) (…
tahmed-dev Apr 8, 2020
e3d1946
Configure and enable core uploader (#1522)
renukamanavalan Apr 8, 2020
d808e13
[ansible] Increase DUT reboot command timeout (#1558)
tahmed-dev Apr 10, 2020
5687d87
changes to make PR#1561 compatible for 201811 (#1562)
abdosi Apr 13, 2020
dd1b923
[fast-reboot]: Fix IP range overlapping. (#1629)
nazariig May 7, 2020
5e4994f
Fix the platform_info test failure because of callback loader (#1667)
sujinmkang May 14, 2020
3a87025
Update Th buffer params for Alpha change (#1676)
neethajohn May 18, 2020
486047c
Fix for Issue https://github.com/Azure/sonic-buildimage/pull/4530 (#1…
abdosi May 31, 2020
11717fd
[sonic image installer] remove config_db.json before booting into new…
yxieca Jun 2, 2020
f887ff5
Old SONiC images may not have core_analyzer.rc.json file. (#1729)
renukamanavalan Jun 3, 2020
253e225
Qos SAI test restructure (#1682) (#1726)
neethajohn Jun 6, 2020
679dc84
[QoS] Support designating the packet size when testing water mark of …
stephenxs May 26, 2020
0daf720
[Mellanox] Provide qos parameters for packet size and 40G 40m (#1709)
stephenxs May 29, 2020
a9d7c25
Include pkt size parameter for PG SharedWM tests (#1711)
neethajohn May 29, 2020
c8eb323
[install image] removing config_db.json with -f option (#1753)
yxieca Jun 10, 2020
6d804ef
[pfc_wd] Detach pfc_gen.py from terminal when run in background on Me…
Jun 16, 2020
ad7e36b
Fix Ported for 201811 for master (#1814)
abdosi Jun 24, 2020
bf6d836
After this PR https://github.com/Azure/sonic-utilities/pull/838 (#1803)
abdosi Jun 23, 2020
5cb4aaf
[service_acl] Wait until SSH is stopped rather than waiting for start…
jleveque Jun 26, 2020
0446377
Wrong DIP on packet (#1171)
crzas Jul 8, 2020
fbbc6c5
Add support for starting stopping VMs of specified test setup (#1878)
wangxin Jul 13, 2020
79c562d
Fix for COPP Failure on T1-Lag Topology. (#1893)
abdosi Jul 14, 2020
b271f7e
[201811][bgp_speaker] Terminate all processes with 'exabgp' in the co…
jleveque Jul 15, 2020
5be5e3c
[201811][bgp_speaker] Ignore errors upon terminating exabgp processes…
jleveque Jul 16, 2020
a4b0794
[ansible] Add revert_syncd task to automate cleaning up after swap_sy…
daall Jul 17, 2020
8663646
Two changes are being done here:- (#2021)
abdosi Aug 4, 2020
9dbcc95
[show interface] make show interface compatible w or w/o fec informat…
yxieca Aug 5, 2020
8e76bfb
Ported master PR https://github.com/Azure/sonic-mgmt/pull/1825 (#2157)
abdosi Aug 31, 2020
1511ae6
[201811] Port changes for 7050QX-32S-S4Q31 into 201811 branch (#3570)
saiarcot895 Jun 2, 2021
7212f4b
[201811] minigraph: Fix issue of alias name vs sonic name being used …
saiarcot895 Jun 8, 2021
a73cad2
[201811] Revert ansible syntax changes and clean up t0-35 topo defini…
saiarcot895 Jun 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions ansible/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ deprecation_warnings = False

# set plugin path directories here, separate with colons
action_plugins = plugins/action
# callback_plugins = /usr/share/ansible_plugins/callback_plugins
callback_plugins = plugins/callback
connection_plugins = plugins/connection
# lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
# vars_plugins = /usr/share/ansible_plugins/vars_plugins
Expand Down Expand Up @@ -157,7 +157,7 @@ callback_whitelist = profile_tasks
# current IP information.
fact_caching = jsonfile
fact_caching_connection = ~/.ansible/cache
fact_caching_timeout = 1200
fact_caching_timeout = 86400


# retry files
Expand Down
148 changes: 148 additions & 0 deletions ansible/config_sonic_basedon_testbed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
connection: local
when: "VM_topo | bool"

- name: get connection graph if defined for dut (ignore any errors)
conn_graph_facts: host="{{ inventory_hostname }}"
connection: local
ignore_errors: true

- name: find interface name mapping and individual interface speed if defined
port_alias: hwsku="{{ hwsku }}"

Expand Down Expand Up @@ -102,6 +107,73 @@
dest=minigraph/{{ inventory_hostname}}.{{ topo }}.xml
connection: local
when: local_minigraph is defined and local_minigraph|bool == true

- block:
- name: Init telemetry keys
set_fact:
server_key: ""
server_cer: ""
dsmsroot_key: ""
dsmsroot_cer: ""
dir_path: ""

- name: read server key
set_fact:
server_key: "{{ telemetry_certs['server_key'] }}"
when: telemetry_certs['server_key'] is defined

- name: read server cer
set_fact:
server_cer: "{{ telemetry_certs['server_cer'] }}"
when: telemetry_certs['server_cer'] is defined

- name: read dsmsroot key
set_fact:
dsmsroot_key: "{{ telemetry_certs['dsmsroot_key'] }}"
when: telemetry_certs['dsmsroot_key'] is defined

- name: read dsmsroot cer
set_fact:
dsmsroot_cer: "{{ telemetry_certs['dsmsroot_cer'] }}"
when: telemetry_certs['dsmsroot_cer'] is defined

- name: read directory path
set_fact:
dir_path: "{{ telemetry_certs['dir_path'] }}"
when: telemetry_certs['dir_path'] is defined

- name: Create telemetry directory
file:
path: "{{ dir_path }}"
state: directory
mode: '0755'
become: true

# {{ server_cer }}/ streamingtelemetryserver.cer need to be copied on PTFDocker and renamed as dsmsroot.cer
- name: Generate server cert using openssl.
command: openssl req \
-x509 \
-sha256 \
-nodes \
-newkey rsa:2048 \
-keyout "{{ server_key }}"
-subj "/CN=ndastreamingservertest"
-out "{{ server_cer }}"
become: true

# {{ dsmsroot_cer }}/ dsmsroot.cer need to be copied on PTFDocker and renamed as streamingtelemetryclient.cer
# {{ dsms_key }}/ dsmsroot.key need to be copied and renamed as streamingtelemetryclient.key
- name: Generate dsmsroot cert using openssl.
command: openssl req \
-x509 \
-sha256 \
-nodes \
-newkey rsa:2048 \
-keyout "{{ dsmsroot_key }}"
-subj "/CN=ndastreamingclienttest"
-out "{{ dsmsroot_cer }}"
become: true


- block:
- name: saved original minigraph file in SONiC DUT(ignore errors when file doesnot exist)
Expand All @@ -114,6 +186,77 @@
dest=/etc/sonic/minigraph.xml
become: true

- name: Test if configlet script exist
stat:
path: vars/configlet/{{ topo }}/apply_clet.sh
register: stat_result
delegate_to: localhost

- name: debug print stat_result
debug:
msg: Stat result is {{ stat_result }}

- name: Copy corresponding configlet files if exist
copy: src=vars/configlet/{{ topo }}/
dest=/etc/sonic/
become: true
when: stat_result.stat.exists is defined and stat_result.stat.exists

- name: Init account key and proxy
set_fact:
core_key: ""
core_proxy: ""

- name: Test if core_analyzer.rc.json exists
stat:
path: /etc/sonic/core_analyzer.rc.json
register: rc_stat

- name: read account key
set_fact:
core_key: "{{ corefile_uploader['azure_sonic_core_storage']['account_key'] }}"
when: rc_stat.stat.exists is defined and rc_stat.stat.exists and corefile_uploader['azure_sonic_core_storage']['account_key'] is defined

- name: read https proxy
set_fact:
core_proxy: "{{ corefile_uploader['env']['https_proxy'] }}"
when: rc_stat.stat.exists is defined and rc_stat.stat.exists and corefile_uploader['env']['https_proxy'] is defined

- name: Put secret in core_analyzer.rc.json
lineinfile:
name: /etc/sonic/core_analyzer.rc.json
regexp: '(^.*)account_key'
line: '\1account_key": "{{ core_key }}",'
backrefs: yes
become: true
when: core_key != ""

- name: Put https-proxy in core_analyzer.rc.json
lineinfile:
name: /etc/sonic/core_analyzer.rc.json
regexp: '(^.*)https_proxy'
line: '\1https_proxy": "{{ core_proxy }}"'
backrefs: yes
become: true
when: core_proxy != ""

- name: enable core uploader service
become: true
command: systemctl enable core_uploader.service
when: core_key != ""

- name: start core uploader service
become: true
command: systemctl start core_uploader.service
when: core_key != ""

- name: Replace snmp community string
lineinfile:
name: /etc/sonic/snmp.yml
regexp: '^snmp_rocommunity:'
line: 'snmp_rocommunity: {{ snmp_rocommunity }}'
become: true

- name: disable automatic minigraph update if we are deploying new minigraph into SONiC
lineinfile:
name: /etc/sonic/updategraph.conf
Expand All @@ -135,6 +278,11 @@
become: true
shell: config bgp startup all

- name: execute configlet application script, which applies configlets in strict order.
become: true
shell: bash "/etc/sonic/apply_clet.sh"
when: stat_result.stat.exists is defined and stat_result.stat.exists

- name: execute cli "config save -y" to save current minigraph as startup-config
become: true
shell: config save -y
Expand Down
7 changes: 7 additions & 0 deletions ansible/group_vars/all/corefile_uploader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Configure core file storage secret key and https-proxy as required
#
#corefile_uploader:
# azure_sonic_core_storage:
# account_key: "Your Secret"
# env:
# https_proxy: "http://10.10.10.10:8000"
11 changes: 11 additions & 0 deletions ansible/group_vars/all/creds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eos_default_login: "admin"
eos_default_password: ""
eos_login: admin
eos_password: 123456
eos_root_password: 123456

sonic_login: "admin"
sonic_default_passwords:
- "YourPaSsWoRd"
- "password"
sonic_password: "password"
10 changes: 10 additions & 0 deletions ansible/group_vars/all/telemetry_certs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Configure telemetry server and dsmsroot key,cer

telemetry_certs:
server_key: "/etc/sonic/telemetry/streamingtelemetryserver.key"
server_csr: "/etc/sonic/telemetry/streamingtelemetryserver.csr"
server_cer: "/etc/sonic/telemetry/streamingtelemetryserver.cer"
dsmsroot_key: "/etc/sonic/telemetry/dsmsroot.key"
dsmsroot_csr: "/etc/sonic/telemetry/dsmsroot.csr"
dsmsroot_cer: "/etc/sonic/telemetry/dsmsroot.cer"
dir_path: "/etc/sonic/telemetry"
4 changes: 0 additions & 4 deletions ansible/group_vars/eos/creds.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ansible/group_vars/eos/eos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# snmp variables
snmp_rocommunity: strcommunity
snmp_location: str

bgp_gr_timer: 700
2 changes: 2 additions & 0 deletions ansible/group_vars/fanout/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ansible_ssh_user: user
ansible_ssh_pass: password
fanout_mlnx_user: admin
fanout_mlnx_password: admin
fanout_sonic_user: admin
fanout_sonic_password: password
Loading