Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
407 commits
Select commit Hold shift + click to select a range
9a1bebe
[telemetry]: change the service dependency from swss to database (#3072)
jipanyang Jun 24, 2019
331866d
[sonic-cfggen] Add Mellanox platform specific code to read base mac f…
keboliu Jun 25, 2019
94b3c36
[device/celestica] Implement PSU APIs based on the new platform API (…
Jun 25, 2019
b92d980
Remapping S6000 platform files under Vendor (DellEmc) specific direct…
gengankarthik Jun 25, 2019
6961816
fix fast reboot compatibility (#3083)
stepanblyschak Jun 26, 2019
dbdc166
Add new hwsku Arista-7050QX32S-Q32 (#3091)
wendani Jun 28, 2019
8c3fdfd
DellEmc(Z9264f): Bug fix in show platform psustatus cli (#3033)
gengankarthik Jun 28, 2019
0b8c1a1
[devices]: Add lpmode in sfputil.py for Accton AS6712-32X (#3095)
brandonchuang Jun 29, 2019
5ec23df
[devices]: Add lpmode in sfputil.py for Accton AS5712-54X (#3094)
brandonchuang Jun 29, 2019
a80baaf
[device/Arista] Update drivers submodules (#3092)
Staphylo Jun 29, 2019
0695a64
[devices]: Add a new supported device DellEMC s5232f (#3090)
srideepDell Jun 29, 2019
fe45a0d
[devices]: DELLEMC: Z9100,S6100 Exporting Device Last PowerOn Reason …
sridhar-ravindran Jun 29, 2019
8b225d3
[devices]: Add lpmode in sfputil.py for Accton AS7512 (#3005)
brandonchuang Jun 29, 2019
9b0d1b7
[devices]: Add support as9716 platform (#2993)
jostar-yang Jun 29, 2019
4f737f8
[devices]: DellEMC S6100 Watchdog support (#2835)
Jun 29, 2019
1616f48
[device/celestica]: Add firmware management api based on the new plat…
Jul 2, 2019
22c0f4d
[devices]: fix SFP initialization in the Chassis for mlnx-platform-ap…
txj36 Jul 2, 2019
2ec473c
[devices]: Add lpmode in sfputil.py for Accton AS7312-54XS (#3007)
brandonchuang Jul 2, 2019
dc74724
[ARISTA] adding 7060_cs32s to eMMC exclusions (#2982)
MichelMoriniaux Jul 2, 2019
dc7854c
[pmon]: update sonic-platform-daemons sub module pointer (#3106)
keboliu Jul 2, 2019
86495a1
[Mellanox] Support new platform api sfp part (#3101)
stephenxs Jul 2, 2019
469b2bb
[devices]: DellEMC S5232f > /64 prefix route support bug fix. (#3111)
AshokDaparthi Jul 3, 2019
d0981c4
[devices]: Add lpmode in sfputil.py for Accton AS7312-54X (#3006)
brandonchuang Jul 3, 2019
ce52791
sonic-device-data: update SAI config checker for Broadcom TD3 and TH3…
ds952811 Jul 3, 2019
810bc0d
[devices]: Fix Accton as7326 port breakout (#3103)
stevenlu99 Jul 3, 2019
206ca1b
[devices]: Add lpmode in sfputil.py for Accton AS7716-32X (#3039)
brandonchuang Jul 3, 2019
56608bf
[devices]: DELL Platform 2.0 API Infra and Reboot Reason support in Z…
sridhar-ravindran Jul 3, 2019
211c8cd
[syncd-rpc] fix syncd rpc build and add cleanup (#3113)
stepanblyschak Jul 3, 2019
e5a2beb
[reboot-cause]: Move reboot cause processing to its own service, 'pro…
jleveque Jul 3, 2019
f14354f
[monit] Restart rsyslog service if rsyslogd consumes > 800 MB memory …
jleveque Jul 4, 2019
76bf5a0
[build]: Added debug symbols to many debug dockers. (#3098)
renukamanavalan Jul 4, 2019
9a8202a
[database]: Update redis to 5.0.3 (#3066)
jipanyang Jul 4, 2019
82fb3a0
[Mellanox]New platform api -- chassis part (#3082)
stephenxs Jul 4, 2019
cf063bd
[redis]: build redis-tools-dbgsym instead of redis-server-dbgsym (#3125)
lguohan Jul 5, 2019
20e4547
[Mellanox] Fix typo "xSFP_VLOT_OFFSET" (#3118)
stephenxs Jul 5, 2019
5e2ab9d
[process-reboot-cause] Handle case if platform does not yet have soni…
jleveque Jul 6, 2019
ae2e555
[device/Arista] Update arista driver submodules (#3122)
Staphylo Jul 6, 2019
f41e381
[Mellanox] fix the issue that failing to test whether dom supported p…
stephenxs Jul 6, 2019
5a89cf5
[device][platform] add platform as5835-54t, accton. (#3119)
brandonchuang Jul 6, 2019
e4300b8
[sairedis.mk] do not build rpc sairedis when not needed (#3109)
stepanblyschak Jul 6, 2019
8329ce1
[sshd] Close all SSH connetions after 15 minutes of inactivity (#3031)
jleveque Jul 7, 2019
bd67200
[device/celestica] Implement Watchdog APIs based on the new platform …
Jul 8, 2019
59117d2
[swss.sh]: Cleanup LAG entries in STATE DB (#3114)
stepanblyschak Jul 9, 2019
0ed8c81
[sonic-cfggen][FRR] Support T2 chassis frontend (#3100)
baiwei0427 Jul 9, 2019
cca115d
[Mellanox] Fix the memory leak in mlnx-sfpd (#3128)
stephenxs Jul 9, 2019
9764589
[sonic-cfggen]: Remove trailing spaces (#3129)
stcheng Jul 9, 2019
e520cbe
DellEMC S6100 : Platform2.0 API implementation for PSU (#3132)
ArunSaravananBalachandran Jul 10, 2019
a1b9193
Extend debug image build ability to all platforms. (#3134)
renukamanavalan Jul 10, 2019
acf1a53
[device]: Modify as5835_54x port_config.ini (#3130)
dereksun01 Jul 11, 2019
89d9864
[Mellanox]Update hw-mgmt package to v183 (#3138)
keboliu Jul 12, 2019
16e8571
[devices]: Add tuning for Arista 7060PX/DX4 32x400G (#3145)
zzhiyuan Jul 12, 2019
6a99dd8
[baseimage]: Remove old ping permission fix because of aufs->overlay …
qiluo-msft Jul 13, 2019
48c77f8
[build] Add option to avoid Docker base image :latest tag (#3124)
gpaussabrcm Jul 13, 2019
33a1b26
[build]: Added debug dockers & image info (#3121)
renukamanavalan Jul 13, 2019
b5a4527
[database] save configuration after DB migration (#3143)
yxieca Jul 16, 2019
e4c041b
[baseimage]: Fix process-reboot-cause possibly throwing OSError (#3159)
zzhiyuan Jul 16, 2019
083f858
[device]: Adjust port-mapping to allow 1st row of TH2 to be breakout …
stevenlu99 Jul 16, 2019
8989c0f
[mlnx|spc2] change egress lossless pool size from 37M to 34M (#3166)
mykolaf Jul 16, 2019
0ef7dc5
[devices]: Update Arista 7260CX3-64 10G SFP tuning (#3151)
zzhiyuan Jul 16, 2019
7e78d40
[sonic-cfggen]: Improve T2 chassis frontend parsing (#3155)
baiwei0427 Jul 16, 2019
6d3e9e8
[devices]: DellEMC S6100 Enabling Polling Mode for Miim Operation (#3…
sridhar-ravindran Jul 16, 2019
c9d4afe
[sonic-utilities] Update submodule (#3173)
jleveque Jul 17, 2019
f409e04
[Mellanox] update SDK/FW (#3168)
mykolaf Jul 17, 2019
fa8b22a
[baseimage]: Install mcelog package to host OS; log machine check exc…
jleveque Jul 17, 2019
34b841e
[slave.mk]: remove updategraph.service generation in slave.mk (#3153)
theasianpianist Jul 17, 2019
ac9934a
Fix for LLDP portname exposed as MAC address bug (#3152)
Jul 17, 2019
cb9f82c
[slave]: Add quote to package version range (#3177)
stcheng Jul 18, 2019
ef3b817
[device] Update as5835_54x port_config.ini (#3181)
dereksun01 Jul 18, 2019
9c4d234
[device][accton]: add support for as7312-54xs (#3140)
roylee123 Jul 18, 2019
6e37e23
Reverting permission changes on lldpmgrd (#3184)
Jul 18, 2019
7af5469
[bgp]: Fix isolate/unisolate command for ipv6 peers (#3183)
pavel-shirshov Jul 18, 2019
6c4ec39
[debug]: Fix src path mistake for sonic-swss. (#3186)
renukamanavalan Jul 19, 2019
ce5d16f
[devices]: DellEMC [s5232]: PSU detection and default led state suppo…
srideepDell Jul 19, 2019
01a5bea
[submodule]: Update swss related submodules (#3190)
stcheng Jul 20, 2019
40c8bc1
[baseimage]: Upgrade ifupdown2 to version 1.2.8 (#3180)
rajendra-dendukuri Jul 20, 2019
1d15022
[Mellanox] support new platform api, thermal and psu part (#3175)
stephenxs Jul 22, 2019
401f704
Revert "[database] save configuration after DB migration (#3143)" (#3…
yxieca Jul 22, 2019
92efe73
Enable debug image build for kvm image. (#3203)
renukamanavalan Jul 22, 2019
39b641e
[build]: Fix comparing docker versions in build (#3205)
pavel-shirshov Jul 23, 2019
77b3a18
[ptf] Fixed root ssh authentication issue (#3192)
nazariig Jul 23, 2019
0340cf3
[device/celestica]: Implement device base APIs for Fan/PSU API based …
Jul 23, 2019
e2c8993
[submodule]: Update sonic-swss pointer (#3207)
Jul 23, 2019
dbe07a4
[sonic-platform-modules-dell] Graceful platform reboot (#2912)
Jul 23, 2019
f64e791
[docker-engine]: Update docker engine to 18.09.8 (#3211)
neethajohn Jul 24, 2019
dbda34f
[config-engine]: Add admin_status up to l2switch.json template (#3210)
stcheng Jul 24, 2019
9d64ce7
[warm reboot] save configuration after warm reboot (#3200)
yxieca Jul 24, 2019
efe9438
[Accton] Correct port index and offer the default speed. (#3213)
roylee123 Jul 24, 2019
95558ad
[DELLEMC][S6000] Platform 2.0 Reboot Reason and fixed issue in proces…
sridhar-ravindran Jul 24, 2019
3e69427
[baseimage] management VRF support via l3mdev (#2585)
Jul 24, 2019
7b0786e
[build]: pin down j2cli to 0.3.10 in sonic-slave docker (#3219)
lguohan Jul 25, 2019
4eb3568
[platform]: fixed syseeprom access for BFN platform (#3216)
akokhan Jul 25, 2019
2c6cd62
[Mellanox]: Update SAI pointer (#3208)
Jul 25, 2019
50fe458
[build]: SONiC buildimage ARM arch support (#2980)
antony-rheneus Jul 26, 2019
1860dd5
[build]: use j2 template for sonic slave Dockerfile (#3223)
lguohan Jul 26, 2019
b4517b9
[bgp]: Implement Universal Traffic Shift for SONiC (#3209)
pavel-shirshov Jul 26, 2019
4585590
[slave]: Remove temporarily downloaded file (#3222)
stcheng Jul 27, 2019
2081c2e
[sonic-cfggen]: Fix a wrong attribute in VXLAN_TUNNEL (#3225)
baiwei0427 Jul 27, 2019
a5de31b
[Mellanox]new platform api -- support get_change_event (#3142)
stephenxs Jul 28, 2019
2b47567
[image]: increase raw disk size to 2G for raw image (#3228)
lguohan Jul 29, 2019
7271fe5
[build]: Move Systemd service start to systemd generator (#3172)
Jul 29, 2019
9743091
[build]: fail the build when there is error in build_image.sh (#3226)
lguohan Jul 30, 2019
be9a639
[dell]: Corrected dport map and renamed config files for S5232F (#3201)
AshokDaparthi Jul 30, 2019
88af7f6
[devices]: Marvell hwsku ET6448M 48x1G+4x10G Arm32 Mgmt switch (#3221)
antony-rheneus Jul 30, 2019
0175d14
[submodule]: sonic-sairedis submodule update (#3236)
msosyak Jul 30, 2019
fd3e5c3
[platform]: Implemented psuutil.py for BFN reference boards (#3233)
akokhan Jul 30, 2019
67463f1
[docker-sonic-mgmt] install ptf framework in mgmt container and upgra…
stepanblyschak Jul 30, 2019
35989ab
[sonic-utilities] Update submodule (#3235)
jleveque Jul 31, 2019
ff8e344
[device/Accton] Fix i2c fault from ir3570a on 3 models (#3245)
roylee123 Jul 31, 2019
6add944
[aboot-image]: Skip arista-hook and arista-convertfs for fast/warm-re…
byu343 Jul 31, 2019
e9d3858
[build] Fixes for multi arch in Dockerfile (#3237)
antony-rheneus Jul 31, 2019
f1a88cd
[libteam]: Fix libteam race condition when interface is created and e…
stcheng Jul 31, 2019
e77c36b
[sonic-linux-kernel] advance sub module head (#3252)
yxieca Aug 1, 2019
b9a806b
[sfputil]Fix issue: xcvrd is broken. (#3258)
stephenxs Aug 1, 2019
9a418e3
[Mellanox] Update SAI (#3265)
andriymoroz-mlnx Aug 1, 2019
1ca75d3
[Makefile] multi arch variable fix (#3263)
antony-rheneus Aug 1, 2019
c6e442b
[mellanox]: Added SN3800 platform (#3262)
nazariig Aug 1, 2019
11ea368
[mellanox]: fix orchagent start args for mellanox (#3268)
lguohan Aug 2, 2019
ca1534a
[devices]: Add platform support for delta ag9032v2a (#3148)
Aug 2, 2019
2bb5804
[Quanta] Add a new supported device and platform, IX8C-56X (#3182)
jonathantsai-qci Aug 2, 2019
7e98e3f
[Platform] Marvell hwsku ET6448M i2c slave access fixes (#3275)
antony-rheneus Aug 2, 2019
1dd2688
[device/celestica]: Implement thermal base API based on the new platf…
Aug 5, 2019
530a0c9
fix the issue "'NoneType' object has no attribute 'closelog'" which r…
stephenxs Aug 5, 2019
d80d3d6
[Makefile/Telemtry] Removing Telemetry build for ARM arch as qemu (#3…
antony-rheneus Aug 6, 2019
63b5e0e
[sonic-cfggen]: add --key option to show a specific key (#3248)
vasant17 Aug 6, 2019
3026469
[Platform] Update Marvell-switching github URL (#3293)
antony-rheneus Aug 6, 2019
e547b0d
[zebra_fpm] VRF ifindex cannot be larger than 255 (#3280)
tylerlinp Aug 6, 2019
f0c0fac
DellEMC S6000 : Platform2.0 API implementation for EEPROM (#3295)
ArunSaravananBalachandran Aug 6, 2019
e7af346
[submodule]: Updating swss common pointer (#3296)
Aug 7, 2019
8de26b7
[Makefile/slave docker] ARM arch doesn't support few packages (#3273)
antony-rheneus Aug 7, 2019
629688b
[Platform] systemd generator deb included in marvell arm arch platfor…
antony-rheneus Aug 7, 2019
2b28d55
[build]: enable docker in ram option for small disk device (#3279)
lguohan Aug 7, 2019
621d2d4
[devices]: Updating pre-emphasis for Z9264f based on updated HW Spec …
Aug 7, 2019
c7db1ec
[Mellanox sfputil] update get_transceiver_change_event to support mor…
keboliu Aug 7, 2019
49f3b22
[device] various improvement for nephos devices (#3139)
simonJi2018 Aug 7, 2019
6f40933
[Feature: DynamicPortBreakout] Use consolidated bcm file for Seastone…
zhenggen-xu Aug 7, 2019
a99a37d
DellEmc: Platform 2.0 Api(chassis,fan,eeprom) for S6100 and Z9100 (#3…
gengankarthik Aug 7, 2019
cc31279
Fix read lm75 thermal sensors issue (#3285)
jostar-yang Aug 7, 2019
fe6664b
[Dell] S5232f default buffer configuration changes (#3278)
AshokDaparthi Aug 8, 2019
2ff8f5d
[Quanta] Add a new supported device and platform, IX7-32X, IX8-56X (#…
jonathantsai-qci Aug 8, 2019
b45c1ac
[device] Adding platform support for Accton as7315-27xb (#3301)
roylee123 Aug 8, 2019
d16ece2
[Mellanox] mlnx-sfpd init flow enhancement (#3294)
stephenxs Aug 8, 2019
17b5fd2
[sonic-cfg] [Marvell] read system mac address from eeprom (#3309)
antony-rheneus Aug 8, 2019
86aa00a
[platform/mellanox] install SDK/SAI dbg symbols in debug image (#3310)
stepanblyschak Aug 8, 2019
a46df66
[service dependent] describe non-warm-reboot dependency outside syste…
yxieca Aug 8, 2019
3e6e037
Modify ag9064 platform module and add support psutil. (#3305)
JohnsonYJLu Aug 8, 2019
c035be6
Fix snmpd crash (#3312)
renukamanavalan Aug 9, 2019
7b0389d
[dhcp_relay] Only call 'wait_until_iface_ready' once for each interfa…
wangshengjun Aug 9, 2019
fcdf62f
Fix to ensure that tacacs servers are ordered (reverse) by priority i…
renukamanavalan Aug 9, 2019
70febea
[dhcp_relay] fix the compile error introduced by the fixed issue of …
wangshengjun Aug 10, 2019
27d80fc
[platform]: sfputil BFN platform module (#3324)
akokhan Aug 13, 2019
000af93
platform/nephos:fix the compile error about device accton-as7116 beca…
simonJi2018 Aug 13, 2019
88dc7ad
[DELL][Z9100,S6100,S6000] Platform 2.0 SFP Changes (#3229)
sridhar-ravindran Aug 13, 2019
c605dd2
[as5835-54x] Implement get_transceiver_change_event() in sfputil.py (…
brandonchuang Aug 13, 2019
99b0b34
[mmu] add mmu_init_config to HWSKU Arista-7260CX3-Q64 (#3334)
yxieca Aug 14, 2019
a209c7f
[swss][sairedis] advance sub-modules (#3326)
akokhan Aug 14, 2019
91510a7
[innovium]: Initial commit (#3243)
tonytitus Aug 14, 2019
b283b4b
[sonic-platform-common][sonic-platform-daemon] Update submodules (#3333)
keboliu Aug 14, 2019
ea063db
[device/celestica]: Implement Sfp APIs based on the new platform API …
Aug 15, 2019
b2db397
[baseimage]: install ndisc6 package (#3344)
lguohan Aug 15, 2019
f65c796
[build] Fix cleaning SONIC_PYTHON_STDEB_DEBS (#3343)
gpaussabrcm Aug 15, 2019
ee31e3b
[Quanta] Add a new supported device and platform, IX9-32X (#3341)
jonathantsai-qci Aug 15, 2019
d6b4223
[control plane assistant] stop control plane assistant after warm reb…
yxieca Aug 15, 2019
d49e1dc
[Quanta][IX7,IX8,IX8C] Correct port index (#3327)
jonathantsai-qci Aug 15, 2019
e19e661
[device] as5712-54x, add more entries for sensors (#3328)
roylee123 Aug 15, 2019
ff6437e
[devices]: Add support fpga drv and pimutility for minipack platform …
jostar-yang Aug 15, 2019
4fed69e
[device][platform] Update Inventec new platform d6356 (#2791)
linalvin Aug 15, 2019
6f49dee
[platform]: Added exceptions handling for BFN syseeprom and psuutil (…
vsenchyshyn Aug 15, 2019
47a9a61
[device] Add pmon_daemon_control.json for accton (#3340)
brandonchuang Aug 15, 2019
0ec5de4
[build]: Fix INSTALL_DEBUG_TOOLS build config option (#2564)
jipanyang Aug 15, 2019
05d75de
[device/Arista] Update drivers submodules (#3339)
Staphylo Aug 15, 2019
a5c351a
[Quanta/platform] Update IX1B to support Stretch (#2358)
jonathantsai-qci Aug 15, 2019
d92d9f8
[innovium]: Fix package path + add SYSTEMD_SONIC_GENERATOR (#3351)
tonytitus Aug 16, 2019
84b667f
[radv service] radv service should be a cold only dependent of swss (…
yxieca Aug 16, 2019
bf08a2c
[docker-fpm-frr]: Generate separated staticd.conf for staticd (#3306)
shikenghua Aug 16, 2019
7ca4d32
[Mellanox] Update SDK (v3.4.1886) and hw-magmt (v2.0.0191) (#3359)
andriymoroz-mlnx Aug 19, 2019
c870b39
DellEMC S6100 : Platform2.0 API implementation [Module, Thermal]
ArunSaravananBalachandran Aug 19, 2019
cc66423
update cpld & swpld module attribute (#3362)
JohnsonYJLu Aug 19, 2019
2a7d862
[Mellanox] align platform reboot to use "hardware reboot" (#3321)
mykolaf Aug 19, 2019
f468bc7
[barefoot]: updated SDK to 9.0 pre-release (#3350)
akokhan Aug 19, 2019
8facac9
[Fast-Reboot]: FR mode is active only first 3 minutes after start. (#…
pavel-shirshov Aug 19, 2019
79b1eb8
DellEMC S6100 : Platform2.0 API [Module, Thermal]
ArunSaravananBalachandran Aug 20, 2019
8b674c8
[kernel] Upgrade kernel to version 4.9.168-1+deb9u5 (#3369)
yxieca Aug 21, 2019
9cebe7c
DellEMC : Platform2.0 API Implementation for Chassis [S6000, S6100, Z…
ArunSaravananBalachandran Aug 23, 2019
aea84a7
BIOS upgrade support with API2.0 for DellEMC S6100 (#3116)
Aug 23, 2019
8924739
[device/arista] Update drivers submodules (#3378)
Staphylo Aug 23, 2019
97b43f9
[mlnx_platform_api.thermal]align thermal sensor names with hw-managem…
stephenxs Aug 23, 2019
f238042
Z9264f-LED_changes (#3376)
aravindmani-1 Aug 23, 2019
4aadbbe
remove platform_wait script from mellanox simx platform (#3380)
keboliu Aug 23, 2019
dd9c2a5
DellEMC S6100 : Platform2.0 API [Module]
ArunSaravananBalachandran Aug 24, 2019
9e44070
[doc]: use docker without sudo (#3336)
tim-rj Aug 26, 2019
1840bef
[devices]: Add serdes tuning for Arista 7060PX4 32x400G (#3382)
zzhiyuan Aug 28, 2019
14458b7
Create the src archive in target/ when INSTALL_DEBUG_TOOLS=y (#3323)
renukamanavalan Aug 28, 2019
bdce201
[Makefile] Multiarch docker service cleanup at make reset (#3366)
antony-rheneus Aug 28, 2019
768beb7
create multiple Redis DB instances based on CONFIG at /etc/sonic/data…
dzhangalibaba Aug 28, 2019
a5b805e
[platform/cel]: Add new API installer to pmon and base image (#3379)
Aug 28, 2019
4c36866
[syncd-rpc-brcm]: Fix syncd terminated in broadcom rpc image (#3391)
chiourung Aug 28, 2019
5c2d711
[Mellanox] optimize new platform api (#3289)
stephenxs Aug 28, 2019
f920560
[swss]: Add hash seed 15 for SpineRouter type (#3390)
zhenggen-xu Aug 28, 2019
754c0b1
[platform]: BFN platform modules update (#3389)
akokhan Aug 29, 2019
7bf8fbe
[build_debian] docker version update for ARM arch (#3353)
antony-rheneus Aug 29, 2019
3323e9b
[device][accton]: ADD the Accton new device support, AS9716-32D (#3372)
pollyhsu2git Aug 29, 2019
be3cbdb
[docker-fpm-frr/bgpcfgd]: Update interface of bgpcfgd from swsssdk to…
Pterosaur Aug 29, 2019
1c06ae6
[libteam]: timerfd read() could return 0 fix (#3393)
pavel-shirshov Aug 29, 2019
1b0e900
Add IPv6 Support in TACACS (#3395)
SuvarnaMeenakshi Sep 3, 2019
063567c
[minigraph]: Ignore mirror session portion in minigraph (#3410)
stcheng Sep 5, 2019
47504d1
[src/sonic-utilities] Update sonic-utilities submodule (#3405)
daall Sep 5, 2019
cfcf305
[build_debian] Include checksum of ASIC config files in SONiC filesys…
daall Sep 6, 2019
fdcb69d
[devices]: Adding platform support for Juniper QFX5210 (#3270)
ciju-juniper Sep 6, 2019
ca43dad
Use dot1p to tc mapping for backend switches (#3412)
wendani Sep 6, 2019
9fdc6bd
[dhcp_relay]:filter out the ipv6 address of dhcp server for dhcp rela…
wangshengjun Sep 6, 2019
309af83
[DELL][S6000] Platform 2.0 TransceiverChange Support (#3414)
sridhar-ravindran Sep 6, 2019
150ee07
[device/celestica]: Update new platform APIs (#3415)
Sep 6, 2019
d47ec52
[devices]: Add to support thermal plan in as9716 platform (#3409)
jostar-yang Sep 6, 2019
4bad5ea
Merge branch 'master' into platform2.0_s6100
ArunSaravananBalachandran Sep 9, 2019
584ac01
DellEMC S6100 : Sync latest changes to Module
ArunSaravananBalachandran Sep 9, 2019
a27f127
[baseimage]: Log message containing SONiC version to syslog at boot (…
jleveque Sep 9, 2019
a1158c6
Revert "Use dot1p to tc mapping for backend switches (#3412)" (#3421)
lguohan Sep 9, 2019
aa76ef3
[sonic-utilities] Update submodule (#3425)
jleveque Sep 10, 2019
2095d6e
[devices]: Update arista submodule (#3431)
zzhiyuan Sep 10, 2019
db90d4c
[sonic-slave]: Updated version of ctypesgen.py has a different name (…
pavel-shirshov Sep 11, 2019
9179990
[device][accton] Add as5812-54t. (#3428)
roylee123 Sep 11, 2019
a9310e4
DellEMC S6000: Platform2.0 API [Fan]
ArunSaravananBalachandran Sep 11, 2019
372f786
Merge branch 'master' into platform2.0
ArunSaravananBalachandran Sep 11, 2019
3ff0c4d
[Juniper][QFX5210] Optoe driver for SFP management (#3438)
ciju-juniper Sep 11, 2019
11258e5
[build]: sonic arm64 changes (#3419)
antony-rheneus Sep 11, 2019
23a3faf
[build]: Sonic installer script for armhf (#3303)
antony-rheneus Sep 11, 2019
2114b21
[submodule update]: Advance sonic-dbsyncd (#3440)
pavel-shirshov Sep 11, 2019
0e62280
[dhcp_relay] Properly wait for routed interfaces to be ready before s…
jleveque Sep 12, 2019
bbbd3db
[lldpmgrd] Initialize port_desc to None to prevent crashing (#3451)
jleveque Sep 12, 2019
95a72b4
[baseimage]: fix monit configuration (#3448)
lguohan Sep 13, 2019
da2ae49
Updated merge changes
ArunSaravananBalachandran Sep 13, 2019
97c675c
[cron.d] Add cron job to periodically clean-up core files (#3449)
daall Sep 13, 2019
81aef6b
[Qos] use dot1p to tc mapping for backend switches (#3422)
wendani Sep 13, 2019
faa754f
Merge pull request #3363 from ArunSaravananBalachandran/platform2.0_s…
sujinmkang Sep 14, 2019
72e879e
[snmpd]: Fix possible snmpd crash when sub agen timeout. (#3455)
renukamanavalan Sep 14, 2019
a2cd26a
[build] Avoid race condition in sonic-platform-common (#3457)
gpaussabrcm Sep 14, 2019
ac1d2c1
[devices]: DellEMC Z9264f_50gProfile: Added support for 50G T0 profil…
aravindmani-1 Sep 15, 2019
75104bb
[sflow]: Build infrastructure changes to support sflow docker and uti…
padmanarayana Sep 15, 2019
1cbc99d
Merge branch 'master' into platform2.0
ArunSaravananBalachandran Sep 16, 2019
31d1a76
[baseimage]: Management vrf ntp support (#3204)
Sep 16, 2019
a62ab78
Merge pull request #3381 from ArunSaravananBalachandran/platform2.0
sujinmkang Sep 16, 2019
124b26d
[Mellanox] platform_reboot - sync & umount fs before power cycle (#3430)
mykolaf Sep 17, 2019
3c0b56a
[DELL] S6100 Support PowerCycle in Last Reboot Reason (#3403)
sridhar-ravindran Sep 17, 2019
8ca1eb2
Install Iptables rules to set TCPMSS for 'lo' interface (#3452)
prsunny Sep 18, 2019
503d87b
[lldp]: expose lldpcli command of lldp docker to host (#3473)
yangshp1987 Sep 18, 2019
bbba3c7
[submodule update]: Advance sonic-platform-common submodule. (#3468)
nazariig Sep 18, 2019
19ffb02
[submodule update]: Advance sonic-utilities submodule. (#3466)
nazariig Sep 18, 2019
6ca0d7b
DellEMC S6000 : Platform2.0 API implementation [PSU, Thermal] (#3357)
ArunSaravananBalachandran Sep 18, 2019
5c9348b
DellEMC Z9100 : Platform2.0 API implementation [PSU, Thermal] (#3361)
ArunSaravananBalachandran Sep 18, 2019
9d2d617
[SNMP] management VRF SNMP support (#2608)
Sep 19, 2019
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
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# OS-generated files
.DS_Store

# Build system related
.arch
.platform
.screen

Expand All @@ -9,6 +13,12 @@ target/
*.deb
*.changes
*.buildinfo
*.tar
*.xz
*.gz
*-dbg
*dbg.j2
*.img

# Subdirectories in src
src/bash/*
Expand Down Expand Up @@ -43,6 +53,8 @@ src/libnl3/*
!src/libnl3/Makefile
src/libteam/*
!src/libteam/Makefile
src/libyang/*
!src/libyang/Makefile
src/lldpd/*
!src/lldpd/Makefile
!src/lldpd/patch/
Expand All @@ -59,13 +71,23 @@ src/radvd/*
!src/radvd/patch/
src/redis/*
!src/redis/Makefile
src/smartmontools/*
!src/smartmontools/Makefile
src/snmpd/*
!src/snmpd/Makefile
src/sonic-device-data/src/device/
src/sonic-device-data/src/debian/
src/supervisor/*
!src/supervisor/Makefile
!src/supervisor/patch/
src/swig/*
!src/swig/Makefile
src/systemd-sonic-generator/systemd-sonic-generator
src/systemd-sonic-generator/debian/*
!src/systemd-sonic-generator/debian/changelog
!src/systemd-sonic-generator/debian/compat
!src/systemd-sonic-generator/debian/control
!src/systemd-sonic-generator/debian/rules
src/telemetry/debian/*
!src/telemetry/debian/changelog
!src/telemetry/debian/compat
Expand All @@ -77,6 +99,8 @@ src/thrift/*
!src/thrift/Makefile

# Autogenerated Dockerfiles
sonic-slave/Dockerfile
sonic-slave-stretch/Dockerfile
dockers/docker-base/Dockerfile
dockers/docker-base-stretch/Dockerfile
dockers/docker-config-engine/Dockerfile
Expand Down Expand Up @@ -109,3 +133,7 @@ src/sonic-config-engine/sonic_config_engine.egg-info
src/sonic-daemon-base/**/*.pyc
src/sonic-daemon-base/build
src/sonic-daemon-base/sonic_daemon_base.egg-info

# Misc. files
files/initramfs-tools/arista-convertfs
files/initramfs-tools/union-mount
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
[submodule "src/sonic-frr/frr"]
path = src/sonic-frr/frr
url = https://github.com/Azure/sonic-frr.git
branch = frr/7.0
[submodule "platform/p4/p4-hlir/p4-hlir-v1.1"]
path = platform/p4/p4-hlir/p4-hlir-v1.1
url = https://github.com/p4lang/p4-hlir.git
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# SONiC make file

NOSTRETCH ?= 0
NOJESSIE ?= 0

%::
@echo "+++ --- Making $@ --- +++"
ifeq ($(NOSTRETCH), 0)
BLDENV=stretch make -f Makefile.work stretch
ifeq ($(NOJESSIE), 0)
EXTRA_JESSIE_TARGETS=$(notdir $@) make -f Makefile.work jessie
endif
make -f Makefile.work $@
BLDENV=stretch make -f Makefile.work $@

stretch:
jessie:
@echo "+++ Making $@ +++"
ifeq ($(NOSTRETCH), 0)
BLDENV=stretch make -f Makefile.work stretch
ifeq ($(NOJESSIE), 0)
make -f Makefile.work jessie
endif

clean reset init configure showtag sonic-slave-build sonic-slave-bash :
@echo "+++ Making $@ +++"
make -f Makefile.work $@
BLDENV=stretch make -f Makefile.work $@
128 changes: 96 additions & 32 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# * Please note that with current Stretch build structure,
# * user of KEEP_SLAVE_ON feature will have to be conscious
# * about which docker to stay inside after build is done.
# * - If user desires to stay inside Stretch docker, please issue
# * make KEEP_SLAVE_ON=yes stretch
# * - If user desires to stay inside Jessie docker, please issue
# * (a successful "make stretch" may be needed before the following command)
# * make NOSTRETCH=1 KEEP_SLAVE_ON=yes <any jessie target>
# * make KEEP_SLAVE_ON=yes jessie
# * - If user desires to stay inside Stretch docker, please issue
# * make NOJESSIE=1 KEEP_SLAVE_ON=yes <any target>
# * SOURCE_FOLDER: host path to be mount as /var/$(USER)/src, only effective when KEEP_SLAVE_ON=yes
# * SONIC_BUILD_JOBS: Specifying number of concurrent build job(s) to run
# * VS_PREPARE_MEM: Prepare memory in VS build (drop cache and compact).
Expand All @@ -43,26 +42,50 @@ ifeq ($(USER), root)
$(error Add your user account to docker group and use your user account to make. root or sudo are not supported!)
endif

# Check for j2cli availability
J2_VER := $(shell j2 --version 2>&1 | grep j2cli | awk '{printf $$2}')
ifeq ($(J2_VER),)
$(error Install j2cli)
endif

# Check for minimum Docker version on build host
# Note: Using the greater of CE (17.05.0) and EE (17.06.1) versions that support ARG before FROM
docker_min := 17.06.1
docker_min_ver := $(shell echo "$(docker_min)" | awk -F. '{printf("%d%03d%03d\n",$$1,$$2,$$3);}' 2>/dev/null)
docker_ver := $(shell docker info 2>/dev/null | grep -i "server version" | rev | cut -d' ' -f1 | rev | awk -F. '{printf("%d%03d%03d\n",$$1,$$2,$$3);}' 2>/dev/null)
docker_is_valid := $(shell if [[ "$(docker_ver)" -lt $(docker_min_ver) ]] ; then echo "0"; else echo "1"; fi)
ifeq (0,$(docker_is_valid))
$(error SONiC requires Docker version $(docker_min) or later)
endif

# Remove lock file in case previous run was forcefully stopped
$(shell rm -f .screen)

MAKEFLAGS += -B

CONFIGURED_ARCH := $(shell [ -f .arch ] && cat .arch || echo $(PLATFORM_ARCH))
ifeq ($(CONFIGURED_ARCH),)
override CONFIGURED_ARCH = amd64
endif
ifeq ($(PLATFORM_ARCH),)
override PLATFORM_ARCH = $(CONFIGURED_ARCH)
endif

ifeq ($(BLDENV), stretch)
SLAVE_BASE_TAG = $(shell sha1sum sonic-slave-stretch/Dockerfile | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell cat sonic-slave-stretch/Dockerfile.user sonic-slave-stretch/Dockerfile | sha1sum | awk '{print substr($$1,0,11);}')
SLAVE_BASE_IMAGE = sonic-slave-stretch-base
SLAVE_IMAGE = sonic-slave-stretch-$(USER)
SLAVE_DIR = sonic-slave-stretch
else
SLAVE_BASE_TAG = $(shell sha1sum sonic-slave/Dockerfile | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell cat sonic-slave/Dockerfile.user sonic-slave/Dockerfile | sha1sum | awk '{print substr($$1,0,11);}')
SLAVE_BASE_IMAGE = sonic-slave-base
SLAVE_IMAGE = sonic-slave-$(USER)
SLAVE_DIR = sonic-slave
endif
SLAVE_BASE_TAG = $(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) j2 $(SLAVE_DIR)/Dockerfile.j2 > $(SLAVE_DIR)/Dockerfile && sha1sum $(SLAVE_DIR)/Dockerfile | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell cat $(SLAVE_DIR)/Dockerfile.user $(SLAVE_DIR)/Dockerfile | sha1sum | awk '{print substr($$1,0,11);}')
SLAVE_BASE_IMAGE = $(SLAVE_DIR)-base
SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER)

OVERLAY_MODULE_CHECK := lsmod | grep "^overlay " > /dev/null 2>&1 || (echo "ERROR: Module 'overlay' not loaded. Try running 'sudo modprobe overlay'."; exit 1)
OVERLAY_MODULE_CHECK := \
lsmod | grep -q "^overlay " &>/dev/null || \
zgrep -q 'CONFIG_OVERLAY_FS=y' /proc/config.gz &>/dev/null || \
grep -q 'CONFIG_OVERLAY_FS=y' /boot/config-$(shell uname -r) &>/dev/null || \
(echo "ERROR: Module 'overlay' not loaded. Try running 'sudo modprobe overlay'."; exit 1)

BUILD_TIMESTAMP := $(shell date +%Y%m%d\.%H%M%S)

Expand All @@ -86,28 +109,55 @@ include rules/config
ifeq ($(SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD), y)
DOCKER_RUN += -v /var/run/docker.sock:/var/run/docker.sock
endif
ifneq (,$(filter $(CONFIGURED_ARCH), armhf arm64))
# Multiarch docker cannot start dockerd service due to iptables cannot run over different arch kernel
SONIC_SERVICE_DOCKERD_FOR_MULTIARCH=y
SONIC_NATIVE_DOCKERD_FOR_MUTLIARCH := dockerd --experimental=true --storage-driver=vfs \
--data-root=/var/lib/march/docker/ --exec-root=/var/run/march/docker/ \
-H unix:///var/run/march/docker.sock -p /var/run/march/docker.pid
DOCKER_RUN += -v /var/run/march/docker.sock:/var/run/docker.sock
DOCKER_RUN += -v /var/run/march/docker.pid:/var/run/docker.pid
DOCKER_RUN += -v /var/run/march/docker:/var/run/docker
DOCKER_RUN += -v /var/lib/march/docker:/var/lib/docker
SONIC_USERFACL_DOCKERD_FOR_MUTLIARCH := setfacl -m user:$(USER):rw /var/run/march/docker.sock

#Override Native config to prevent docker service
SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD=y

DOCKER_MULTIARCH_CHECK := docker inspect --type image multiarch/qemu-user-static:register &> /dev/null || (echo "multiarch docker not found ..."; docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes)

DOCKER_SERVICE_MULTIARCH_CHECK := docker -H unix:///var/run/march/docker.sock info &> /dev/null || (echo "Docker march service not running..."; sudo rm -fr /var/run/march/*; (sudo $(SONIC_NATIVE_DOCKERD_FOR_MUTLIARCH) &) &>/dev/null ; sleep 1; sudo $(SONIC_USERFACL_DOCKERD_FOR_MUTLIARCH);)

# Docker service to load the compiled dockers-*.gz
SONIC_NATIVE_DOCKERD_FOR_DOCKERFS := rm -fr $(PWD)/dockerfs/; mkdir -p $(PWD)/dockerfs/; sudo dockerd --storage-driver=overlay2 --iptables=false \
--data-root $(PWD)/dockerfs/var/lib/docker/ --exec-root=$(PWD)/dockerfs/var/run/docker/ \
-H unix://$(PWD)/dockerfs/var/run/docker.sock -p $(PWD)/dockerfs/var/run/docker.pid &
SONIC_USERFACL_DOCKERD_FOR_DOCKERFS := setfacl -m user:$(USER):rw $(PWD)/dockerfs/var/run/docker.sock
DOCKER_SERVICE_DOCKERFS_CHECK := (sudo docker -H unix://$(PWD)/dockerfs/var/run/docker.sock info &> /dev/null && sudo kill -9 `sudo cat $(PWD)/dockerfs/var/run/docker.pid` && false) || (echo "Starting docker build service..."; (sudo $(SONIC_NATIVE_DOCKERD_FOR_DOCKERFS) ) &>/dev/null ; sleep 1; sudo $(SONIC_USERFACL_DOCKERD_FOR_DOCKERFS);)

endif

DOCKER_BASE_BUILD = docker build --no-cache \
-t $(SLAVE_BASE_IMAGE) \
-t $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
$(SLAVE_DIR) && \
docker tag $(SLAVE_BASE_IMAGE):latest $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG)
$(SLAVE_DIR)

DOCKER_BUILD = docker build --no-cache \
--build-arg user=$(USER) \
--build-arg uid=$(shell id -u) \
--build-arg guid=$(shell id -g) \
--build-arg hostname=$(shell echo $$HOSTNAME) \
-t $(SLAVE_IMAGE) \
--build-arg slave_base_tag_ref=$(SLAVE_BASE_TAG) \
-t $(SLAVE_IMAGE):$(SLAVE_TAG) \
-f $(SLAVE_DIR)/Dockerfile.user \
$(SLAVE_DIR) && \
docker tag $(SLAVE_IMAGE):latest $(SLAVE_IMAGE):$(SLAVE_TAG)
$(SLAVE_DIR)

SONIC_BUILD_INSTRUCTION := make \
-f slave.mk \
BLDENV=$(BLDENV) \
PLATFORM=$(PLATFORM) \
PLATFORM_ARCH=$(PLATFORM_ARCH) \
BUILD_NUMBER=$(BUILD_NUMBER) \
BUILD_TIMESTAMP=$(BUILD_TIMESTAMP) \
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
Expand All @@ -118,19 +168,27 @@ SONIC_BUILD_INSTRUCTION := make \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME) \
SONIC_BUILD_JOBS=$(SONIC_BUILD_JOBS) \
SONIC_USE_DOCKER_BUILDKIT=$(SONIC_USE_DOCKER_BUILDKIT) \
VS_PREPARE_MEM=$(VS_PREPARE_MEM) \
KERNEL_PROCURE_METHOD=$(KERNEL_PROCURE_METHOD) \
HTTP_PROXY=$(http_proxy) \
HTTPS_PROXY=$(https_proxy) \
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
EXTRA_JESSIE_TARGETS=$(EXTRA_JESSIE_TARGETS) \
$(SONIC_OVERRIDE_BUILD_VARS)

.PHONY: sonic-slave-build sonic-slave-bash init reset

.DEFAULT_GOAL := all

%::
ifneq (,$(filter $(CONFIGURED_ARCH), armhf arm64))
@$(DOCKER_MULTIARCH_CHECK)
@$(DOCKER_SERVICE_MULTIARCH_CHECK)
@$(DOCKER_SERVICE_DOCKERFS_CHECK)
endif
@$(OVERLAY_MODULE_CHECK)

@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
$(DOCKER_BASE_BUILD) ; }
Expand Down Expand Up @@ -169,18 +227,24 @@ init :
@git submodule update --init --recursive
@git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $$(realpath --relative-to=. $$(cut -d" " -f2 .git))" > .git'

.ONESHELL : reset
reset :
@echo && echo -n "Warning! All local changes will be lost. Proceed? [y/N]: "
@read ans && \
if [ $$ans == y ]; then \
echo "Resetting local repository. Please wait..."; \
$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) sudo rm -rf fsroot; \
git clean -xfdf; \
git reset --hard; \
git submodule foreach --recursive git clean -xfdf; \
git submodule foreach --recursive git reset --hard; \
git submodule update --init --recursive; \
echo "Reset complete!"; \
else \
echo "Reset aborted"; \
fi
@read ans && (
if [ $$ans == y ]; then
echo "Resetting local repository. Please wait...";
$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) sudo rm -rf fsroot;
if [[ "$(CONFIGURED_ARCH)" == "armhf" || "$(CONFIGURED_ARCH)" == "arm64" ]]; then
echo "Stopping march $(CONFIGURED_ARCH) docker"
sudo kill -9 `sudo cat /var/run/march/docker.pid` || true
sudo rm -f /var/run/march/docker.pid || true
fi
git clean -xfdf;
git reset --hard;
git submodule foreach --recursive git clean -xfdf;
git submodule foreach --recursive git reset --hard;
git submodule update --init --recursive;
echo "Reset complete!";
else
echo "Reset aborted";
fi )
71 changes: 71 additions & 0 deletions README.buildsystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,74 @@ $ make list
```

All target groups are used by one or another recipe, so use those recipes as a reference when adding new ones.

## Build debug dockers and debug SONiC installer image:
Using 'INSTALL_DEBUG_TOOLS=y' builds the debug image.

For example:
`INSTALL_DEBUG_TOOLS=y make target/sonic-broadcom.bin`

* Builds debug docker images.
* Debug images carry a suffix of "-dbg"
* e.g. target/docker-orchagent-dbg.gz
* target/sonic-broadcom.bin is built using debug docker images
* Selective sources are archived and available under /src
* An empty /debug dir is created for use during debug session.
* All debug dockers are mounted with /src:ro and /debug:rw
* Login banner will briefly describe these features.


_Note: target/sonic-broadcom.bin name is the same irrespective of built using debug or non-debug dockers._

_Recommend: Rename image built using INSTALL_DEBUG_TOOLS=y to mark it explicit. May be `mv target/sonic-broadcom.bin target/sonic-broadcom-dbg.bin`_

### Debug dockers
* Built with all available debug symbols.
* Installed with many basic packages that would be required for debugging
* gdb
* gdbserver
* vim
* strace
* openssh-client
* sshpass
* Loadable into any environment that supports docker
* Outside SONiC image, you may run the docker with `--entrypoint=/bin/bash`
* Use -v to map any of your host directories
* To debug a core file in non-SONiC environment that supports docker
* `docker load -i docker-<name>-dbg.gz`
* copy your unzipped core file into ~/debug
* `docker run -it -entrypoint=/bin/bash -v ~/debug:/debug <image id>`
* `gdb /usr/bin/<your binary> -c /debug/<your core>`

### Debug SONiC image

* Install this image into the switch that supports this image.
* For platform independent binary, you may use a debug image for virtual switch
* Open the archive in /src, if you would need source code for debugging
* Every debug enabled docker is mounted with /src as read-only
* The host has /debug dir and it is mapped into every debuggable docker as /debug with read-write permission.
* To debug a core
* Copy core into /debug of host and unzip it
* Feel free to create & use sub-dirs as needed.
* Entire /debug is mounted inside docker
* Get into the docker (`docker -it exec <name> bash`)
* `gdb /usr/bin/<binary> -c /debug/<core file path>`
* Use set-directory in gdb to map appropriate source dir from under /src
* You may set gdb logs to go into /debug
* For live debugging
* Use this as a regular switch
* Get into docker, and you may
* start process under dbg
* attach gdb to running process
* Set required source dir from under /src as needed
* May use /debug to record all geb logs or any spew from debug session.

### To enhance debug dockers
* Add to `<docker name>_DBG_IMAGE_PACKAGES`, additional debug tools that will be pre-installed during build.
* e.g. `$(DOCKER_ORCHAGENT)_DBG_IMAGE_PACKAGES += perl`
* Build will install these tools using "apt"
* Add to `<docker name>_DBG_DEPENDS`, additional debug .deb packages that will be pre-installed during build.
* e.g. `$(DOCKER_ORCHAGENT)_DBG_DEPENDS += $(SWSS_DBG) $(LIBSWSSCOMMON_DBG) $(LIBSAIREDIS_DBG)`
* Add to `DBG_SRC_ARCHIVE`, the source dirs to archive
* The source files (.c, .cpp, .h & .hpp) under this dir tree are archived.
* e.g. rules/swss.mk has `DBG_SRC_ARCHIVE += swss`
Loading