Commit Graph

1599 Commits

Author SHA1 Message Date
Shuotian Cheng
ad5b14cd3c [vs]: Add pip install six (#1978)
sonic-utilities requires six

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-23 19:11:53 -07:00
Wirut Getbamrung
27bdc00be3 [platform/device] - Update Haliburton platform modules and device configuration (#1975)
* Add psuutil and sfputil support

* Fixed fancontrol issue

* Add sensor's label

* Update haliburton platform modules
2018-08-23 13:43:05 -07:00
Shuotian Cheng
a99008356b [dell]: Remove depmod -a from the platform initialization script (#1954)
depmod -a will be executed automatically after the package get installed

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-22 17:12:05 -07:00
Ying Xie
7eacb683c4 [baseimage]: update make file for initramfs-tools (#1967)
Call add_extra_package instead add_derived_package. Because the 'extra'
package doesn't require 'base' package to be installed to be built.

This change enables make stretch with multiple threads.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-08-22 13:04:58 -07:00
Wenda Ni
a5fd3beb1b [mellanox]: Enable WRED red color profile on mellanox platform (#1968)
Signed-off-by: Wenda <wenni@microsoft.com>
2018-08-22 13:03:52 -07:00
lguohan
80c6453731
[swss]: simplify swss systemd service file (#1965)
move the swss service start/stop logic into /usr/local/bin/swss.sh

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-22 13:02:32 -07:00
Volodymyr Samotiy
ada11409b2 [mellanox]: Fix sysfs path for PSU devices in psuutil plugin (#1966)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-08-22 09:08:08 -07:00
Samuel Angebault
d7be9a41c0 [kernel]: Update sonic-linux-kernel pointer (#1964) 2018-08-22 02:37:53 -07:00
yurypm
de0e892eaa [arista] Fix arista-convertfs script (#1961) 2018-08-21 15:19:31 -07:00
lguohan
a01791ebcd
[vs-test]: support python docker 3.5.0 (#1958)
* [vs-test]: support python docker 3.5.0

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-21 10:10:58 -07:00
Samuel Angebault
788b20ee12 [arista]: Fix mount point discovery in boot0 for overlayfs (#1959)
On overlay filesystem the name of the mountpoint will also match in the
mount command for overlayfs as upperdir=
To prevent detecting the wrong partition we now look for space before.
This ensure that we match mountpoint and not devices in df and mount
outputs.
2018-08-21 00:58:16 -07:00
Shuotian Cheng
450cb04176 [utilities]: Update sonic-utilities submodule (#1956)
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-21 00:55:39 -07:00
Qi Luo
c692d2dcd0 [baseimage]: Build specific revision of initramfs-tools (#1957)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-08-21 00:00:46 -07:00
Qi Luo
454690506e [kernel]: upgrade kernel to 4.9.0-7 (4.9.110-3+deb9u2) (#1955)
* [kernel]: upgrade kernel to 4.9.0-7 (4.9.110-3+deb9u2)

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>

* Update submodule

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-08-20 21:10:49 -07:00
Shuotian Cheng
d9527ec5cb
[utilities]: Update sonic-utilities submodule (#1949)
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-20 11:19:28 -07:00
Shuotian Cheng
9413fa9a7b
[interfaces]: Move IP/MTU information from interfaces file into database (#1908)
- Move front panel ports and port channels MTU and IP configurations out of
the current /etc/network/interfaces file and store them in the configuration
database.

- The default MTU value for both front panel ports and the port channels is
9100. They are set via the minigraph or 9100 by default.

- Introduce portmgrd which will pick up the MTU configurations from the
configuration database.

- The updated intfmgrd will pick up IP address changes from the configuration
database.

- Update sonic-swss submodule

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-20 11:19:16 -07:00
Ying Xie
e7ef637a09
[config-bcm] move broadcom config files to device folder (#1947)
- Future versions of SAI packages will stop carrying these files.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-08-20 10:11:11 -07:00
Volodymyr Samotiy
4aa3f7af68 [mellanox]: Fix system EEPROM for MSN2740 platform (#1950)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-08-20 09:06:20 -07:00
Joe LeVeque
98082d56a0 [baseimage]: Download picocom version 3.1-2 from stretch-backports; No longer build from source (#1946) 2018-08-17 17:38:20 -07:00
lguohan
f05ee30d53
[sai]: upgrade SAI to version 1.3.3 (#1944)
* [sai]: upgrade SAI to version 1.3.3

Signed-off-by: Guohan Lu <gulv@microsoft.com>

* update mellanox sai
2018-08-17 11:13:08 -07:00
Kebo Liu
f499254f46 [swsssdk]: update DBInterface submodule (#1942) 2018-08-17 09:06:32 -07:00
lguohan
c059d9982a
[baseimage]: install picocom 3.1 in base image (#1943)
* [baseimage]: install picocom 3.1 in base image

Signed-off-by: Guohan Lu <gulv@microsoft.com>

* add picocom to stretch build

Signed-off-by: Guohan Lu <gulv@microsoft.com>

* fix slave.mk bug

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-17 09:06:05 -07:00
Kebo Liu
5a17a04c82 [mlnx-platform] enhancement for xcvrd implementation on mlnx platform (#1937)
* mlnx enhancement for xcvrd implementation

* fix conflict
2018-08-16 23:12:00 -07:00
lguohan
ec8a7f5e54
[broadcom]: fix delay to load led proc init (#1940)
led start bcm cmd triggers link state notifications.
This is quick fix to avoid such fake link state notifications.

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-16 23:11:45 -07:00
Wenda Ni
86205b858a [devices/a7050]: Separate ECN/WRED profile per queue to maintain a consistent view among CONFIG_DB get commands (#1941)
for ecn on/off operations, which are conducted at per queue all interfaces granularity.

TODO:
Ideally, we should have ECN/WRED profile applied at per interface per queue
granularity, and we should do it for all hwskus under the device
directory, not just 7050.

Signed-off-by: Wenda Ni <wenni@microsoft.com>
2018-08-16 23:11:20 -07:00
Ying Xie
a8ccf589c9 [build]: Makefile: make new step "make stretch" optional (#1936)
* [makefile] Rename Makefile to Makefile.work

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

* [makefile] Add new make file to avoid extra step

* avoiding calling "make stretch"

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

* [makefile] allow skipping "make stretch"

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

* [makefile] add all PHONY targets to pass through list

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-08-16 15:54:31 -07:00
Volodymyr Samotiy
986a857cd9 [mellanox]: Fix problem with system EEPROM in "hw-mgmt" (#1938)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-08-16 15:53:43 -07:00
Pradchaya P
fd5bce57dd [device/dx010] configuration port index start from 1 (#1927)
* update sfputil, port indext start from 1

* DX010 update SKUs port config index

Port index in port_config.ini now start from 1.
* Seastone-DX010-10-50 port config update
* Seastone-DX010-50 port config update
* Seastone-DX010 port config update

* Update dx010 sfputil plugin

 * Implement lpmode set function.
 * Implement transceiver reset function.
 * Python code style format.

* Remove new line at the end of port_config.ini

 *New line cause parsing error in sfputilbase.

* Add get_transceiver_change_event method

 *This needed by new sfputilbase implement.

* Fix unintended line breaks
2018-08-16 10:38:33 -07:00
stepanblyschak
cd9c5e7373 Allow similar devices configs sharing (#1933)
* Allow similar devices configs sharing

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>

* Remove unnecessary cp flags

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>

* Remove hw-managment symlink for LS-SN2700 & resolve symlinks during cp

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2018-08-16 10:37:25 -07:00
lguohan
38f3eba695
[kernel]: upgrade kernel to 4.9.0-7 (4.9.110-3+deb9u1) (#1922)
* [kernel]: upgrade kernel to 4.9.0-7 (4.9.110-3+deb9u1)

Signed-off-by: Guohan Lu <gulv@microsoft.com>

* [mellanox]: Update SDK pointer for 4.9.0-7 kernel (#44)

Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>

* Update arista drivers for 4.9.0-7 linux kernel (#43)
2018-08-16 08:56:56 -07:00
stepanblyschak
c1e17c33b5 [mellanox]: Fix qos.json.j2: apply qos config for active ports (#1932)
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2018-08-15 21:46:34 -07:00
Shuotian Cheng
7d2766077a [common]: Update sonic-swss-common submodule (#1934)
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-08-15 21:45:44 -07:00
cawand
9f545456c9 Added picocom and pexpect to base image, for use in consutil (#1935)
Signed-off-by: Cayla Wanderman-Milne <t-cawand@microsoft.com>
2018-08-15 21:41:12 -07:00
Mykola F
f0d4a07a20 [submodule] update snmpagent pointer (#1930) 2018-08-15 06:02:03 -07:00
Volodymyr Samotiy
c4e2f3e630 [mellanox]: Update hw-mgmt service with the stop action (#1929)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-08-14 16:05:07 -07:00
loshihyu
6918a22959 [Inventec] Add D7264 platform support (#1675)
* Add Inventec D7264 platform support

* Fixed util script file permission

* Fixed more scripts file permission
2018-08-14 13:07:03 -07:00
Volodymyr Samotiy
746ad967a4 [mellanox]: Fix post stop action in swss service template (#1928)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-08-14 11:46:01 -07:00
pavel-shirshov
cdc271720d [submodule update]: sonic-quagga. Add dscp flag settings (#1926)
* sonic-quagga update. Don't spam with 'Vtysh connected from' message

* Enable counters inside swss container. systemd is not flexible enough to follow our business rules

* Update sonic-quagga
2018-08-14 00:35:30 -07:00
Guohan Lu
4547d9aa2a [nephos]: build platform modules in debian stretch docker
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-14 05:22:29 +00:00
lguohan
e15cf2d66a
[build]: print error message when use root or sudo to build. (#1923)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 18:30:22 -07:00
Qi Luo
40bb27ca1c Simplify script to install docker (#1925)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-08-13 18:30:00 -07:00
lguohan
859d0e1e8a
[bcmsh]: add inactivity timeout for bcmsh (default 300 seconds) (#1921)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 11:34:04 -07:00
Guohan Lu
9047edc38e [platform]: move dell platform modules into buildimage repo
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 10:39:07 +00:00
lguohan
0cd4ef0c85
[socat]: build socat with readline (#1919)
support readline in bcmsh

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 01:12:58 -07:00
lguohan
f3ca7c422f
[rsyslog]: use # to separate container name and program name in syslog message (#1918)
Previously use / to separate container name and program name.

However, in rsyslogd:

Precisely, the programname is terminated by either (whichever occurs first):

end of tag
nonprintable character
‘:’
‘[‘
‘/’
The above definition has been taken from the FreeBSD syslogd sources.

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-12 22:23:58 -07:00
lguohan
647af39ff0
[build]: create empty /var/lib/docker if needed (#1920)
stretch docker-engine in base image is not started by default
in the build process. Need to create empty /var/lib/docker

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-12 22:23:43 -07:00
Guohan Lu
add2444cfd [barefoot]: build platform modules for bfn, bfn-montara, wnc-osw1800
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 04:29:26 +00:00
yangbashuang
eefd3f4ddb [platform]: update centec platform drivers and sai (#1702) 2018-08-12 17:22:08 -07:00
klhaung
58db7f17a7 [device & platform] led and transceiver deamon for inventec switch d7032 and d7054 (#1678)
* [device]: Modify SFPUtil for inventec-d7032
[device]: Add front panel led support for Inventec-d7032
[platform]: Add transceiver monitor daemon for Inventec-d7032 and Inventec-d7054

* [device] follow new porting guide to have broadcom config under device folder

* remove license
2018-08-12 12:39:20 -07:00
zhenggen-xu
d761630f73 Fix potential blackholing/looping traffic when link-local was used and refresh ipv6 neighbor to avoid CPU hit (#1904)
* Fix potential blackholing/looping traffic and refresh ipv6 neighbor to avoid CPU hit

In case ipv6 global addresses were configured on L3 interfaces and used for peering,
and routing protocol was using link-local addresses on the same interfaces as prefered nexthops,
the link-local addresses could be aged out after a while due to no activities towards the link-local
addresses themselves. And when we receive new routes with the link-local nexthops, SONiC won't insert
them to the HW, and thus cause looping or blackholing traffic.

Global ipv6 addresses on L3 interfaces between switches are refreshed by BGP keeplive and other messages.

On server facing side, traffic may hit fowarding plane only, and no refresh for the ipv6 neighbor entries regularly.
This could age-out the linux kernel ipv6 neighbor entries, and HW neighbor table entries could be removed,
and thus traffic going to those neighbors would hit CPU, and cause traffic drop and temperary CPU high load.

Also, if link-local addresses were not learned, we may not get them at all later.

It is intended to fix all above issues.

Changes:
Add ndisc6 package in swss docker and use it for ipv6 ndp ping to update the neighbors' state on Vlan interfaces
Change the default ipv6 neighbor reachable timer to 30mins
Add periodical ipv6 multicast ping to ff02::11 to get/refresh link-local neighbor info.

* Fix review comments:
Add PORTCHANNEL_INTERFACE interface for ipv6 multicast ping
format issue

* Combine regular L3 interface and portchannel interface for looping

* Add ndisc6 package to vs docker
2018-08-12 03:14:55 -07:00