Commit Graph

300 Commits

Author SHA1 Message Date
Taoyu Li
c9cc7aea41 [configdb] Migrate minigraph configurations to DB (#942)
Modify minigraph parser output format so it fit DB schema
Modify configuration templates to fit new schema
Systemd services dependencies are modified so database starts before any configuration consumer
2017-09-12 14:13:27 -07:00
lguohan
48f1a638cb [sairedis]: revert deadlock fix in sonic-sairedis submodule (#934)
The deadlock fix in sonic-sairedis introduce other race conditions which
is more prevelant.
2017-09-05 20:55:07 -07:00
Ying Xie
1a4f039f55 [quagga] enable core dump for bgpd and zebra (#927)
* [core dump] pass unix time to coredump-compress script

Currently we only have program name (e.g. bgpd) and PID in the core file
name. PID could collide especially after docker restart or recreate.

Passing the unix time to coredump-compress so it could also add time to
the core file name.

* [utilities] include the change to coredump_compress script

* [quagga] enable core dump for bgpd and zebra

bgpd and zebra downgrade their privilege shortly after started. For that
sysctrl kernel.suid_dumpable needs to be set to 2, so that they can dump
core.

Note that fs.suid_dumpable SHOULD NOT be set to 1. Which will bypass all
system security.
2017-08-30 09:41:47 -07:00
Taoyu Li
e4502527d0 Revert "Migrate DEVICE_METADATA to db (#919)" (#928)
This reverts commit 44502b217b.
2017-08-29 17:03:31 -07:00
Taoyu Li
44502b217b Migrate DEVICE_METADATA to db (#919) 2017-08-29 10:47:25 -07:00
Shu0T1an ChenG
521de84830 Merge remote-tracking branch 'github/master' into v1.0.3-backup 2017-08-28 17:05:14 -07:00
Andriy Moroz
48b0beb7ff Port speed (#879)
* Add port speed configuration

* Add DeviceInfos support in minigraph parser

* Add cfggen test 'test_minigraph_ethernet_interfaces'

* Fixed PR comments

* Update sonic-swss submodule reference
2017-08-23 19:41:14 -07:00
lguohan
9a458d8434 [kernel]: update kernel submodule (#910) 2017-08-23 12:08:27 -07:00
Shu0T1an ChenG
a95f062a08 Merge remote-tracking branch 'github/master' into v1.0.3-backup 2017-08-23 12:05:22 -07:00
lguohan
af8a20d011 [submodule]: update sonic linux kernel (#906) 2017-08-22 18:04:02 -07:00
Ying Xie
d2120449d5 [sonic-sairedis] update sairedis submodule (#211, #212) (#904) 2017-08-22 13:54:10 -07:00
Joe LeVeque
7fca49e7df [sonic-utilities]: Update submodule to remove pager from CLI utils (#897) 2017-08-18 10:41:06 -07:00
Shuotian Cheng
f0cc414dff [SAI]: Remove the SAI submodule from buildimage repo (#893)
SAI is a submodule of sonic-sairedis repository. Remove the dependency
from this repository.
2017-08-16 13:47:20 -07:00
Shu0T1an ChenG
adbc9d102a Merge remote-tracking branch 'github/master' into v1.0.3-backup 2017-08-15 13:53:25 -07:00
Shuotian Cheng
693ad9c4ee [quagga]: Update sonic-quagga submodule (#892)
- [bgpd]: Enable forwarding state flag in graceful restart capability
- [debian]: Add autoreconf_clean
2017-08-15 12:10:43 -07:00
pavel-shirshov
c299fe472d Update sonic-utilities (#887) 2017-08-14 15:56:40 -07:00
Oleksandr Ivantsiv
232acbf217 [submodule] update sonic-swss submodule (#885) 2017-08-14 11:41:44 -07:00
Joe LeVeque
178fc032ae [sfputil]: Add support for SFP presence, low-power mode and reset (#877)
- Update sfputil plugins for Dell FORCE10-S6000, Arista 7050-QX-32, 7050-QX-32-S
2017-08-11 11:36:32 -07:00
Shu0T1an ChenG
df3436b80b [utilities]: Update sonic-utilities submodule
- [sfputil]: Refactor and add support for presence, low-power mode and reset
2017-08-10 19:24:43 -07:00
Shu0T1an ChenG
fa1ac0e05a [swss-common]: Update sonic-swss-common submodule
- [netlink]: Increase netlink buffer size
- [netlink]: Check return vode from nl_recvmsgs_default
- [select]: EINTR error hanlding
- [makefile]: Use full file names
2017-08-10 19:24:29 -07:00
Shu0T1an ChenG
c82868e631 [quagga]: Update sonic-quagga submodule
- [bgpd]: Enable forwarding state flag in graceful restart capability
- [debian]: Add autoreconf_clean
2017-08-10 19:03:26 -07:00
Shu0T1an ChenG
e13789c5af Merge remote-tracking branch 'github/master' into v1.0.3
Conflicts:
	platform/mellanox/mlnx-fw-upgrade.sh
	src/sonic-sairedis
	src/sonic-swss
2017-08-10 18:52:01 -07:00
Joe LeVeque
9d5adb993a [System logs]: Improvements to prevent filling /var/log partition (#865)
- Force log rotation at size thresholds only (no longer also rotating logs daily), allowing for more consistent archived log size
- Eliminate remaining duplicate log messages
- Cron facility now only logs to cron.log (was also logging to syslog)
- Debug, mail, news and user log facilities only log to syslog; no longer creating separate log files for these facilities
- Cron job that calls logrotate every minute now uses the main /etc/logrotate.conf file so as to check/rotate all logs every minute, not just the logs specified in the rsyslog file. Also redirecting output of this command to /dev/null to prevent "(CRON) info (No MTA installed, discarding output)" messages in cron.log due to lack of a mail service
- Delete archive files based on remaining /var/log partition space. Note that this solution currently requires a minimum /var/log partition size of 32MB to function correctly
- Update sonic-sairedis and sonic-swss submodules to incorporate recording file name changes
- Add .screen file to .gitignore (unrelated)
2017-08-10 16:24:57 -07:00
Taoyu Li
847a948069 Update sonic-utilities pointer to support reload minigraph (#871) 2017-08-08 21:40:31 -07:00
Taoyu Li
a2fe0212be [ConfigDB] Move all BGP configuration into DB (#861)
- BGP data read from minigraph.py now match DB schema
- BGP templates are updated
- bgpcfgd can now deal with runtime neighbor create/delete
2017-08-08 16:23:58 -07:00
Qi Luo
618b25f18c Squash merge v1.0.3 branch onto master 2017-08-02 22:28:17 +00:00
Taoyu Li
b6efe438b5 Introduce ConfigDB (#808)
* [cfggen] Support reading from and writing to configdb
* [bgp] Move bgp_admin_state to configdb, support dynamic admin state change
* [sonic-utilities] Adapt configDB for admin status, support config save and config load
2017-08-01 19:02:00 -07:00
Shuotian Cheng
4d5420b865 [minigraph]: Ignore eth0 IPv6 addresses (#841)
- IPv6 is not supported on management interface
- Add unit test
2017-07-25 07:09:23 -07:00
Oleksandr Ivantsiv
7ba0230088 [submodule] update sonic-swss submodule (#833) 2017-07-24 12:48:19 +03:00
lguohan
c075033bb6 [submodule] update sonic-swss submodule (#817) 2017-07-19 01:14:03 -07:00
JipanYanga
481bd6b46b Update sonic-linux-kernel submodule (#812) 2017-07-17 23:19:16 -07:00
sihuihan88
1176508858 [bgpd]: support multiple peer range in single peer group (#807) 2017-07-13 15:03:10 -07:00
Joe LeVeque
f49cac086f Remove extra trailing newlines at EOF (#804)
Files now end with a single newline
2017-07-12 20:54:37 -07:00
Qi Luo
c95d4e9ceb Update submodule sonic-snmpagent (#797) 2017-07-11 16:53:30 -07:00
Qi Luo
552b57d61e Update submodule sonic-snmpagent (#795) 2017-07-07 14:26:51 -07:00
Andriy Moroz
1248cc80e7 Fix ACL json translation (#794)
* Fix ACL json translation

* Fix json translation tests
2017-07-07 11:40:35 -07:00
Marian Pritsak
51cab5d4ed [config]: Add SONIC_CONFIG_MAKE_JOBS (#784)
* [config]: Add SONIC_CONFIG_MAKE_JOBS

This config option allows user to specify -j value that will be passed
to each package build.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-07-07 15:32:50 +03:00
Shuotian Cheng
a74b3a1eb7 [teamd]: Fix Jinja2 template for calculating min_ports (#791)
In Jinja2, '|' cannot be treated directly as piping operator. The
operator precedence of '|' is higher than '*'. The filter only applies
to the value just before it. Group the expression to make sure that the
filter is applied to the outcome of the expression.

Update the unit test to add such case.
2017-07-06 16:33:24 -07:00
Taoyu Li
90f21d403c [cfg engine] Add support to read device description xml (#775)
[cfg engine] Add support to read device description xml
2017-07-06 15:28:23 -07:00
Joe LeVeque
a697e8efcf [docker-base]: Build supervisor package from source in order to update to v3.3.2 (#777)
- Resolves issue #762
2017-07-06 10:32:27 -07:00
lguohan
e68d9a2a59 [igb]: change download url to azure storage url (#770) 2017-06-29 01:38:05 -07:00
lguohan
15f245c1c9 [platform]: add front panel index in port_config.ini for s6100 (#752)
* add front panel index in port_config.ini
2017-06-27 20:34:34 -07:00
pavel-shirshov
2d97c6a0a7 [sonic-swss-common]: Submodule update (#759) 2017-06-26 21:28:16 -07:00
Oleksandr Ivantsiv
fd730d8037 [submodule]: update sonic-swss (#755) 2017-06-26 08:58:53 -07:00
Joe LeVeque
017eea8a87 [DHCP Relay]: Add support for custom Option 82 circuit_id of the form '<hostname>:<portname>' (#747)
* Add docker-dhcp-relay/Dockerfile to .gitignore

* Add isc-dhcp-relay .deb package to image build process, along with my Option 82 patch

* Install custom isc-dhcp-relay in dhcp_relay docker

* Install isc-dhcp-relay build dependencies in sonic-slave Docker container

* Copy the built .deb package to the destination directory

* Add dependencies for isc-dhcp-relay

* Change Option 82 string to '<hostname>:<portname>'

* Install dependencies of .deb files implicitly in Dockerfile

* Remove unused line

* Remove unnecessary space
2017-06-24 12:05:04 -07:00
Taoyu Li
00c494f023 [sonic-cfggen]: Add default IP deny rule in translate_acl (#734)
- Add IPv4 implicit rule: deny ip any any
  This implicit rule has lowest priority and ensures that
  the device denies all unmatched IP traffic.
2017-06-23 01:08:25 -07:00
Shuotian Cheng
5c852704fe [sonic-cfggen]: Fix minigraph.py when port_alias_map absent (#738) 2017-06-22 14:34:15 -07:00
Taoyu Li
a8e3d9745f [sonic-cfggen]: Support multiple input yaml files with -y option (#729) 2017-06-21 23:49:15 -07:00
sihuihan88
3268946de5 [BGPD]: add bgp dynamic neighbor configuration (#708)
* add bgp dynamic neighbor configuration

* [bgpd]: update as comments

* update as comment

* update to deployment_id_asn_map

* minor change
2017-06-21 18:52:50 -07:00
Taoyu Li
95906a6490 [installer] Copy old config files rather than only minigraph (#730) 2017-06-21 11:02:25 -07:00
lguohan
dd104e1b52 [submodule]: update sonic-platform-daemons submodule (#731) 2017-06-20 22:45:36 -07:00
sihuihan88
cc218b3451 [sonic-quagga]:update submodule (#718)
Signed-off-by: Sihui Han <sihan@microsoft.com>
2017-06-20 12:22:30 -07:00
lguohan
fe56389a0f [submodule]: update sonic-platform-daemons (#722) 2017-06-19 22:16:21 -07:00
lguohan
35cec022e6 [submodule]: update sonic-swss (#719) 2017-06-19 11:17:30 -07:00
lguohan
4a780f4a6a [submodule]: update swss/sairedis/swss-common submodule (#716)
fix bug for logrotate sairedis log
2017-06-18 16:54:13 -07:00
Andriy Moroz
7267da3ff8 [submodule]: Update sairedis submodule (#712)
Include fix for saithrift port split parsing
2017-06-16 00:35:36 -07:00
pavel-shirshov
b616a33ff3 [sonic-cfg]: Use vlanid to generate sonic vlan name (#695)
* Use Vlan{{vlanid}} schema name of sonic vlans
2017-06-13 11:37:43 -07:00
Qi Luo
94f491ecb8 [submodule]: Update submodule sonic-snmpagent (#698) 2017-06-12 21:23:27 -07:00
Shuotian Cheng
023a5b9714 [sonic-cfggen]: translate_acl tool adds TCP mask (#697)
In orchagent, the TCP_FLAGS expects both value and mask as the input.
Right now, translate_acl tool only support one TCP flag and generate
the ACL with both value and mask equal to the flag. This rule will
match packets that have this specific flag set regardless of the other
flags.
2017-06-12 21:22:46 -07:00
Qi Luo
f1ea4aa34f Update submodule sonic-snmpagent (#694) 2017-06-12 16:00:46 -07:00
Joe LeVeque
d094ceecc2 [docker-platform-monitor]: Add LED control daemon and plugin for x86_64-arista_7050_qx32 platform (#691)
* Add files for building ledd package; add ledd to docker-platform-monitor; Control platform monitor docker using supervisord

* Add sonic-platform-daemons submodule

* Rename ledd.mk -> sonic-ledd.mk

* Add led_control.py plugin for x86_64-arista_7050_qx32 platform

* Rename Dockerfile -> Dockerfile.j2

* Fix build

* Remove blank line
2017-06-10 22:05:11 -07:00
Qi Luo
942e2062af Update submodule sonic-snmpagent (#687) 2017-06-09 08:40:14 -07:00
Marian Pritsak
820e7aafd0 [docker-teamd]: Explicitly set LAG hwaddr (#664)
* [docker-teamd]: Explicitly set LAG hwaddr

Team device is initially created without any members and has a random HW
address, which is later changed to port's address. This configuration
sets team device's address explicitly to base MAC to avoid reassignment.

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

* Update teamd config tests with hwaddr

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

* Align HW addr byte for Centec and Mellanox

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

* Change HW addr to unicast in config tests

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-06-06 16:13:38 -07:00
sihuihan88
aabe9677f2 [sonic-utilities]: update submodule (#672) 2017-06-05 22:38:47 -07:00
Shuotian Cheng
d8c55840d0 [swss]: Update swss/common and add --batch_size 8192 option to orchagent (#668) 2017-06-04 01:35:47 -07:00
Shuotian Cheng
86f660298a [swss]: Update swss/sairedis/common submodules (#654) 2017-06-01 16:18:53 -07:00
pavel-shirshov
a4f5ae799a [src/swss]: update submodule (#657)
* Update swss
2017-06-01 11:09:21 -07:00
pavel-shirshov
01a716cce2 [src/ptf update]: Submodule update (#652)
* Update ptf submodule with ptf_nn_agent fixes
2017-05-31 10:48:00 -07:00
Joe LeVeque
c3ef102547 [ptf]: Update PTF submodule to include DHCP packet creation changes (#648) 2017-05-30 19:29:52 -07:00
Shuotian Cheng
8c11cdfb5d [swss]: Update swss/sairedis/common submodules (#646) 2017-05-30 19:29:25 -07:00
Joe LeVeque
b8c11bccf2 [DHCP Relay]: Listen on all front panel, VLAN and PortChannel interfaces with IPv4 addresses (#645)
* DHCP relay now listens on all front panel, VLAN and PortChannel interfaces with IPv4 addresses
* Add sample isc-dhcp-relay output file
2017-05-30 18:29:18 -07:00
pavel-shirshov
7dfbca6497 Fix SAI submodule id (#647) 2017-05-30 13:21:44 -07:00
pavel-shirshov
2e582d22d1 update SAI and sonic-utilities submodules (#644)
* Update SAI and sonic-utilites submodules
2017-05-30 12:56:42 -07:00
Shuotian Cheng
e6bb4b20a1 [swss]: Update submodules and mount /var/log to swss docker (#636)
- [swss]: Update sairedis/swss/common submodules
- [orchagent]: Mount /var/log folder and use the folder to save recording files
- [orchagent]: Use -d to specify the folder path
2017-05-26 17:56:29 -07:00
wadelnn
31fbee21d0 Update sonic-linux-kernel submodule (#609)
Signed-off-by: Wade He chihen.he@gmail.com
2017-05-24 14:56:39 -07:00
Qi Luo
528effcace Update submodule (#629) 2017-05-24 13:49:43 -07:00
Joe LeVeque
a2eda30a03 [docker-syncd-*]: Properly manage syncd with supervisord (#617)
- This PR allows supervisord to log syncd exit events to syslog 
 - Syncd dockers now are built from docker-config-engine instead of docker-base
 - Supervisord in all syncd dockers now call syncd_start.s which is installed by sonic-sairedis repo
2017-05-24 11:53:38 -07:00
Andriy Moroz
5cc45a991d [swss]: Update swss submodule (#627)
[portsorch]: Add set port MTU function (#218)
2017-05-24 09:02:46 -07:00
sihuihan88
9669fa8e08 [utilities]: Update submodule (#623) 2017-05-23 12:09:01 -07:00
Shuotian Cheng
8b9bc6a5a4 [swss]: Update swss/common submodules (#614) 2017-05-19 11:27:46 -07:00
Joe LeVeque
3e5adf0180 [sonic-utilities]: Bump version to 1.1 (#612) 2017-05-18 20:07:31 -07:00
pavel-shirshov
14fe4bf6f8 Update sonic-snmpagent (#610) 2017-05-18 14:45:04 -07:00
Joe LeVeque
72b8284e57 Update sonic-utilities submodule; Add commands to sudoers as necessary (#608) 2017-05-17 13:02:17 -07:00
Joe LeVeque
910e666798 Add /usr/bin/generate_dump to sudoers file; Update sonic-utilities submodule (#603) 2017-05-15 14:32:39 -07:00
pavel-shirshov
d296ceadd5 [swss] submodule update (#604) 2017-05-15 11:45:41 -07:00
pavel-shirshov
1c767356c5 swss submodule update (#590) 2017-05-11 10:28:38 -07:00
lguohan
0b8c06b9e2 [image]: re-patch the support for Broadcom 54616 phy for intel igb driver. (#574)
Previous patch is not correct.
2017-05-10 22:48:04 -07:00
Joe LeVeque
6393afdb0b [sonic-utilities]: Update submodule (#581) 2017-05-10 12:39:00 -07:00
lguohan
37fc569082 [snmpagent]: update sonic-snmpagent submodule (#578) 2017-05-08 21:33:59 -07:00
Shuotian Cheng
2810f25635 [swss]: Update swss/common submodules (#571)
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
2017-05-05 17:19:19 -07:00
lguohan
1da68f9881 [swss]: update submodule (#568) 2017-05-03 09:49:45 -07:00
lguohan
e90d78a143 [quagga]: update quagga submodule (#567) 2017-05-03 09:47:40 -07:00
Qi Luo
d6aef59ee8 [swss-common]: Update swss-common submodule (#564) 2017-05-02 10:34:50 -07:00
Shuotian Cheng
54dda14af3 [swss]: Update swss submodule (#565) 2017-05-02 06:21:41 -07:00
lguohan
72a039b1de [aboot]: refactor boot0.j2 to support one image SONiC-to-SONiC upgrade (#557)
* [aboot]: refactor boot0.j2 to support one image upgrade

* support sonic_installer in aboot
2017-05-01 15:16:33 -07:00
Joe LeVeque
611de29ef7 Relocate syncd.conf from hwsku directory to platform directory (#559) 2017-05-01 15:12:11 -07:00
Qi Luo
b488c0874d [submodule]: Update submodule sonic-swss-common (#556) 2017-04-29 00:14:53 -07:00
pavel-shirshov
9dd996b3e9 Update py-swsssdk (#552) 2017-04-28 11:20:40 -07:00
Marian Pritsak
f98e2f5082 [sonic-utilities]: Update submodule (#549)
New revision includes sonic_installer utility.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-04-28 09:03:21 -07:00
lguohan
b097492b8f [thrift]: Disable auto test in the package build (#545) 2017-04-27 16:07:04 -07:00