sonic-buildimage/src
Raphael Tryster 58605cc7cc Increase min-links limit for portchannel from 128 to 1024. (#7265)
#### Why I did it

Restrict the min-links parameter in "config portchannel" to the range 1-1024.
Fixes Azure/sonic-buildimage#6781 in conjunction with https://github.com/Azure/sonic-buildimage/pull/1630.
Align YANG model with limits in libteam and sonic-utilties.

#### How I did it

PR 1630 in sonic-utilities prevents CLI user from entering a value outside the allowed range.  This PR does the following:

- Increases the maximum value of min-links from 128 to 1024.
- Provides validation in libteam, incorporating as a patch the code in https://git.kernel.org/pub/scm/linux/kernel/git/jpirko/libteam.git/commit/?id=69a7494bb77dc10bb27076add07b380dbd778592.
- Updates the Yang model upper limit from 128 to 1024 (was inconsistent with libteam value).
- Updates the Yang model lower limit from 1 to 0, since 0 is set as default in sonic-utilities which would fail its new range check otherwise.
- Added Yang tests for valid and invalid value.

#### How to verify it

config portchannel add PortChannel0004 --min-links 1024

Command should be accepted.

show interfaces portchannel

Output should show PortChannel0004, no errors on CLI.

config portchannel add PortChannel0005 --min-links 1025

Command should be rejected

show interfaces portchannel

Output should not show PortChannel0005 , no errors on CLI.

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


#### Description for the changelog

Updates YANG model to allow up to 1024 min_links for portchannel.  Fixes Azure/sonic-buildimage#6781 in conjunction with https://github.com/Azure/sonic-buildimage/pull/1630.
2021-10-14 15:29:57 -07:00
..
bash [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
dhcpmon [dhcp_relay] Enhance DHCP monitor application to support DHCPv6 (#8060) 2021-08-03 23:01:30 -07:00
ethtool [arm] support compile sonic arm image on arm server (#7285) 2021-04-18 08:17:57 -07:00
flashrom Flashrom refactoring for broadcom platforms (#7693) 2021-06-22 15:29:21 -07:00
gobgp Update go version to 1.11.2 for gobgp and telemetry (#2230) 2018-11-09 21:56:39 -08:00
hiredis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iccpd MCLAG enhacements ICCPd initial code commit (#4819) 2021-08-19 22:14:09 -07:00
ifupdown2 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
initramfs-tools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iproute2 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iptables [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
isc-dhcp DHCP Relay: add option -si to support using src intf ip in relay (#7052) 2021-03-19 13:27:14 -07:00
ixgbe Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
kdump-tools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
libnl3 [MPLS][libnl3] libnl patches for supporting MPLS 2021-06-16 15:08:23 -07:00
libteam Increase min-links limit for portchannel from 128 to 1024. (#7265) 2021-10-14 15:29:57 -07:00
libyang Export libyang API "lyd_check_mandatory_tree" for Management framework (CVL) (#5714) 2021-01-14 16:47:57 -08:00
libyang1 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
lldpd [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
lm-sensors [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
monit [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
mpdecimal [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
ntp [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
openssh [openssh]: move build dep installation to sonic-slave-buster (#8381) 2021-08-20 16:07:02 +08:00
ptf@36a3e3d9ac [docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239) 2019-07-30 10:19:48 -07:00
radius [radius]: RADIUS Management User Authentication (#7551) 2021-06-14 07:57:01 -07:00
redis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
redis-dump-load@7585497951 [redis-dump-load] Update submodule (#5215) 2020-08-19 11:23:42 -07:00
redis-dump-load.patch [baseimage]: Build and install redis-dump-load Python 3 package in host image (#4661) 2020-05-30 05:52:27 -07:00
sflow [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
smartmontools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
snmpd [build] Always use -j1 for libsnmp to avoid race condition (#8324) 2021-08-06 20:53:54 -07:00
socat [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
sonic-bgpcfgd Revert "[bgpcfgd][voq] Fix for unit test failure in bgp config for voq switch (#8278)" 2021-08-26 09:33:23 -07:00
sonic-build-hooks [build] Fix reproducible build issues (#8548) 2021-09-02 15:37:42 -07:00
sonic-config-engine [DPB]Removing default admin status initialization in DPB flow while loading minigraph (#8711) 2021-09-14 09:58:30 -07:00
sonic-ctrmgrd Revert "[Kubernetes]: The kube server could be used as http-proxy for docker (#7469)" (#8023) 2021-06-29 18:43:53 -07:00
sonic-dbsyncd@df46ed418e [submodule update] sonic-db-syncd (#7225) 2021-04-03 07:36:11 -07:00
sonic-device-data [sonic-device-data]: add port_type to OPTIONAL_PORT_ATTRIBUTES (#8370) 2021-08-25 12:14:17 -07:00
sonic-frr [FRR]: Upgrade FRR to frr-7.5.1-s1 tag (#8443) 2021-08-25 12:16:19 -07:00
sonic-frr-mgmt-framework Bump pyyaml from 5.3.1 to 5.4.1 (#6511) 2021-01-28 10:46:56 -08:00
sonic-host-services Load global config in caclmgrd only in multi asic NPU (#8812) 2021-10-04 19:28:08 -07:00
sonic-host-services-data [determine-reboot-cause] delay execution (#8935) 2021-10-14 15:29:19 -07:00
sonic-linux-kernel@2d6104766d Update the sonic-linux-kernel submodule 2021-08-25 14:51:48 -07:00
sonic-mgmt-common@86c1108125 [sonic-mgmt-common] Update submodule (#6129) 2020-12-08 04:31:16 -08:00
sonic-mgmt-framework@3c3384cec8 Mgmt reorg -- submodule and build rules for sonic-mgmt-common (#4765) 2020-06-22 16:01:55 -07:00
sonic-platform-common@1d3a810797 Update sonic-platform-common with following commits 2021-08-19 21:33:22 -07:00
sonic-platform-daemons@25b32ecf68 Update sonic-platform-daemons 2021-10-14 14:50:24 -07:00
sonic-py-common [multi-asic][cli][chassis-db] Avoid connecting to chassis db when cli commands are executed from linecards (#8065) 2021-09-26 21:35:39 -07:00
sonic-py-swsssdk@2cd6236849 Update sonic-py-swsssdk submodule 2021-10-05 23:38:03 -07:00
sonic-restapi@8d09602a9e [submodule]: Update restapi (#7213) 2021-04-01 22:40:55 -07:00
sonic-sairedis@3e8f83b308 Update sonic-sairedis submodule 2021-10-05 23:39:21 -07:00
sonic-snmpagent@027dffee83 Update sonic-snmpagent submodule 2021-10-14 14:55:12 -07:00
sonic-swss@08b05db2a1 Update sonic-swss 2021-10-14 15:03:39 -07:00
sonic-swss-common@1b8b9f43d7 Update sonic-swss-common submodule 2021-10-03 19:02:54 -07:00
sonic-telemetry@6df988cce7 Telemetry submodule update (#7864) 2021-06-14 18:22:49 -07:00
sonic-utilities@d2baedbf64 Update sonic-utilities 2021-10-14 15:24:52 -07:00
sonic-yang-mgmt Add SONiC YANGs for Management Port, Management Interface, Management VRF and NTP. (#7252) 2021-06-18 11:47:45 -07:00
sonic-yang-models Increase min-links limit for portchannel from 128 to 1024. (#7265) 2021-10-14 15:29:57 -07:00
sonic-ztp@4475750df0 [sonic-ztp] submodule update (#7984) 2021-06-27 09:56:27 +03:00
swig [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
system-health [dell]: System Health: Fix ASIC key issue in Dell platform (#6556) 2021-04-05 18:00:38 -07:00
systemd-sonic-generator [multi-asic] Fixed systemd-sonic-generator for multi-asic (#7954) 2021-07-13 12:39:03 -07:00
tacacs [tacacs]: do not modify local user if there is no priviledge 2021-02-06 12:28:52 -08:00
thrift Fix CVE-2017-1000487 security alert (#7173) 2021-03-31 22:45:06 -07:00
wpasupplicant [MACsec]: Set MACsec feature to be auto-start (#6678) 2021-02-23 13:22:45 -08:00