Commit Graph

163 Commits

Author SHA1 Message Date
Taoyu Li
a8fdd1f42d [oneimage] Enable forcing mgmt route through minigraph (#424) 2017-03-22 20:13:55 -07:00
Shuotian Cheng
dccef8f557 [submodule]: Update common/swss/sairedis submodules (#422)
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-03-22 18:56:51 -07:00
Taoyu Li
bd77f9a38a [sonic-cfggen]: Read ACL interfaces information from minigrap (#419)
* Enable translate_acl to read acl attaching from minigraph
* Add AclInterfaces into test t0 graph
* Expose minigraph_ports according
2017-03-21 21:42:07 -07:00
sihuihan88
0444ca7c34 [submodule]: Update sonic-utilities submodule (#415) 2017-03-20 15:28:49 -07:00
Shuotian Cheng
7b7a61693a [sonic-cfggen]: Add -p option and add teamd.j2 test (#414)
- Add -p --port-config option to feed sonic-cfggen with port_config.ini
  file when necessary.
- Update minigraph.py file to accept the -p option
- Add test_j2files.py test to test config.sh and all .j2 templates
  * Currently test_teamd is added to test both the config.sh and teamd.j2
    file works well with the t0 sample minigraph and sample port config
    file
  * The sample output is added to the folder sample_output for comparison

Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-03-17 21:38:20 -07:00
lguohan
4212efde6c [sonic-utilities]: update sonic-utilities module (#412) 2017-03-17 17:41:23 -07:00
Shuotian Cheng
783be14a5d [minigraph]: Add portchannels/vlans dictionary and update teamd templates (#408)
- minigraph_portchannel_interfaces and minigraph_vlan_interfaces are lists
  of interfaces and the name could duplicate due to multiple IPs
- Add minigraph_portchannels and minigraph_vlans dictionaries to support
  querying port channels and vlans via the name
- Update teamd.j2 template and config.sh file in docker-teamd
- Update zebra.conf.j2 template to add port channel interfaces

Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-03-17 16:48:13 -07:00
Taoyu Li
3643281594 [cfggen] Add tool to translate openconfig acl into sonic format (#388)
* Build sonic-config-engine as whl instead of deb package
* Add tool to translate openconfig acl into sonic format
2017-03-17 14:51:42 -07:00
Taoyu Li
e0fd12aa23 [cfggen] Add basic functional test (#375)
[cfggen] Add basic functional test
2017-03-17 11:07:12 -07:00
Shuotian Cheng
05e6b3611d [interfaces]: Combine vlan_interfaces and lag_interfaces file and add allow-hotplug (#381)
* [files]: Add allow-hotplug stanza to interfaces files

- start interface <interface_name> when the kernel detects
a hotplug event from the interface

ref: https://www.debian.org/doc/manuals/debian-reference/ch05.en.html

* [interfaces]: Combine vlan_interfaces and lag_interfaces file and add allow-hotplug

1. Remove vlan_interfaces and lag_interfaces file and members in teamd.j2
2. Add all interfaces to /etc/network/interfaces file
3. Add allow-hotplug stanza
4. Add up <command> to automatically add interfaces to VLAN and LAG
5. Add unique_name filter to minigraph.py to remove duplicate interface names
6. Add brctl to base image
7. Update sonic-swss submodule

Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-03-16 11:22:40 -07:00
lguohan
096690e626 [snmpagent]: update sonic-snmpagent submodule (#402) 2017-03-16 09:28:14 -07:00
sihuihan88
d3aa07e1de Update sonic-utilities submodule (#395) 2017-03-14 21:03:04 -07:00
Qi Luo
57196aa927 Update submodules (#394) 2017-03-14 18:47:23 -07:00
kaiyu22
b9bee5dc92 [platform]: Sync hwsku name with INGRASYS-S9100-C32 (#391)
Signed-off-by: Sam Yang yang.kaiyu@gmail.com
2017-03-13 08:31:51 -07:00
Qi Luo
1491bf9eae [src]: Update sonic-snmpagent submodule (#382) 2017-03-07 02:28:50 -08:00
Taoyu Li
bd6bf1ff9a [config] [oneimage & dhcp relay docker] Move ntp, rsyslog, and dhcp server information into minigraph (#374)
Move DHCP, rsyslog, and NTP server information into minigraph


* Fix dhcp relay template according to CR
2017-03-06 12:41:26 -08:00
lguohan
6cb5925d81 [sairedis]: update syncd init to support centec asic (#379) 2017-03-04 18:02:15 -08:00
lguohan
0993ac2188 [swss]: add swssloglevel to change level log on-the-fly (#367)
add swssloglevel to change level log on-the-fly and simplify syncd start logic on multiple platforms
2017-03-03 08:44:11 -08:00
Shuotian Cheng
667ef1d766 [libteam]: Add 0002-libteam-Temporarily-remove-redundant-debug-mes.patch (#357)
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-03-02 13:34:37 -08:00
Joe LeVeque
4eb549d36f [sonic_cli]: Fix bash completion for 'show' command (#355) 2017-03-02 12:17:04 -08:00
pavel-shirshov
bac738f91f Add bgp container with gobgp (#358)
* Add go-1.7 into docker-slave

* Create container docker-fpm-gobgp with gobgpd inside
2017-03-02 11:33:46 -08:00
lguohan
1a3bfc2236 [kernel]: update sonic linux kernel to download source from azure storage (#347) 2017-02-28 12:55:48 -08:00
Taoyu Li
d9b1000e6c [cfggen] Add support in -v for jinja2 expression (#345)
* Add support in -v for jinja2 expression
* Format json output
2017-02-28 10:52:56 -08:00
Joe LeVeque
2a551d3c60 Consolidate device-specific files; install as a Debian package (#316)
( All device-specific files now reside under /device directory in a <vendor-name>/<platform-string>/<hardware-SKU> directory structure in repo.

* Device-specific files are now packaged into a Debian package (sonic-device-data) and are now installed to /usr/share/sonic/device/<platform-string>/<hardware-SKU>/ directory on switch.
2017-02-27 00:13:36 -08:00
lguohan
ffd65841e6 [kernel]: update linux kernel to support z9100 (#339) 2017-02-26 21:55:24 -08:00
Taoyu Li
08734229b6 [cfggen] Allow sku with no alias mapping and minigraph with no png (#335)
* [cfggen] Allow sku with no alias mapping and minigraph with no png

* Add alias mapping for minigraph_neighbor keys
2017-02-25 11:13:23 -08:00
lguohan
b21d26dfe0 [platform]: add support for Force10-Z9100 32x100G (#332)
* [platform]: add support for Force10-Z9100 32x100G

* update sonic-swss submodule

* [broadcom]: update broadcom sai/sdk
2017-02-24 08:35:11 -08:00
lguohan
496a03bfee [platform]: add port_config.ini for dell z9100 (#328) 2017-02-23 03:37:29 -08:00
Taoyu Li
dc7c7b1de2 Fix an issue in cfggen that always printing alias mapping (#323) 2017-02-22 19:25:30 -08:00
Taoyu Li
95ad5c79fd Fix the reference in docker-snmp-sv2 to deprecated alias_map.json (#320) 2017-02-22 14:28:37 -08:00
Oleksandr Ivantsiv
f087f1317b [sonic-sairedis]: Update submodule pointer. (#314)
Update Mellanox platform ONIE version.
2017-02-22 02:17:33 -08:00
lguohan
4feec05cf8 [swss]: update sonic-swss to fix buffer configuration on mlnx platform (#317) 2017-02-22 02:16:24 -08:00
kaiyu22
b5f9fcae99 [platform]: ingrasys-s9100: Add ingrasys switch s9100 (#318)
Signed-off-by: Sam Yang <yang.kaiyu@gmail.com>
2017-02-22 02:15:39 -08:00
Samuel Angebault
f57fd0bee8 [platform] Add support configurations files for DCS-7060CX-32S (#313) 2017-02-21 13:37:07 -08:00
Marian Pritsak
06ee8b6550 [sonic-utilities]: Update submodule pointer. (#312)
Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-02-20 12:22:18 -08:00
Taoyu Li
5573a8204e Allow sonic-cfggen to work in environment without /host/machine.conf (#307) 2017-02-17 19:47:50 -08:00
Taoyu Li
2d0b41a340 Combine alias_map.json with port_config.ini (#304)
* Combine alias_map.json with port_config.ini
2017-02-17 13:03:42 -08:00
Qi Luo
8a24c05f04 [src]: Update submodule sonic-py-swsssdk (#302) 2017-02-16 21:03:59 -08:00
Andriy Moroz
fe519be941 [src]: Update sonic-swss submodule reference (#297) 2017-02-15 08:48:37 -08:00
Qi Luo
7282846d7b Update submodule sonic-snmpagent (#287) 2017-02-10 10:36:39 -08:00
lguohan
55acd9e9e3 [python3]: add dpkg_lock in python3 build (#285) 2017-02-09 13:36:26 -08:00
Qi Luo
822680d21b Build python3.6 deb packages and install them into docker-snmp-sv2 (#245) 2017-02-08 22:02:21 -08:00
Joe LeVeque
64f26beb42 Update PTF submodule to point to current head of master branch (#255) 2017-02-05 14:37:34 -08:00
lguohan
7abb48abff [kernel]: update kernel for arista 7260cx-32 (#258) 2017-02-04 12:02:58 -08:00
pavel-shirshov
5890204e42 Update port_config.ini (#256) 2017-02-03 18:09:56 -08:00
Taoyu Li
60e1fc3c98 ONEImage - Read all platform dependent information from sonic-config-engine (#238)
Read all platform dependent information from sonic-config-engine
2017-02-02 20:34:34 -08:00
lguohan
523a738068 add dell platform driver to broadcom one image (#242) 2017-02-02 18:28:06 -08:00
Qi Luo
c05a9f2fd8 Update submodule sonic-snmpagent (#244) 2017-02-02 18:11:39 -08:00
lguohan
caab516ea7 [snmpd]: download source files from azure storage blob (#239) 2017-02-02 07:53:46 -08:00
Qi Luo
c90efba372 Update submodule sonic-snmpagent (#236) 2017-02-01 19:44:54 -08:00
Oleksandr Ivantsiv
34ea91349c one image implementation (#215)
* Single image

* Fix review comments

* Update syncd service. Add HW mgmt to Mellanox single image.

* Add single image template for Broadcom platform.

SKU should be provided during configure:
make configure PLATFORM=broadcom SKU=Force10-S6000

* Add single image template for Cavium platform.

SKU should be provided during configure:
make configure PLATFORM=cavium SKU=AS7512

* Add description to sonic_debian_extension.j2 file.
2017-01-29 11:33:33 -08:00
Taoyu Li
e87498d16d Add platform config for 7050 and 6100 (#212)
* Add platform config for 7050 and 6100

* allow certain platform to have no sensors.conf file in sonic-cfggen
2017-01-25 18:18:25 -08:00
lguohan
ac7de25d94 [src]: update linux kernel to take tg3 patch on arista qx32 platfrom (#214) 2017-01-25 11:06:08 -08:00
lguohan
752062d571 [src]: Update sonic-sairedis/swss (#213) 2017-01-25 00:01:14 -08:00
Shuotian Cheng
09f61a4894 [libteam]: Add patch 0001-libteam-Add-team_get_port_enabled-function.patch (#205) 2017-01-22 22:19:43 -08:00
Taoyu Li
4fe1bdcf87 sonic-cfggen with sonicv2 dockers (#190)
Add a sonic-config-engine to help generate config file based on minigraph and other data on runtime. Modify fpm, teamd, lldp, snmp, and platform-monitor docker to use sonic-config-engine to generate config in docker upon load.
2017-01-19 20:56:26 -08:00
pavel-shirshov
3df2c47466 [src]: Update quagga to latest (#194) 2017-01-18 13:29:06 -08:00
Shuotian Cheng
e471c98323 [src]: Update sonic-sairedis/swss/common commit to latest (#193) 2017-01-18 10:53:58 -08:00
lguohan
fe5182c5b4 update swss, swss-common, sairedis submodules (#189) 2017-01-12 08:06:14 -08:00
lguohan
5aae34ab4d [redis]: disable auto test during the build (#187) 2017-01-11 13:54:58 -08:00
Taoyu Li
ed9c8fbe8e add sonic config render engine (#178)
add sonic config render engine
2017-01-06 18:19:42 -08:00
lguohan
c19a25988c add sonic utilities into buildimage (#180) 2017-01-04 19:07:50 -08:00
lguohan
0252d78aec [swss]: update sonic-swss submodule (#179) 2017-01-04 08:06:38 -08:00
lguohan
dcc9d01577 [sairedis]: update sairedis submodule (#177) 2017-01-03 21:02:09 -08:00
lguohan
bc03c196a4 [swss]: bring swss submodule to the latest (#172) 2016-12-29 18:38:08 -08:00
lguohan
5a5f5c26da [linux-kernel]: fix sched: Fix race between task_group and sched_task_group (#169) 2016-12-29 09:53:46 -08:00
lguohan
66e3392e8a [linux-kernel]: update linux kernel to 3.16.36-1+deb8u2 (#168) 2016-12-29 00:15:31 -08:00
lguohan
26930e5e17 install latest intel igb driver 5.3.5.4 in the base image (#167) 2016-12-28 19:05:09 -08:00
lguohan
caf5333386 [kernel]: update sonic-linux-kernel submodule to integrate with build (#165) 2016-12-28 06:10:01 -08:00
Nadiya
fe5074f48e Update linux-kernel hash commit (#163)
Signed-off-by: Nadiya.Stetskovych <Nadiya.Stetskovych@cavium.com>
2016-12-27 15:16:18 -08:00
jiacao
2c444590e9 Take sonic-swss commit 96b5b523a0dedf237228b118f0420f117dca2a5b (#164) 2016-12-27 15:10:02 -08:00
Qi Luo
ab4a35a1d1 [submodules]: Update submodules to latest commits (#143) 2016-12-19 14:35:09 -08:00
lguohan
775156f3bf [thrift]: fix thrift 0.9.3 test failure (#135)
https://issues.apache.org/jira/browse/THRIFT-3577
2016-12-16 19:12:56 -08:00
lguohan
82e6b1d7d4 [quagga]: add bgp ipv6 ecmp support (#123) 2016-12-14 21:02:44 -08:00
Marian Pritsak
9095ea0d30 Integrate ptf into buildimage (#111) 2016-12-08 09:24:48 -08:00
Marian Pritsak
e9098b99fb Build improvements (#80)
* Build improvements

Fix dependencies
Add configuration options
Automatically build sonic-slave

* Set default number of jobs to 1

* Auto generate target/debs directory

Signed-off-by: marian-pritsak <marianp@mellanox.com>

* Automatically remove sonic-slave container after exit

* Silence clean-logs

* Add SONIC_CLEAN_TARGETS to clean

* Use second expansion for clean dependencies

* Avoid creating empty log files

Remove log file on flush instead of writing empty string

* Put dpkg install inside lock

Use same lock as debian install targets do to avoid
race condition in dpkg installation

* Remove redirect to log from docker save

* Add .platform dependency to all and clean targets

* Remove header and footer from clean targets

* Disable messages for SONIC_CLEAN_TARGETS

* Exit with error if dpkg-buildpackage fails

* Set new location for debs in build_debian.sh

* Add recipe for docker-database

* Update redis version to 3.2.4

* Add support for p4 platform

* Add recipe for snmpd

* Add slave targets to phony and make all target default

* Remove build.sh from thrift

* Add versioning to team, nl, hiredis and initramfs

* Change sonic-slave to support snmpd build from sources

* Remove src/tenjin

* Add recipe for lldpd

* Add recipe for mpdecimal

* Remove hiredis directory on rebuild

* Add recipe for Mellanox hw management

* Remove generic image from all targets for Mellanox

* Add support for python wheels

* Add lldp and snmp dockers

* Sync docker-database to include libjemalloc

* Fix asyncsnmp variable name

* Change default build configuration

Redirect output to log files by default
Set number of jobs to nproc value
Do not print dependencies
Fix logging to print log of failed job into console

* Use docker inspect to check if sonic-slave image exists

* Use config in slave.mk directly

* Disable color output by default

* Remove sswsdk dependency from lldp and snmp dockers

* Fix comment in py wheels install targets

* Add dependency between two versions of sswsdk

* Add containers to mellanox platform

lldp, snmp and database containers

* Add recipe for team docker

* Add team docker to mellanox platform

* Encrypt password passed to build_debian.sh

* Update mellanox SAI version

Make version and revision setting only in main recipe

* Fix error handling in makefiles

As makefiles use .ONESHELL we should add -e
option to shell options in order to exit after any command fails

* Add recipe for platform monitor image

* Add platfotm monitor to mellanox targets

* Ignore submodules when building base image
2016-12-05 11:12:19 -08:00
Shuotian Cheng
923b13afb4 src: Remove libjemalloc-dev from hiredis build.sh (#88)
libjemalloc-dev is installed in sonic-slave
2016-11-30 17:03:09 -08:00
Shuotian Cheng
6888eb74b2 dockers: Add docker-platform-monitor to make all (#87) 2016-11-30 15:44:54 -08:00
Qi Luo
6665c6ad2c Fetch redis source packages from mirror links (#83)
* Fetch redis source packages from mirror links

* Replace more version strings with macros
2016-11-28 15:30:06 -08:00
Qi Luo
543def350b Install lldpd Build-Depends (#81) 2016-11-28 12:15:39 -08:00
Qi Luo
96c2834cad Refine installation order of mlnx-sdk debs (#78) 2016-11-28 12:03:12 -08:00
Qi Luo
f83460bdb7 Add Makefile target: lldp/snmp docker images (#74)
* Add sonic-dbsyncd submodule

* Add sonic-py-swsssdk submodule

* Add lldpd submodule

* Add sonic-snmpagent submodule

* Add Makefile target: lldp/snmp docker images

* Fix docker-snmp-sv2.gz dependency

* Add lldp/snmp sources to the top level targets
2016-11-23 16:18:35 -08:00
lguohan
f45e781782 update sonic-linux-kernel submodule (#77) 2016-11-23 16:10:35 -08:00
lguohan
f25188e3a4 Add python3 build script (#76)
* build python 3.5

* update to 3.5.2-8

* add python3.5 and mpdecimal to Makefile
2016-11-22 21:08:55 -08:00
lguohan
14c86bbd25 remove applibs_*.deb to fix mlnx build (#70) 2016-11-21 17:25:45 -08:00
lguohan
590f2cb0b9 add fw-SPC.mfa in the filelist.txt (#71) 2016-11-21 10:27:23 -08:00
Guohan Lu
0f0f9926c7 reformat deb file list to make it more readable 2016-11-15 14:09:38 +00:00
Guohan Lu
dc84c4130a update mlnx sdk to 4.2.3002 and remove mlnx sai package 2016-11-15 14:08:13 +00:00
Marian Pritsak
31420370b0 Remove packages that are not required for SONiC (#67)
Remove mlnx sx-sdn-hal, sx-acl-rm and testx.
They are neither used nor installed in SONiC.
2016-11-14 11:29:46 -08:00
Qi Luo
75d7987dda Fix build: Makefile (#63)
* Fix Makefile: libnl and libteam dependencies

* Fix rule for docker-orchagent deps (brcm)

* Install libteam libs by the right order
2016-11-10 14:41:29 -08:00
Oleksandr Ivantsiv
0f10cd4a4d Update Makefile to fix to swss package compilation (#57)
Add dependency to libteam for swss package to fix compilation issue.
2016-11-03 10:22:59 -07:00
jiacao
2456860cd2 Add saimetadata-dev dependency (#55) 2016-11-02 18:28:06 -07:00
Marian Pritsak
530d2ac202 update sonic-linux-kernel submodule (#52)
Signed-off-by: marian-pritsak <marianp@mellanox.com>
2016-11-02 07:26:24 -07:00
lguohan
68363e17a0 bug fix: fix the redis-server deb package name (#50) 2016-11-01 07:39:08 -07:00
Qi Luo
e89c7be76d Install redis-server>=3.2.4 in docker-database image (#46)
* Install redis-server>=3.2.4

* Reformat

* Build redis from source code

* Add Makefile var: REDIS_VERSION
2016-10-31 21:50:59 -07:00
lguohan
73cbf6ccb2 update swss, sairedis and swss-common submodules (#48) 2016-10-31 12:03:54 -07:00
Shuotian Cheng
515346abf4 Dockerfile: Add libsaimetadata dependency (#42)
* Dockerfile: Add libsaimetadata dependency
* Makefile: Add saimetadata
2016-10-26 15:19:41 -07:00
lguohan
7d9fd3c4f8 build mft-kernel binary debian package (#36) 2016-10-22 00:56:50 -07:00
pavel-shirshov
e5d8289f0b Use quagga sources as a git submodule (#32) 2016-10-17 05:59:37 +00:00
Shuotian Cheng
4373c518cf libteam: Adding build.sh script and docker-team (#18) 2016-10-07 10:41:44 -07:00