Commit Graph

1032 Commits

Author SHA1 Message Date
Joe LeVeque
1d16a37d48 [DHCP Relay]: Support Multiple VLANs (Separate DHCP Relay Agents, One Per VLAN) (#999)
* [DHCP Relay]: Support new <DhcpRelays> minigraph tag; support multiple VLANs

* Don't start dhcrelay in quiet mode so as to get startup output in syslog

* Update sonic-cfggen tests to support new '<DhcpRelays>' tag

* <DhcpRelays> tag is only present for VLANs which require a DHCP relay agent -- only parse if present

* Don't attempt to configure a DHCP relay agent for VLANs without specified DHCP servers

* Modify to work with Taoyu's minigraph/DB changes (#942)

* Reduce number of DHCP servers in sonic-cfggen unit tests from 4 to 2

* Remove isc-dhcp-relay sample output file from sonic-cfggen test, as we no longer generate that file

* Update Option 82 isc-dhcp-relay patch to load all interface name-alias maps into memory once at start instead of calling sonic-cfggen on each packet we relay

* Remove executable permission from Jinja2 template

* Set max hop count to 1 so that DHCP relay will only relay packets with a hop count of zero

* Replace tabs with spaces

* Modify overlooked sonic-cfggen call, use Config DB instead of minigraph

* Also ensure > 1 VLAN requires a DHCP relay agent before outputting to template

* Generate port name-alias map file using sonic-cfggen and parse that in lieu of parsing port_config.ini directly

* No longer drop packets with hop count > 0; Instead, drop packets which already contain agent info
2017-10-04 23:35:43 -07:00
Joe LeVeque
1cd9818fe9 [build]: sonic-utilities package depends on swsssdk; build as wheel and add build dependency (#1011)
* [build]: sonic-utilities package now depends on swsssdk; add build dependency

* Now building sonic-utilities Python package in wheel format

* Update sonic-utilities submodule

* Change output wheel name to match proper format
2017-10-04 19:50:39 -07:00
Qi Luo
554114cfaa Make swssconfig status FATAL when it fails (#1009)
* Make supervisor controlled one-shot program autorestart 0 time, so the status will become FATAL instead of EXITED if failure happens

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

* Make swssconfig.sh strictly exit on any failure

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

* Tune startretries, tested in supervisor 3.3.2-1

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2017-10-04 01:02:30 -07:00
Qi Luo
646e836471 [swss]: Update swss-common/sairedis/swss submodules (#1008)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2017-10-03 23:07:05 -07:00
Shuotian Cheng
72e947621c [config-engine]: Fix bug multiple ports connecting to same neighbor (#1005)
The current DEVICE_NEIGHBOR format doesn't support multiple different
ports connecting with same neighbor. Thus the lldpd.conf file is not
generated correctly, causing missing information for LAG members.

This fix reverts the data structure in the previous version of
minigraph parser - using local port as the key and remote port/device
as the value of the map. Sample format is:

DEVICE_NEIGHBOR['Ethernet124'] = {
    'name': 'ARISTA04T1',
    'port': 'Ethernet1/1'
}

The corresponding unit test in test_cfggen is updated.
Add one more unit test for lldpd.conf.j2 verification.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2017-10-03 16:23:19 -07:00
Rodny Molina
7c326e3f1e [utilities]: Update sonic-utilities submodule (#1006) 2017-10-03 09:26:07 -07:00
Shuotian Cheng
b81f2f2fa3 [snmpagent]: Update sonic-snmpagent submodule (#1004)
* [mibs]: Fix bug module has no attribute 'get_index_from_str'

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2017-10-02 13:56:16 -07:00
Shuotian Cheng
486dfef732 [swss]: Update the ipinip.j2 template to specify the IPv4 loopback address (#998)
Use ipv4_loopback_addresses variable to store all IPv4 loopback addresses.
The source IP for encapsulation is chosen from one of the addresses.
The destination IPs for decapsulation is the list of the addresses.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2017-09-30 11:03:32 -07:00
Joe LeVeque
002aabe8ba Change all port_config.ini column headers from 'port' to 'index' (#1001) 2017-09-30 11:02:18 -07:00
Joe LeVeque
bbf1d6624b [docker-platform-monitor]: Remove stale fancontrol.pid file (if exists) before starting fancontrol (#1002) 2017-09-30 10:55:03 -07:00
Andriy Moroz
9efcc9c333 [swss]: Update swss/common submodules (#988)
* Update swss submodule reference
* Update swss-common submodule reference

This pull request introduces changes including
1. Use unified buffer configurations fro all Mellanox 27xx platforms
2. Refactor TableConsumable and optimize popping empty logics
3. Add SwitchOrch to deal with switch attributes changes
4. Refactor doAclTableTask and doAclRuleTask
5. Add PFC watchdog tables and runRedisScript function in common library

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2017-09-29 14:44:55 -07:00
Shuotian Cheng
f7a38e1f65 [snmp]: Update py-swsssdk/snmpagent submodules (#996)
sonic-py-swsssdk
- Commond utility functions for bridge/port mapping
snmp
- Update the code to use common library API for bridge/port mapping
2017-09-28 21:01:41 -07:00
Shuotian Cheng
6483919852 [Broadcom]: Update SAI version to 3.0.3.2-5 (#997)
- Add additional DropCancel and CopyToCpuCancel action rules for every redirect
2017-09-28 20:29:31 -07:00
Kebo Liu
59c03083d3 [Mellanox]: Update outdated MSN2410 minigraph (#995)
update the minigraph to the latest.
the previous one causes MSN2410 failing to start up properly.
2017-09-28 12:04:27 -07:00
Andriy Moroz
9b249ceb59 Add time stamp suffix to the dirty images version string (#958)
* Add timestamp suffix to the dirty images version string

This will allow to build different debug images without
having to update BUILD_NUMBER variable before the build

* Changed timestamp format to YYYYMMDD.HHMMSS
2017-09-27 00:04:34 -07:00
Marian Pritsak
0db8704754 [Mellanox]: Remove FW upgrade procedure in docker (#989)
FW upgrade is done outside the container.
This piece of code was left accidentally during the merge.
2017-09-26 11:22:00 -07:00
Shuotian Cheng
cce2a36528 [snmp]: Update sonic-snmpagent submodule (#986)
[rfc4363]: Add key check logic for SAI bridge port objects (#38)
2017-09-25 20:01:42 -07:00
Shuotian Cheng
a4ceff7284 [Broadcom]: Update SAI version to 3.0.3.2-4 (#983)
- Update Seastone config.bcm files
- bugfix: Fix set attribute for ipv6 neighbor
2017-09-25 17:54:46 -07:00
wadelnn
8143cb34f2 [Ingrasys]: Add Ingrasys S8900-64XC sfputil function and update submodule (#984)
* Add S8900-64XC SFP QSFP CPLD kernel module.
* Fixed QSFP function call in i2c_utils.sh.
* Add QSFP monitor service for SFP and QSFP SI.

Signed-off-by: Wade He <chihen.he@gmail.com>
2017-09-25 17:54:17 -07:00
Volodymyr Samotiy
948f3ad3ec [mellanox]: Update Mellanox SAI version (#979)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2017-09-25 13:22:02 -07:00
Jason Tsai
f570616b0d [Ingrasys]: Change hwmon kernel modules installation order (#980)
change hwmon kernel modules installation order on S8810-32Q/S8900-54XC/S8900-64XC/S9100-32X
change hwmon kernel modules installation order in i2c_utils.sh and update related fancontrol file
Check the hwmon kernel module insertion order in /sys/class/hwmon/hwmonX.
w83795 should be in /sys/class/hwmon/hwmon1, and jc42 should be the last one.
change hwmon kernel modules installation order on S8810-32Q/S8900-54XC/S8900-64XC/S9100-32X
2017-09-22 12:58:10 -07:00
Rodny Molina
b5eb0c2ce2 [Makefile] Allowing interactive session with the slave docker-container (#903)
* Fixing a couple of issues to enable FRR to run with latest SONiC code.

* Adjusting FRR's jinja template to meet latest sonic-cfgen requirements. Basically, i'm just extending #448 changes into FRR.

* Eliminate FRR's integrated-config file to prevent daemons from bypassing their own config files. FRR daemons now default to an integrated-config file for config-parsing purposes. But we are still interested in having each daemon looking in their specific config file (bgpd.conf, zebra.conf, etc). So here i'm just deleting this integrating-config file to prevent FRR from running from a bogus config-file.

* Allows interactive session with the slave docker-container after conclusion of the building process.

Proposed changes provide a more direct access to the building pipeline,
by allowing users to launch consecutive compilation tasks from the same
slave container.
2017-09-22 00:57:23 -07:00
Shuotian Cheng
1ac10dfc6f [snmp]: Update sonic-snmpagent submodule (#978)
Introducing the fix for SAI 1.0 FDB entry fix
2017-09-22 00:52:15 -07:00
Qi Luo
bec99f257a Disable snmpd module disk_hw, so no syslog messages about unavailable disks (#977)
* Revert "snmpd ignores unavailable disks (#607)"

This reverts commit d70e973496.

* Disable snmpd module disk_hw, so no syslog messages about unavailable disks

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

* Strip white spaces

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2017-09-21 17:31:39 -07:00
Shuotian Cheng
0f6c8c14e8 [teamd]: Remove deprecated blocking logic before starting teamd (#976)
With the fixes in /etc/network/interfaces file, host interfaces
could be added into the corresponding LAGs automatically. Thus,
the logic of checking if port initialization is ready is no longer
needed.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2017-09-21 14:56:16 -07:00
Shuotian Cheng
7a9894a99c [Broadcom]: Update libsai version to 3.0.3.2-2 (#973)
Update Ingrasys/Accton config.bcm files
2017-09-21 13:19:44 -07:00
Polly Hsu
69ff224169 [device/accton]: Add a new supported device, AS7312-54X (#955)
* [device/accton]: Add a new supported device and platform, AS7312-54X
Switch Vendor: Edge-core

Switch SKU: AS7312-54X

ASIC Vendor: Broadcom

Swich ASIC: Tomahawk

Port Configuration: 48x25G + 6x100G

SONiC Image: SONiC-ONIE-Broadcom
Signed-off-by: polly_hsu@accton.com

* Update port_config.ini

* Update sai.profile

* Update installer.conf

* Update led_proc_init.soc

* Update minigraph.xml
2017-09-21 12:37:22 -07:00
lguohan
0d978b5b21 [sairedis]: update sairedis submodule (#974) 2017-09-21 12:31:02 -07:00
pavel-shirshov
e0513d213b lacp runner will send lacp update right after it received SIGINT (#969) 2017-09-21 09:17:29 -07:00
Volodymyr Samotiy
763205ff7d [config]: Fix management interface configuration (#966)
* [config]: Fix management interface configuration

* [config]: Fix management interface configuration

* Fix comments
2017-09-20 23:55:50 -07:00
Shuotian Cheng
d117f09343 [Broadcom]: Update OpenNSL modules (#970)
- Increase the rx_buffer_size to 9238, the same MTU szie as in the hardware
2017-09-20 15:18:11 -07:00
Shuotian Cheng
0c6fba6993 [utilities]: Update sonic-utilities (#968) 2017-09-20 12:39:36 -07:00
Prince Sunny
72f5d6bcb7 [interfaces]: Change MTU value to 9100 (#967)
* Updated MTU to the widely used value with other devices
2017-09-19 19:29:00 -07:00
ravijo2
458093fee5 Framework to plugin Organization specific scripts during ONIE Image build (#951)
* Framework to plugin Organization specific scripts

* Framework to plugin Organization specific scripts

* Framework to plugin Organization specific scripts

* add getopt option to organization script
2017-09-19 16:23:31 -07:00
pavel-shirshov
9139c7fe64 Always start with Forwarding State flag set for bgpd (#963) 2017-09-19 12:27:18 -07:00
Taoyu Li
5ba6f53eed Update sonic-utilities to be compatible with #942 (#965) 2017-09-18 18:46:51 -07:00
Shuotian Cheng
a376c86b5c [swss]: Fix the command to get HWSKU with sonic-cfggen (#964) 2017-09-18 17:23:19 -07:00
Shuotian Cheng
aa549f208c [bgp]: Fix the deployment_id with DEVICE_METADATA (#962) 2017-09-18 13:04:29 -07:00
wadelnn
aa55b832a4 [Ingrasys] Update Ingrasys submodule for S8900-54XC (#954)
- What I did

Update Ingrasys submodule for S8900-54XC QSFP reset function.

- How I did it

Add reset init scripts in S8900-54XC init function.

- How to verify it

Used the command "sfputil reset Ethernet48" to verify reset function.
If no error occurs, it is passed.

- Description for the changelog

Update Ingrasys submodule for S8900-54XC QSFP reset function

- A picture of a cute animal (not mandatory but encouraged)
2017-09-17 15:38:51 -07:00
padmanarayana
6935e00909 [build/onie installer] Install grub for SONiC post migration from another NOS (#949)
* Install grub for SONiC post migration from another NOS

* Install grub from bundled debian package instead of using ONIE's. Address review comments
2017-09-17 11:41:29 -07:00
Shuotian Cheng
9d321fade6 [syncd]: Comment out unused docker-ptf-brcm.mk 2017-09-15 23:17:32 -07:00
Shu0T1an ChenG
89f1af580c Merge remote-tracking branch 'github/v1.0.3-backup' into github 2017-09-15 15:35:53 -07:00
Shuotian Cheng
034b47df6c [Broadcom]: Update OpenNSL/SAI version (#959) 2017-09-15 11:57:19 -07:00
Shu0T1an ChenG
5e9b0a1207 Merge branch 'v1.0.3-backup' into github 2017-09-15 11:30:23 -07:00
Shu0T1an ChenG
48fd6fb4ec [swss]: Move swss/common/sairedis submodule to 201709 tag 2017-09-15 11:15:10 -07:00
Ying Xie
3cbc080f7b [sairedis]: update sairedis submodule head (#956)
This submodule update includes the deadlock fixes.
2017-09-15 11:15:04 -07:00
Ying Xie
56ae5edc7f [service template] Starting new docker when HWSKU change is detected (#946)
Existing dockers has paths mounted according to the HWSKU. When HWSKU
changes, these dockers need to be destroyed and recreated with the
correct paths mounted.
2017-09-14 08:43:02 -07:00
Taoyu Li
2e3975d6ed [config] Fix an issue that bgp asn data type is not consistent (#953)
* Fix an issue that bgp asn data type is not consistent from minigraph parser and DB

* Fix test typo
2017-09-13 21:23:06 -07:00
Qi Luo
72412797ff [mellanox]: Update Mellanox SAI version ansd SDK version 2017-09-14 04:11:08 +00:00
cytsai0409
e4cae4e889 [Ingrasys] update port_config.ini and sfputil for ingrasys platforms (#952)
* [Ingrasys] update port_config.ini and sfputil for ingrasys platforms

- What I did

Update port_config.ini on S8810-32Q/S8900-54XC/S8900-64XC/S9100-C32 platforms

- How I did it

Update alias field and add port field in port_config.ini

- How to verify it

Check with the "sfputil show eeprom" command. If no error occurs, it is passed.

- Description for the changelog

Update port_config.ini on S8810-32Q/S8900-54XC/S8900-64XC/S9100-C32 platforms

* [Ingrasys] remove debug message in sfputil.py on S8810-32Q

- What I did

remove debug message in sfputil.py on S8810-32Q

- How I did it

remove print in get_low_power_mode() and set_low_power_mode()

- How to verify it

There should be no debug message when executing "sfputil show lpmode"
and "sfputil lpmode on Ethernet0"command.

- Description for the changelog

remove debug message in sfputil.py on S8810-32Q

- A picture of a cute animal (not mandatory but encouraged)
2017-09-13 19:18:26 -07:00