Commit Graph

2563 Commits

Author SHA1 Message Date
Vaibhav Hemant Dixit
be394fb584
[201811] Advance sonic-snmpagent submodule to latest (#10830)
Advance sonic-snmpagent submodule to include:
Fix snmp subagent errors in shutdown path: Azure/sonic-snmpagent@3d5b85d
2022-05-15 21:39:15 -07:00
Neetha John
76a3c86e83
[201811] Update 7260 MMU and ECN settings (#10757)
Why I did it
Improve throughput and latency for 7260 deployments

How I did it
Update the dynamic threshold to 0 and ECN settings as 2mb/10mb/5%

How to verify it
With the new dir structure on 7260, updated the new alpha values and ecn settings in the appropriate files, loaded minigraph and verified that the new settings are applied
Added unit tests for rendering the qos template for 7260. Built sonic config engine wheel successfully

neethajohn added 6 commits 10 days ago

Signed-off-by: Neetha John <nejo@microsoft.com>
2022-05-15 21:22:14 -07:00
kellyyeh
f5c17629cb
[dhcp6relay] Add retry mechanism for binding socket to interface ipv6 addresses (#10712) (#10831)
(cherry picked from commit 243d0c73f9)
2022-05-13 19:28:33 -07:00
Neetha John
12c3ed58b5
[201811] Minigraph parser changes to select mmu profiles based on SonicQosProfile attribute (#10698)
Why I did it
There is a need to select different mmu profiles based on deployment type

How I did it
There will be separate subfolders (RDMA-CENTRIC, TCP-CENTRIC, BALANCED) in each hwsku folder which contains deployment specific mmu and qos settings. SonicQosProfile attribute in the minigraph will be used to determine which settings to use. If that attribute is not present, the default settings that exist in the hwsku folder will be used

How to verify it
Manually verified by creating subfolders under DX010 folder and updated minigraph on the device with SonicQosProfile pointing to one of the subfolders. Verified by loading minigraph and confirming the mmu and ecn settings are as expected.

Unit tests have been updated to include the SonicQosProfile attribute in the minigraphs used for buffer and qos rendering. Since the dir structure does not exist now, code flow will take no action. Once the dir structure exists, the profile selection path will get executed but since all 3 subfolders have identical values, existing test cases should hold good.

Build sonic-config-engine python wheel with the changes and build was successful.
2022-05-13 13:31:42 -07:00
Qi Luo
8a2543d8e9
Update submodule: sonic-snmpagent (#10759)
Includes below commits

c46de43 2022-05-05 | [201811] Fix: not to use blocking get_all() after keys(), if routestr does not exist, skip (#258) [Qi Luo]
2022-05-05 19:55:29 -07:00
Ying Xie
0bde374c52 [7060] fix default port map
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-05 13:48:42 -07:00
Ying Xie
45f66d264e [qos profile] create QoS profiles for Arista-7260CX3-D96C16
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-05 13:48:42 -07:00
Kevin Wang
4e45de2a7b [Buffer] Separate buffer profile for Arista-7260CX3-Q44
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
c796053efc [Buffer] Separate buffer profile for Arista-7260CX3-D108C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
020b29e919 [Buffer] Separate buffer profile for Arista-7260CX3-C64
50G data is not accurate, needs further update.

Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
a6de81b8ad [Buffer] Separate buffer profile for Arista-7060CX-32S-C32
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
57fc9d88fd [Buffer] Separate buffer profile for Arista-7060CX-32S-D48C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
f67db31067 [Buffer] Separate buffer profile for Arista-7060CX-32S-Q32
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
7dd31822eb [Buffer] Separate buffer profile for Celestica-DX010-D48C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
2d5c243b84 [Buffer] Separate buffer profile for Force10-S6100
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Ying Xie
f7455b7b2c [buffer] create infrastructure to enable buffer/QoS profiles
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-04 15:42:19 -07:00
kellyyeh
a99fb25ada Revert "Added DHCPv6 Monitor"
This reverts commit 5737c22bea.
2022-04-08 22:25:22 -07:00
kellyyeh
28d4a88b3b Revert "Fix dhcpmon"
This reverts commit e30d559c5c.
2022-04-08 22:25:22 -07:00
Hua Liu
d5cd359eeb
Update submodule sonic-snmpagent for fix memory leak in sonic_ax_impl (#10473)
This submodule update brings in the following changes:

847c0a6 Update submodule sonic-snmpagent for fix memory leak in sonic_ax_impl (#250)
2022-04-07 15:18:22 -07:00
liuh-80
bb65791060
Add j2 template for enable pam_limit and limit SSH session (#10298)
#### Why I did it
    When too many user login concurrently and run commands, SONiC may kernel panic on some device which has very limited memory.

#### How I did it
    Add j2 template for setup pam_limit plugin for limit SSH session per-user.

#### How to verify it
    Manually validate the j2 template can generate correct config file.

#### Which release branch to backport (provide reason below if selected)

- [x] 201811
- [ ] 201911
- [ ] 202006
- [x] 202012
- [x] 202106
- [x] 202111

#### Description for the changelog
    Add j2 template for setup pam_limit plugin for limit SSH session per-user.

#### A picture of a cute animal (not mandatory but encouraged)
2022-03-23 16:52:09 +08:00
kellyyeh
beea9895e2
[dhcp_relay] Check payload size to prevent buffer overflow in dhcpv6 option (#9740) (#10252) 2022-03-17 09:14:04 -07:00
Ying Xie
af6ad545a3
Revert "[201811] Check platform reboot cause to see if any reset happened during fast/warm-reboot (#8912)" (#10076)
This reverts commit a80319e2d0.
2022-02-24 07:27:30 -08:00
Ying Xie
550aa0c8e9
[7260] update buffer configurations (#10077)
Why I did it
Update 7260 buffer configuration according to 201911 branch tested values.

Signed-off-by: Ying Xie ying.xie@microsoft.com
2022-02-24 07:25:28 -08:00
zzhiyuan
b39f6b3618
[Arista] [201811] Add Arista-7260CX3-D96C16 HWSKU (#10034)
Why I did it
This was an ask by Microsoft to provide:
7260 config.bcm file for hardware sku Arista-7260CX3-D92C16 (Named Arista-7260CX3-D96C16).

There are 16 100G uplinks:
Ethernet13-20/1
Ethernet45-52/1

All other ports are breakout to 2 50G ports.

How I did it
Copied existing Arista-7260CX3-D108C8 HWSKU and altered the bcm.config and port_config.ini files.

How to verify it
The new 100G ports do come up with a 201811 image using this HWSKU.

Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
2022-02-22 09:11:05 -08:00
Renuka Manavalan
ca7d73049d
libpam: Block sshd's INCORRECT password to AAA server (#10029)
Why I did it
sshd overrides user password with a bad one, when pre-auth fails.
Refer PR #9123 for more details

How I did it
Manual cherry pick of PR #9123

How to verify it
Pick a user alias that has not logged into the switch yet
Add this alias to /etc/tacplus_user
Attempt to login as that user
Look for the error message in /var/log/syslog
e.g. "Feb 18 19:16:41.592191 sonic ERR sshd[5233]: auth fail: Password incorrect. user: user_xyz"
2022-02-19 13:03:43 -08:00
Renuka Manavalan
7910108fd8
porting PR #8223, which uses one shot timer to reaload tacacs config (#9987)
Why I did it
There is a small window between load & listen to config-DB. If TACACS config got updated during that gap, the listen will not show it, hence hostcfgd would miss it, until another update.

How I did it
porting PR #8223, which uses one shot timer to reload tacacs config.
2022-02-17 08:16:03 -08:00
Samuel Angebault
2ed7f537d4
[201811][Arista] Add emmc quirks for Upperlake (#9970)
Why I did it
Fix some unreliability seen on emmc device with some AMD CPUs

How I did it
Added a kernel parameter to add quirks to
It depends on a sonic-linux-kernel change to work properly but will be a no-op without it.

Description for the changelog
Add emmc quirks for Upperlake
2022-02-11 13:26:19 -08:00
Ying Xie
76af3dc148
[201811][dhcp] enable building dhcpmon and dhcp6relay debug symbols (#9959)
* dhcp6relay: Save the dbgsym package into the target folder (#9013)

This makes it possible to install the debug symbols if needed. Also install
the package into the debug version of sonic-dhcp-relay container.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Package debugging and hardening for dhcpmon and dhcp6relay (#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* [201811][dhcp] update debian build rules

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

Co-authored-by: Saikrishna Arcot <sarcot@microsoft.com>
2022-02-10 20:57:10 -08:00
Ying Xie
8e6d08a6b5
[bcmsai] upgrade Broadcom SAI to 3.5.3.8 (#9955)
Including following fixes:
CS00012225760, CS00012212820, CS00012215529, CS00012218100

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-02-10 17:05:26 -08:00
kellyyeh
29e86b5da8 [dhcp6relay] Support relaying Relay-Forward message (#9887) 2022-02-10 23:14:13 +00:00
kellyyeh
94e57496df
[201811][dhcp6relay] a couple memory access protections (#9861) 2022-01-27 23:18:56 -08:00
abdosi
3d4b3d5daf
Fix DHCP Relay Monitor Jinaja2 Template file. (#9655)
Why I did:

DHCP Relay docker does not start if we don't have v6 DHCP Relay address as this caused jinja2 template generation failure.
2022-01-03 12:59:57 -08:00
gechiang
0aab55c28b
[201811] Submodule Update sonic-sairedis pick up fix to address excessive notification event queueing (#9523) 2021-12-13 17:41:52 -08:00
kellyyeh
5bb59f6136
[201811] Fix radv start condition logic (#9492) 2021-12-10 18:34:47 -08:00
Samuel Angebault
70d87ccff4
[201811][Arista] Backport logrotate configuration (#9456)
Backport logrotate configuration for arista*.log files
2021-12-10 08:31:30 -08:00
kellyyeh
c07c0bb59c
[radv] Run radv on MgmtToRRouter (#9423)
Radvd is not running on M0
2021-12-02 21:06:26 -08:00
Sujin Kang
a80319e2d0
[201811] Check platform reboot cause to see if any reset happened during fast/warm-reboot (#8912)
[201811] Check platform reboot cause to see if any reset happened during fast/warm-reboot

Why I did it
To recover syncd and swss from any cold reset during fast/warm-reboot

How I did it
Check platform reboot-cause to see if any cold reset happens for fast-reboot power up

How to verify it
Manual test
2021-12-01 10:50:55 -08:00
kellyyeh
9e75e856eb
[201811] Update DHCPv6 counter on relayed messages (#9281) 2021-11-19 11:03:55 -08:00
kellyyeh
3885b6f452
[201811] DHCPv6 Relay multivlan functionality support (#9176) 2021-11-09 12:45:08 -08:00
Ying Xie
fc7f33eda0
[201811][swss] advance submodule head (#9154)
* a2db2ab 2021-10-28 | [201811][everflow] Add retry mechanism for mirror sessions and policers (#1966) (github/201811) [bingwang-ms]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2021-11-03 18:24:59 -07:00
kellyyeh
0a9228c965
[201811][dhcp_relay] Fix sendto: invalid destination address error (#9138) 2021-11-02 10:55:41 -07:00
Ying Xie
2da155e8ec
[201811][utilities] move utilities submodule head (#9107)
* 9d095aa 2021-10-28 | disk_check.py: Move to python2 (#1903) (github/201811) [Renuka Manavalan]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2021-11-01 09:49:02 -07:00
kellyyeh
aa323e435e
[dhcp_relay] Change dhcp_relay docker files to parse DHCP_RELAY table for dhcpv6 status (#9080)
Why I did it
DHCPv6 Relay information will be stored in DHCP_RELAY table instead of VLAN table in the future.

How I did it
Change dhcp_relay docker files to parse through DHCP_RELAY to check for dhcpv6 status

How to verify it
Build dhcp_relay docker and check all dhcp_relay and dhcpmon are running properly

Which release branch to backport (provide reason below if selected)
2021-10-27 13:44:38 -07:00
Renuka Manavalan
2a41e0f96b
[201811] disk_check.py: Change path to /usr/bin (#9074)
The scripts from sonic-utilities are installed into /usr/bin in 201811.
Hence correct path for disk_check.py to /usr/bin/
2021-10-26 18:22:10 -07:00
Saikrishna Arcot
39e351cacc Fix waiting for interfaces to get set up 2021-10-26 08:52:10 -07:00
kellyyeh
3b56c1ad3e fix dhcpv6 relay counter and cpu 2021-10-26 08:52:10 -07:00
kellyyeh
e134f1592e Incorporate dhcp6relay into dhcp_relay docker 2021-10-26 08:52:10 -07:00
kellyyeh
e5b7b8c05e Changed DHCP table name to DHCP_RELAY 2021-10-26 08:52:10 -07:00
kellyyeh
aa8eecb5ed Add DHCPv6 Relay Agent (#8251)
* Added DHCPv6 Relay

* Added DHCPv6 Counter
2021-10-26 08:52:10 -07:00
kellyyeh
27a2222629 Parse DHCP Table 2021-10-26 08:52:10 -07:00