sonic-buildimage/files/build_templates
Stephen Sun e010d83fc3
[Dynamic buffer calc] Support dynamic buffer calculation (#6194)
**- Why I did it**
To support dynamic buffer calculation.
This PR also depends on the following PRs for sub modules
- [sonic-swss: [buffermgr/bufferorch] Support dynamic buffer calculation #1338](https://github.com/Azure/sonic-swss/pull/1338)
- [sonic-swss-common: Dynamic buffer calculation #361](https://github.com/Azure/sonic-swss-common/pull/361)
- [sonic-utilities: Support dynamic buffer calculation #973](https://github.com/Azure/sonic-utilities/pull/973)

**- How I did it**
1. Introduce field `buffer_model` in `DEVICE_METADATA|localhost` to represent which buffer model is running in the system currently:
    - `dynamic` for the dynamic buffer calculation model
    - `traditional` for the traditional model in which the `pg_profile_lookup.ini` is used
2. Add the tables required for the feature:
   - ASIC_TABLE in platform/\<vendor\>/asic_table.j2
   - PERIPHERAL_TABLE in platform/\<vendor\>/peripheral_table.j2
   - PORT_PERIPHERAL_TABLE on a per-platform basis in device/\<vendor\>/\<platform\>/port_peripheral_config.j2 for each platform with gearbox installed.
   - DEFAULT_LOSSLESS_BUFFER_PARAMETER and LOSSLESS_TRAFFIC_PATTERN in files/build_templates/buffers_config.j2
   - Add lossless PGs (3-4) for each port in files/build_templates/buffers_config.j2
3. Copy the newly introduced j2 files into the image and rendering them when the system starts
4. Update the CLI options for buffermgrd so that it can start with dynamic mode
5. Fetches the ASIC vendor name in orchagent:
   - fetch the vendor name when creates the docker and pass it as a docker environment variable
   - `buffermgrd` can use this passed-in variable
6. Clear buffer related tables from STATE_DB when swss docker starts
7. Update the src/sonic-config-engine/tests/sample_output/buffers-dell6100.json according to the buffer_config.j2
8. Remove buffer pool sizes for ingress pools and egress_lossy_pool
   Update the buffer settings for dynamic buffer calculation
2020-12-13 11:35:39 -08:00
..
per_namespace Move teamd warm reboot code to service script (#5163) 2020-11-13 13:34:18 -08:00
share_image [ChassisDB]: bring up ChassisDB service (#5283) 2020-10-14 15:15:24 -07:00
arp_update_vars.j2 [swss] Enhance ARP Update to Call Sonic Cfggen Once (#5398) 2020-09-18 18:44:23 -07:00
buffers_config.j2 [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
config-chassisdb.service.j2 [ChassisDB]: bring up ChassisDB service (#5283) 2020-10-14 15:15:24 -07:00
config-setup.service.j2 [config-setup]: create a SONiC configuration management service (#3227) 2019-12-04 07:15:58 -08:00
database.service.j2 Multi-ASIC implementation (#3888) 2020-03-31 10:06:19 -07:00
dhcp_relay.service.j2 [services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh (#3823) 2019-11-26 16:59:45 -08:00
docker_image_ctl.j2 [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
gbsyncd.service.j2 Add gearbox phy device files and a new physyncd docker to support VS gearbox phy feature (#4851) 2020-09-25 08:32:44 -07:00
iccpd.service.j2 MCLAG feature for SONIC (#2514) 2020-04-04 15:24:06 -07:00
init_cfg.json.j2 [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
lldp.service.j2 Changes for LLDP docker to support multi-npu platforms (#4530) 2020-05-11 11:05:44 -07:00
mgmt-framework.service.j2 [services][mgmt-framework] delay mgmt-framework service on boot (#5226) 2020-08-27 21:53:58 +03:00
mgmt-framework.timer [services][mgmt-framework] delay mgmt-framework service on boot (#5226) 2020-08-27 21:53:58 +03:00
nat.service.j2 [services] remove swss from WantedBy for nat service (#4991) 2020-07-19 21:50:26 -07:00
organization_extensions.sh Framework to plugin Organization specific scripts during ONIE Image build (#951) 2017-09-19 16:23:31 -07:00
pcie-check.timer Add pcie-check service to check PCIe devices at boot (#4771) 2020-07-13 14:15:09 -07:00
pmon.service.j2 [psud]: Fix for psud crash because of database connection reset (#3647) 2020-01-10 13:26:04 -08:00
qos_config.j2 Make backend device checking more robust (#5730) 2020-11-10 15:06:35 -08:00
radv.service.j2 Move RADV fastboot handling to a service script (#5108) 2020-08-11 13:13:13 -07:00
restapi.service.j2 Start RestAPI container when sonic boots (#4140) 2020-02-12 16:38:45 -08:00
sflow.service.j2 [sflow] Fix race-condition seen with mVRF configured (#6102) 2020-12-03 01:33:10 -08:00
snmp.service.j2 [services] make snmp.timer work again and delay telemetry.service (#3742) 2019-12-16 09:07:05 -08:00
snmp.timer [services] make snmp.timer work again and delay telemetry.service (#3742) 2019-12-16 09:07:05 -08:00
sonic_debian_extension.j2 [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
swss_vars.j2 Enable synchronous mode by default and add in minigraph parser (#5735) 2020-10-29 09:15:12 -07:00
telemetry.service.j2 [services] make snmp.timer work again and delay telemetry.service (#3742) 2019-12-16 09:07:05 -08:00
telemetry.timer [services] make snmp.timer work again and delay telemetry.service (#3742) 2019-12-16 09:07:05 -08:00
updategraph.service.j2 [config-setup]: create a SONiC configuration management service (#3227) 2019-12-04 07:15:58 -08:00