Commit Graph

2300 Commits

Author SHA1 Message Date
Sachin Holla
12e8ed2266
Merge pull request #13 from project-arlo/brcm_poc
REST Server startup script is enhanced to read the settings from DB
2019-07-10 14:12:45 +05:30
Prabhu Sreenivasan
f17c27f12b
Merge pull request #11 from project-arlo/build-sonic-on-nfs
Allow building images on NFS-mounted clones
2019-07-10 14:00:58 +05:30
Prabhu Sreenivasan
ef7d06b317 REST Server startup script is enahnced to read the settings from
ConfigDB. Below table provides mapping of db field to command line
    argument name.

    ============================================================
    ConfigDB entry key      Field name      REST Server argument
    ============================================================
    REST_SERVER|default     port            -port
    REST_SERVER|default     client_auth     -client_auth
    REST_SERVER|default     log_level       -v
    DEVICE_METADATA|x509    server_crt      -cert
    DEVICE_METADATA|x509    server_key      -key
    DEVICE_METADATA|x509    ca_crt          -cacert
    ============================================================
2019-07-10 01:25:46 -07:00
srideepDell
31ea940741
Merge pull request #12 from project-arlo/brcm_poc
bumped up sonic-mgmt-framework commit to include PR #18
2019-07-09 23:29:38 -07:00
Prabhu Sreenivasan
c7ecb4fdaf bumped up sonc-mgmt-framework commit to include PR #18 2019-07-09 22:30:46 -07:00
Nirenjan Krishnan
de36781916 Allow building images on NFS-mounted clones
Prior to this change, `build_debian.sh` would generate a Debian
filesystem in `./fsroot`. This needs root permissions, and one of the
tests that is performed is whether the user can create a character
special file in the filesystem (using mknod).

On most NFS deployments, `root` is the least privileged user, and cannot
run mknod. Also, attempting to run commands like rm or mv as root would
fail due to permission errors, since the root user gets mapped to an
unprivileged user like `nobody`.

This commit changes the location of the Debian filesystem to `/fsroot`,
which is a tmpfs mount within the slave Docker. The default squashfs,
docker tarball and zip files are also created within /tmp, before being
copied back to /sonic as the regular user.

The side effect of this change is that the contents of `/fsroot` are no
longer available once the slave container exits, however they are
available within the squashfs image.

Signed-off-by: Nirenjan Krishnan <Nirenjan.Krishnan@dell.com>
2019-07-09 15:32:01 -07:00
jghalam
5fc3cb0ad1
Merge pull request #10 from project-arlo/brcm_poc
added libyang as dependent package
2019-07-09 15:48:50 -04:00
Prabhu Sreenivasan
bc95cef5e9 added libyang as dependent package 2019-07-09 11:35:07 -07:00
Prabhu Sreenivasan
335b3871a1
Merge pull request #9 from project-arlo/master
update brcm_poc from latest of master
2019-07-09 23:47:51 +05:30
jghalam
82acec712d
Merge pull request #8 from project-arlo/dell_dev_changes1
Dell dev changes1
2019-06-27 18:28:28 -07:00
Srideep Devireddy
8e4b212694 Build fix for docker with python packages 2019-06-27 21:13:23 -04:00
Srideep Devireddy
a825f7e601 Add python packages to docker 2019-06-27 20:30:55 -04:00
Srideep Devireddy
387b8b0b3d bumped up sonic-mgmt-framework commit-id 2019-06-27 20:29:03 -04:00
srideepDell
1260d4615c
Merge pull request #7 from Azure/master
fix fast reboot compatibility (#3083)
2019-06-27 14:05:34 -07:00
Srideep Devireddy
e292c98446 version bump for sonic-mgmt-framework commit-it 2019-06-27 16:02:49 -04:00
Stepan Blyshchak
6961816dec fix fast reboot compatibility (#3083)
* fix fast reboot compatibility

We should handle both cases for backward-compatible with 201803:
 - fast-reboot
 - SONIC_BOOT_TYPE=fast-reboot

* handle review comments
* add a comment that getBootType code snippet is shared between two files
2019-06-26 12:46:58 -07:00
nirenjan
757bf99f56
Merge pull request #6 from project-arlo/brcm_poc
bumped up sonic-mgmt-framework commit-id
2019-06-25 21:55:34 -07:00
Prabhu Sreenivasan
b4d36e7678 bumped up sonic-mgmt-framework commit-id 2019-06-25 21:50:28 -07:00
jghalam
5334b91cb9
Merge pull request #5 from project-arlo/dell_dev_changes1
Changes to build sonic-mgmt-framework docker
2019-06-25 19:05:39 -07:00
Srideep Devireddy
efd773fb53 Changes to build sonic-mgmt-framework docker 2019-06-25 20:24:09 -04:00
srideepDell
6b7d777ef3
Merge pull request #4 from Azure/master
sync from Azure to Project-arlo
2019-06-25 14:30:21 -07:00
Karthik Gengan
b92d980769 Remapping S6000 platform files under Vendor (DellEmc) specific directory (#3079) 2019-06-25 12:23:24 -07:00
Wirut Getbamrung
94b3c362f8 [device/celestica] Implement PSU APIs based on the new platform API (#2874) 2019-06-25 12:22:13 -07:00
Kebo Liu
331866dbe3 [sonic-cfggen] Add Mellanox platform specific code to read base mac from machine.conf (#2991)
* add code to read base mac from machine.conf

* rewording the comments

* add mac validation with re

* fix review comments

* remove empty line
2019-06-25 08:56:35 +03:00
Jipan Yang
9a1bebe496 [telemetry]: change the service dependency from swss to database (#3072)
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
2019-06-24 12:36:16 -07:00
simonJi2018
3f54b58a67 [nephos]: update to support linux-kernel-4.9.0-9-2 (#3058) 2019-06-24 08:14:27 -07:00
Sudharsan D.G
2e40fa5dbe [devices]: Poller to detect Intel Rangely LPC failure for dell z9100/s6100 (#3065)
- What I did
Added Daemon to Log LPC bus degradation in Intel C2000 processor. Intel Rangeley C2000 processors with revision less than or equal to 2 have issue where LPC bus degrades over time in some processors. To identify the problem and to notify the issue, a daemon has been added which will log on encountering the issue.

- How I did it
Added a daemon which validates the CPLD scratch(0x102) and SMF scratch(0x202) registers by writing and reading values on regular polling intervals (300 seconds). If there is a discrepancy between read and write, a critical log will be thrown.

- How to verify it
The infra is verify by simulating the issue where between write and read, the value in register is modified and the log appearance is checked.

- Description for the changelog

Added Daemon to identify LPC bus degradation issue and notify using syslog in Dell S6100 and Z9100 platforms. This daemon will only run on processors with revision less than or equal to 2.
2019-06-24 08:13:40 -07:00
pavel-shirshov
dd0f005b8a
[FRR]: Port some patches from sonic-quagga repo (#3017)
* Update sonic-quagga submodule

* Port some patches from sonic-quagga

* Fix Makefile

* Another patch

* Uncomment bgp test

* Downport Nikos's patch

* Add a patch to alleviate the vendor issue

* use patch instead of stg
2019-06-23 15:26:02 -07:00
brandonchuang
93582c7af9 [devices]: Add lpmode in sfputil.py for Accton AS7726-32X (#3040)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-23 11:54:27 -07:00
Stepan Blyshchak
34e790bfce [swss] update swss pointer (#3055)
to include update in mellanox PFCWD lua script
matching new SAI

sonic-swss:
    407d048 [mellanox] convert logic to use quanta in pfc_detect_mellanox.lua (#930)
    67c0940 [test]: Skip test_clear in test_watermark (#937)
    c72c34f Enable Vnet/Vxlan VS test (#935)
    4c771d0 add incCrmAclUsedCounter and decCrmAclUsedCounter for SAI_ACL_BIND_POINT_TYPE_SWITCH case. (#899)
    825c0cb [vs]: Fix bitmap VNET virtual switch test (#936)
    4577b40 Add buffer pool watermark support (#853)
    4a67378 Add support of VXLAN tunnel removal (#931)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2019-06-22 17:40:26 -07:00
paavaanan
622c426a84 [devices]: DellEMC Z9264f remove 115200 baud-ratesupport (#3046) 2019-06-22 17:15:22 -07:00
Andriy Kokhan
4f35cce27b [bfn] added TNA config for all devices (#3029)
Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
2019-06-22 14:50:14 -07:00
sridhar-ravindran
9cf34ec464 Revert "[Dell] [Z9100] Supporting PreEmphasis Settings for Optics (#2501)" (#3060)
This reverts commit ed2d87a710.
2019-06-22 14:45:43 -07:00
lguohan
40330bcbdf
[build]: wait up to 60 seconds for docker engine to start (#3067)
* [build]: wait 60 seconds for docker engine to start

On some platforms, it can take more than 1 second for docker
engine to start.

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-06-22 14:40:05 -07:00
Stepan Blyshchak
81cf33231f [build]: Improve dockerfile instructions (#3048)
- create a dockerfile-marcros.j2 file with all common operations
  written as j2 macro
- use single dockerfile instruction for COPY and RUN commands
  when possible to improve build time
- reorganize dockerfile instructions to make more cache friendly
  (in case someday we will remove --no-cache to build docker images)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2019-06-22 11:26:23 -07:00
Pavlo Yadvichuk
817c6370bf [frr.conf] Advertise /64 prefix for ipv6 lo addresses in case 'unified' config mode (#3045)
Signed-off-by: Pavlo Yadvychuk <pyadvychuk@barefootnetworks.com>
2019-06-22 10:29:41 -07:00
Prabhu Sreenivasan
23c4b774b4
Merge pull request #3 from project-arlo/brcm_poc
Merged changes 70007e6d2ba3a4c0b371cd693ccc63e0a8906e77..00d4fcfed6a7…
2019-06-22 18:08:05 +05:30
Partha Dutta
3d804a49d7 Merged changes 70007e6d2ba3a4c0b371cd693ccc63e0a8906e77..00d4fcfed6a759e40d7b92120ea0ee1f08300fc6
00d4fcfed6a759e40d7b92120ea0ee1f08300fc6 Modified environemnt variables
2019-06-21 23:55:09 -07:00
Myron Sosyak
f4d07dc003 fixed BFN target build (#3061)
Signed-off-by: Myron Sosyak <msosyak@barefootnetworks.com>
2019-06-21 13:29:35 -07:00
Samuel Angebault
e680892f39 [build] Improve overlay check in Makefile (#3050)
Some kernels are built with overlayfs as a builtin and not a module.
For these the check via lsmod currently fails.
This improvement now checks the kernel configuration for the
CONFIG_OVERLAY_FS entry. Depending on the OS and kernel version the
build configuration can be in multiple places.
2019-06-20 09:20:34 -07:00
Stepan Blyshchak
1bcd54d38c [build]: Upgrade docker to 18.09 in stretch slave (#3049)
Also add an option to use docker buildkit for image build

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2019-06-20 09:19:33 -07:00
Qi Luo
69b8ad7be0 [submodule] update sonic-linux-kernel to 4.9.168-1+deb9u3 (#3034) 2019-06-19 14:20:38 -07:00
jghalam
a1e885f80f
Merge pull request #2 from project-arlo/brcm_poc
update sonic-mgmt-framework submodule branch to master
2019-06-19 12:47:35 -07:00
Prabhu Sreenivasan
477f233ca6 update sonic-mgmt-framework submodule branch to master 2019-06-19 12:04:36 -07:00
jghalam
3b3ded5c3f
Merge pull request #1 from project-arlo/brcm_poc
Brcm poc changes to include sonic-mgmt-framework docker to sonic-broadcom.bin
2019-06-19 11:50:12 -07:00
Prabhu Sreenivasan
3a8ef73d0e fix build issues 2019-06-19 11:01:06 -07:00
RAMA CHANDRA REDDY GADDAM
6370d64b3d [broadcom]: Check for broadcom platform sdk init ready during syncd start. (#2931)
- What I did
During boot/reload time, wait in a loop to check for bcm initialization.
Break the loop, once sdk is ready to process the 'bcmcmd' request (or) loop count reached the maximum value.

- How I did it
In the existing implementation during syncd start process will sleep for a fixed time (3 secs)
for sdk initialization to happen. But the time taken for sdk initialization is varying for different platforms.
To fix this issue, the syncd start process wait in a loop and check whether sdk is ready to process 'bcmcmd' command.

- How to verify it
Check for syncd process status and interface status.
Check for syslogs and no failures related to syncd should be present.
2019-06-19 01:25:37 -07:00
Michel Moriniaux
18544530d3 [FRR] Enable SNMP support (#2981)
This is a follow-up of sonic-snmpagent PR 92
Now that licensing issues have been solved FRR is distributed with SNMP
support compiled-in. This PR adds the last bits of configuration to get
the frr-snmp debian packages added to the docker container and the
config bits to enable the snmp module in FRR

This PR brings the functionality of being able to poll bgpd for routes
and peer status.

Signed-off-by: Michel Moriniaux <m.moriniaux@criteo.com>
2019-06-19 01:24:42 -07:00
Greg Paussa
c67c29f7ae [build]: Add missing 'rm -rf' to component Makefiles for clean rebuild (#3028)
* src/iproute2/Makefile
* src/python3/Makefile

These Makefiles do not properly clean out the src build subdirectory
prior to downloading the source code contents. This causes an error
during a rebuild following a 'make clean'.

Signed-off-by: Greg Paussa <greg.paussa@broadcom.com>
2019-06-19 00:18:12 -07:00
neethajohn
2e121f3329 [submodule]: Update submodule sonic-quagga (#3030)
Reduce the retry time for IPV6 connections to avoid reprogramming IPv6 routes after warm-reboot (#37)
2019-06-19 00:17:06 -07:00