Commit Graph

2299 Commits

Author SHA1 Message Date
Ying Xie
3136fd6018
[bcm SAI] upgrade Broadcom SAI to 3.5.3.3-1 (#3781)
- Broadcom SAI GA release 20191115.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-19 21:33:55 -08:00
Qi Luo
0848a31893
Update submodule: sonic-snmpagent (#3783) 2019-11-19 13:09:58 -08:00
Ying Xie
29339773d2
[201811][sairedis] advance sairedis submodule head (#3780)
Submodule src/sonic-sairedis 627e6bc..4b11836:
  > Disable Fast-Reboot start if uptime is greater than 3 minutes (#534)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-18 21:11:33 -08:00
Ying Xie
9b3c178fc8 [201811][kernel] advance kernel submodule head (#3773)
Submodule src/sonic-linux-kernel f6a4391..4fed1cb:
  > [kernel] add patch for mlx-platform: Fix parent device in i2c-mux-reg device registration (#112)
2019-11-18 11:29:59 -08:00
zzhiyuan
6a6ce50813 Update arista submodule for smbus reliability (#3772) 2019-11-16 20:08:47 -08:00
Nazarii Hnydyn
e546c64c76 [mellanox] Extend Mellanox FW utils with CPLD update (#3723)
* [mellanox] Extend Mellanox FW utils with CPLD update
* [mellanox] Fix FW utils review comments
2019-11-15 10:43:17 -08:00
Ying Xie
45f5270399
Revert "[build] clear dpkg cache and update sources (#3737)" (#3749)
This reverts commit 9871e043ec.
2019-11-14 07:46:36 -08:00
Ying Xie
9871e043ec
[build] clear dpkg cache and update sources (#3737)
This change is intended to fix the issue with dpkg-query during build
process.

The symptom is dpkg-query failed to open package info file, usually
/var/lib/dpkg/updates/000?

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-12 07:23:13 -08:00
Wenda Ni
8788f4f783 cherry-picking diff between #3628 and #3561
Revert "Configure buffer profile to all ports (#3561)" (#3628)
Configure buffer profile to all ports (#3561)

This reverts commit 8861cbe98e.

Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-08 03:12:59 +00:00
Ying Xie
d6d389d7a1
[201811][utilities] advance utilities submodule head (#3724)
Submodule src/sonic-utilities 2ca1ae1..3ed25a4:
  > Do not start pfcwd for M0 devices (#726)
  > Make configlet application script idempotent for updates. (#728)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-07 13:53:24 -08:00
Neetha John
6d23e4c8d7 [pfcwd]: Do not start pfc watchdog on Management Tor (#3719)
Signed-off-by: Neetha John <nejo@microsoft.com>
2019-11-07 21:41:32 +00:00
lguohan
9167f9da46 [aboot]: preserve snmp.yml and acl.json for eos to sonic fast reboot (#3716) 2019-11-07 21:40:20 +00:00
pavel-shirshov
b9b56c91ff [minigraph.py]: Use default namespace for <Address> (#3695)
* [minigraph.py]: Use default namespace for <Address>
2019-11-07 21:36:43 +00:00
pavel-shirshov
90fb363958 Add NEIGHBOR_METADATA info into render (#3688) 2019-11-07 20:09:47 +00:00
pavel-shirshov
a96ed09ff3 Downport BGPM and addrack patches to configlet_201811 branch (#3669)
* BGPm for 201811 (#3601)

* Feature is downported

* Add monitors to the test minigraphs

* Test

* No pfx filer

* Fix bgp sample

* Quagga requires to activate peer-group before configuration

* Add bgpcfgd and bgpd.peer template

* Catch exception if rendering external template

* Fix tests
2019-11-07 20:08:02 +00:00
Danny Allen
aa6adc1384 [minigraph.py] Update minigraph parsing logic to include only active ports for mirror tables (#3592) (#3634)
* Update minigraph.py to filter out front-panel ports that are not active
* Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <daall@microsoft.com>

* Incorporate PR comments
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
2019-11-07 00:24:07 +00:00
Wenda Ni
c1e17b3579 Adopt per-port buffer & qos profile apply on mellanox (#3543)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:23:10 +00:00
Wenda Ni
0ea82d8735 Fix syntax error for qos_config template (#3619)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:22:50 +00:00
Wenda Ni
f616cec7f4 Adopt per-port buffer and qos profile (#3542)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:21:52 +00:00
Ying Xie
09308e0162
[201811][swss] advance swss submodule head (#3717)
Submodule src/sonic-swss 49c9c16..1bc989a:
  > Fix pfc watchdog compile error (#1119)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-06 13:06:25 -08:00
Ying Xie
8ada2a51c2
[201811][swss][utilities] advance submodule heads (#3712)
Submodule src/sonic-swss f09ddb4..49c9c16:
  > Allow buffer profile apply after init (#1099)
  > [aclorch]: Check for existing mirror table only when creating a new table (#1089)
  > [201811] [portsorch] fix PortsOrch::allPortsReady() returns true when it should not (#1116)
  > Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (#839)
  > Fix PFC watchdog not getting lossless TC (#876)

Submodule src/sonic-utilities c049e54..2ca1ae1:
  > Add a generic configlet application script (#716)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-05 17:55:28 -08:00
Ramesh Santhanakrishnan
12a46d4b0a [build]: apply proxy setting to curl. (#2544) 2019-11-06 01:36:09 +00:00
Joe LeVeque
31be830ff2 [build] When generating image version, handle case where current commit has no reachable tags (#2506)
Signed-off-by: Joe LeVeque <jolevequ@microsoft.com>
2019-11-06 01:36:03 +00:00
lguohan
d16dbbb1d3
[bgp]: start bgp service after interfaces-config service (#3702)
interfaces-config service configures lo address. If bgp service
starts before lo address is configured, then following config
in zebra will not be applied.

route-map RM_SET_SRC permit 10
 set src 10.1.0.32

The adds a few seconds delay in bgp service start
2019-11-04 22:09:00 -08:00
Ying Xie
175a97cc7d
[201811][swss] advance swss submoudle head (#3696)
Submodule src/sonic-swss 98cfe56..f09ddb4:
  > [fix] Use the same storm detection condition for queue occupancy non-zero case as the zero case (#1111)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-31 18:32:40 -07:00
simonJi2018
67b8e14222 [nephos]: upgrade sai and sdk to solve docker syncd abnormal exit (#3679) 2019-10-31 09:14:10 -07:00
Ying Xie
f5e54298ec
[201811][swss] advance swss submodule head (#3682)
Submodule src/sonic-swss 15652b2..98cfe56:
  > Check RIF/Port exists only for add entries (#1110)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-30 09:54:14 -07:00
Ying Xie
f764a167ac [hostname-config] improve hostname-config process (#3676)
We noticed in tests/production that there is a low probability failure
where /etc/hosts could have some garbage characters before the entry for
local host name. The consequence is that all sudo command would be very
slow. In extreme cases it would prevent some services from starting
properly.

I suspect that the /etc/hosts file might be opened by some process causing
the issue. Editing contents with new file level and replace the whole file
should be safer.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-29 15:42:23 +00:00
Prabhu Sreenivasan
ff137a8e56 [baseimage]: Avoid removing localhost entry from /etc/hosts file (#2452)
- What I did
This fix removes the possibility of 'localhost' entry getting removed from /etc/hosts file by hostname-config service.

Without this change, whenever we change the hostname from 'localhost' to any other name on the config_db.json and reload the config, /etc/hosts file will only have the new hostname on it. But there are multiple sonic utilities (eg: swssconfig) which relies on the hard coded 'localhost' name and they tend to stop working.

- How I did it
Added a new check on hostname-config.sh script to avid blindly deleting the line containing the old hostname from /etc/hosts file. Now it will delete the old hostname only if its not localhost or when the hostname is not changing.

- How to verify it

Bring up SONiC on a device with hostname as localhost
Edit /etc/sonic/config_db.json to update the 'hostname' filed under DEVICE_METADATA from "hostname" : "localhost" --> "hostname" : "sonic"
run config reload -y to reflect the hostname change done on config_db.json file.
cat /etc/hosts and check whether both 127.0.0.1 localhost and 127.0.0.1 sonic entry are present on the file.
ping localhost should work fine.
- Description for the changelog
Make hostname-config service more robust in handling SONiC hostname change from localhost to anything else.
2019-10-29 15:42:04 +00:00
Wirut Getbamrung
6eb18ee4fa [device/celestica]: libsensors configuration file for Seastone-DX010 (#3664)
* [device/celestica]: libsensors configuration file for Seastone-DX010

* [device/celestica]: Add hysteresis config for lm75b sensors on Seastone-DX010
2019-10-28 07:33:56 -07:00
Ying Xie
da96c1a599
[201811][swss][utilities] advance submodule heads (#3670)
Submodule src/sonic-swss 2529d79..15652b2:
  > [mirrororch]: Add retry logic when deleting referenced mirror session (#1104)

Submodule src/sonic-utilities 0cfa942..c049e54:
  > [neighbor_advertiser]: Add sleep in setting mirror session and ACL rules (#714)
  > [warm/fast reboot] continue executing when killing docker failed (#713)
  > [ecnconfig] Validate input WRED parameters (#579)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-25 17:41:18 -07:00
Danny Allen
818ab7fdaa [core_cleanup] Fix issue where core_cleanup job runs too frequently (#3659)
Signed-off-by: Danny Allen <daall@microsoft.com>
2019-10-24 17:04:16 +00:00
Ying Xie
9ce24b59e5 [file permission] explicitly set file permission on passwd, group, shadow (#3652)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-23 02:02:35 +00:00
Stephen Sun
3f42353bf1 [Mellanox] Fix SN2010 issue: "show platform psustatus" returns "NOT PRESENT" for power off PSU on 201811 (#3598)
* [plugins/psuutil]Align psuutil of 2010 with that of 2100.

* [plugins/psuutil.py]Address comments via using more human-readable code
2019-10-21 16:14:35 +03:00
zzhiyuan
5965c3f4f9 Fix reboot-cause for 201811 arista (#3620) 2019-10-18 20:13:14 -07:00
Ying Xie
2d4c1f0b7b [201811][utilities] advance sub module head (#3631)
Submodule src/sonic-utilities d315dd7..0cfa942:
  > [neighbor_advertiser]: Adapt to different mirror ACL table names (#703)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-18 16:43:45 -07:00
Ying Xie
e98be7448c [201811][utilities] advance sub module head (#3612)
Submodule src/sonic-utilities fb5902f..d315dd7:
  > show pfcwd status to be 'N/A' when pfcwd is stopped (#682)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-16 07:54:44 -07:00
pavel-shirshov
c259f40477 BGPm for 201811 (#3601)
* Feature is downported

* Add monitors to the test minigraphs

* Test

* No pfx filer

* Fix bgp sample

* Quagga requires to activate peer-group before configuration
2019-10-15 18:43:52 -07:00
Wenda Ni
241b6facd8 [devices]: PG headroom change for Arista 7260 (#3600)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-10-15 15:26:15 +00:00
Ying Xie
c7a096b6b9
[201811][ntp] removed undefined filter (#3594)
pfx_filter is not defined in 201811 branch.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-11 19:46:14 -07:00
lguohan
afbb91657c [baseimage]: incrase docker ramfs from 800MB to 900MB (#3582) 2019-10-10 00:46:54 +00:00
Nazarii Hnydyn
41ce07e75c [mellanox]: Add CPLD update for SN2700 (#3570)
* [mellanox]: Add CPLD update for SN2700.

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
2019-10-09 17:36:45 -07:00
pavel-shirshov
53ec9124bc [ntp]: Use loopback address when we don't have MGMT interface (#3566)
Added configuration to use Loopback ip if a switch doesn't have MGMT_PORT.
2019-10-07 16:56:00 +00:00
Wirut Getbamrung
4ab5c2f6e5 [device/celestica]: update psuutil follow new platform api (#3537)
Fixes #3518

Update psuutil API to detect PSU GPIO base from label
2019-10-07 16:56:00 +00:00
Ying Xie
619c4a4851
[201811][sairedis] advance sub module head (#3562)
Submodule src/sonic-sairedis 55ec4d2..627e6bc:
  > Add TimerWatchdog for monitoring long execution apis (#469)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-04 08:00:27 -07:00
Ying Xie
56085be06b [bcm config] enable sram scan (#3558)
Per Broadcom's recommendations.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-04 00:04:39 +00:00
Ying Xie
2119205046
[201811][utilities] advance sub module head (#3557)
Submodule src/sonic-utilities 2d721de..fb5902f:
  > Revert "[fast reboot] kill teamd docker directly (#683)" (#690)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-03 12:10:52 -07:00
Volodymyr Samotiy
eecc3b15c8 [Mellanox]: Update FW to 4.3.1636 version (#3551) 2019-10-03 11:38:11 -07:00
Ying Xie
40ad3fd603
[201811][swss][utilities] advance sub module head (#3552)
* [201811][swss][utilities] advance sub module head

Submodule src/sonic-swss fcd091c..9585be4:
  > [teamsyncd]: Check if LAG exists before removing (#1069)
  > [mirrororch]: Toggle the mirror session when moving between VLAN/non-VLAN (#1078)

Submodule src/sonic-utilities 7bb6ffb..2d721de:
  > [show] Properly replace port name with alias in command output (#664)
  > [neighbor_advertiser] hand pick partial change from #525 (#689)
  > Revert "Revert "Fixed config Asym PFC CLI. (#632)" (#652)"

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* address compile issue

Submodule src/sonic-swss 9585be4..2529d79:
  > [mirrororch]: Address compiler switch issue (#1079)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-03 08:05:33 -07:00
pavel-shirshov
975fb1c488 [libteam]: Keep member ports parts of a team when teamd quits in FR and WR (#3544) 2019-10-02 22:35:46 +00:00