Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sonic-net/sonic-buildimage
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: affe6264ef00db781b28ffba2a3703d3c551f193
Choose a base ref
..
head repository: sonic-net/sonic-buildimage
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f169b5eddde636ffac4e96887fdf0eac9abbe063
Choose a head ref
Showing with 19,573 additions and 878 deletions.
  1. +4 −2 .azure-pipelines/azure-pipelines-image-template.yml
  2. +73 −1 .github/CODEOWNERS
  3. +3 −0 .gitignore
  4. +8 −2 Makefile.work
  5. +8 −0 build_image.sh
  6. +6 −0 device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/buffers_defaults_t0.j2
  7. +1 −0 device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/buffers_extra_queues.j2
  8. +6 −0 device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/buffers_defaults_t0.j2
  9. +37 −0 device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/buffers_extra_queues.j2
  10. +16 −12 device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/qos.json.j2
  11. +6 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t0.j2
  12. +6 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t1.j2
  13. +38 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_extra_queues.j2
  14. +15 −10 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/qos.json.j2
  15. +6 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-D108C8/buffers_defaults_t0.j2
  16. +1 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-D108C8/buffers_extra_queues.j2
  17. +6 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-Q64/buffers_defaults_t0.j2
  18. +6 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-Q64/buffers_defaults_t1.j2
  19. +1 −0 device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-Q64/buffers_extra_queues.j2
  20. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/0/default_config.json
  21. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/1/default_config.json
  22. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/10/default_config.json
  23. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/11/default_config.json
  24. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/2/default_config.json
  25. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/3/default_config.json
  26. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/4/default_config.json
  27. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/5/default_config.json
  28. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/6/default_config.json
  29. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/7/default_config.json
  30. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/8/default_config.json
  31. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/9/default_config.json
  32. +0 −2 device/arista/x86_64-arista_7800_sup/Arista-7804R3-FM/asic.conf
  33. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/0/default_config.json
  34. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/1/default_config.json
  35. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/10/default_config.json
  36. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/11/default_config.json
  37. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/12/default_config.json
  38. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/13/default_config.json
  39. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/14/default_config.json
  40. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/15/default_config.json
  41. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/16/default_config.json
  42. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/17/default_config.json
  43. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/2/default_config.json
  44. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/3/default_config.json
  45. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/4/default_config.json
  46. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/5/default_config.json
  47. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/6/default_config.json
  48. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/7/default_config.json
  49. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/8/default_config.json
  50. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/9/default_config.json
  51. +0 −2 device/arista/x86_64-arista_7800_sup/Arista-7808R3-FM/asic.conf
  52. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/0/default_config.json
  53. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/1/default_config.json
  54. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/10/default_config.json
  55. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/11/default_config.json
  56. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/2/default_config.json
  57. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/3/default_config.json
  58. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/4/default_config.json
  59. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/5/default_config.json
  60. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/6/default_config.json
  61. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/7/default_config.json
  62. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/8/default_config.json
  63. +0 −14 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/9/default_config.json
  64. +0 −2 device/arista/x86_64-arista_7800_sup/Arista-7808R3A-FM/asic.conf
  65. 0 device/arista/x86_64-arista_7800_sup/use_pci_id_chassis
  66. +0 −8 device/arista/x86_64-arista_7800r3_48cq2_lc/default_config.json
  67. +2 −3 dockers/docker-dhcp-relay/dhcp-relay.monitors.j2
  68. +7 −3 dockers/docker-dhcp-relay/dhcp-relay.programs.j2
  69. +5 −4 dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
  70. +2 −2 dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
  71. +1 −1 files/Aboot/boot0.j2
  72. +14 −0 files/build_templates/buffers_config.j2
  73. +20 −14 files/build_templates/qos_config.j2
  74. +4 −0 files/build_templates/sonic_debian_extension.j2
  75. +1 −1 files/scripts/swss.sh
  76. +3 −0 installer/arm64/install.sh
  77. +3 −0 installer/armhf/install.sh
  78. +1 −1 platform/barefoot/bfn-platform.mk
  79. +1 −1 platform/barefoot/bfn-sai.mk
  80. +1 −1 platform/barefoot/sonic-platform-modules-arista
  81. +1 −1 platform/broadcom/sonic-platform-modules-arista
  82. +6 −2 platform/broadcom/sonic-platform-modules-cel/services/fancontrol/fancontrol
  83. +4 −2 platform/centec-arm64/platform.conf
  84. +1 −1 platform/centec-arm64/sai.mk
  85. +1 −1 platform/centec/sdk.mk
  86. +1 −1 platform/marvell-arm64/platform.conf
  87. +1 −1 platform/marvell-armhf/platform.conf
  88. +1 −1 platform/mellanox/docker-syncd-mlnx.dep
  89. +4 −0 platform/mellanox/docker-syncd-mlnx.mk
  90. +0 −11 platform/mellanox/mlnx-platform-api.mk
  91. +2 −1 rules/docker-config-engine-bullseye.mk
  92. +2 −1 rules/docker-config-engine-buster.mk
  93. +3 −1 rules/docker-config-engine-stretch.mk
  94. +2 −0 rules/docker-config-engine.mk
  95. +3 −0 rules/docker-database.mk
  96. +1 −1 rules/docker-orchagent.dep
  97. +4 −0 rules/docker-orchagent.mk
  98. +4 −0 rules/sairedis.mk
  99. +0 −8 rules/sonic-platform-common.dep
  100. +0 −15 rules/sonic-platform-common.mk
  101. +3 −0 rules/sonic-py-common.mk
  102. +3 −0 rules/swss-common.mk
  103. +1 −1 rules/swss.dep
  104. +1 −1 rules/syncd.dep
  105. +0 −2 rules/syncd.mk
  106. +1 −2 slave.mk
  107. +1 −1 src/linkmgrd
  108. +53 −0 src/sonic-build-hooks/scripts/buildinfo_base.sh
  109. +1 −0 src/sonic-build-hooks/scripts/pre_run_buildinfo
  110. +2,369 −0 src/sonic-config-engine/tests/sample-arista-7050cx3-dualtor-minigraph-remap-disabled.xml
  111. +8 −0 src/sonic-config-engine/tests/sample-arista-7050cx3-dualtor-minigraph.xml
  112. +4,635 −0 src/sonic-config-engine/tests/sample-arista-7260-dualtor-minigraph-remap-disabled.xml
  113. +8 −0 src/sonic-config-engine/tests/sample-arista-7260-dualtor-minigraph.xml
  114. +2,491 −0 src/sonic-config-engine/tests/sample-arista-7260-t1-minigraph-remap-disabled.xml
  115. +8 −0 src/sonic-config-engine/tests/sample-arista-7260-t1-minigraph.xml
  116. +80 −0 src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
  117. +25 −5 src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay.supervisord.conf
  118. +487 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7050cx3-dualtor-remap-disabled.json
  119. +537 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7050cx3-dualtor.json
  120. +937 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7260-dualtor-remap-disabled.json
  121. +987 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7260-dualtor.json
  122. +449 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7260-t1-remap-disabled.json
  123. +570 −0 src/sonic-config-engine/tests/sample_output/py3/buffer-arista7260-t1.json
  124. +80 −0 src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
  125. +25 −5 src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay.supervisord.conf
  126. +1,129 −0 src/sonic-config-engine/tests/sample_output/py3/qos-arista7050cx3-dualtor-remap-disabled.json
  127. +15 −10 src/sonic-config-engine/tests/sample_output/py3/qos-arista7050cx3-dualtor.json
  128. +2,121 −0 src/sonic-config-engine/tests/sample_output/py3/qos-arista7260-dualtor-remap-disabled.json
  129. +15 −10 src/sonic-config-engine/tests/sample_output/py3/qos-arista7260-dualtor.json
  130. +1,005 −0 src/sonic-config-engine/tests/sample_output/py3/qos-arista7260-t1-remap-disabled.json
  131. +2 −1 src/sonic-config-engine/tests/t0-sample-graph.xml
  132. +938 −0 src/sonic-config-engine/tests/t0-sample-no-ip-helper-graph.xml
  133. +42 −3 src/sonic-config-engine/tests/test_j2files.py
  134. +44 −34 src/sonic-host-services/scripts/hostcfgd
  135. +123 −73 src/sonic-host-services/tests/hostcfgd/hostcfgd_test.py
  136. +21 −7 src/sonic-host-services/tests/hostcfgd/test_vectors.py
  137. +1 −1 src/sonic-platform-common
  138. +1 −1 src/sonic-platform-daemons
  139. +0 −8 src/sonic-py-common/setup.py
  140. +1 −3 src/sonic-py-common/sonic_py_common/device_info.py
  141. +1 −1 src/sonic-py-common/tests/device_info_test.py
  142. 0 src/sonic-py-common/tests/{mock_swsssdk.py → mock_swsscommon.py}
  143. +1 −1 src/sonic-swss-common
6 changes: 4 additions & 2 deletions .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
@@ -48,14 +48,16 @@ jobs:
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
displayName: 'Make configure'
postSteps:
- script: mv target $(Build.ArtifactStagingDirectory)/
- script: |
mkdir -p $(Build.ArtifactStagingDirectory)/target
mv target/* $(Build.ArtifactStagingDirectory)/target/
displayName: Copy Artifacts
condition: always()
- publish: $(Build.ArtifactStagingDirectory)
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)'
displayName: "Archive sonic image"
- publish: $(Build.ArtifactStagingDirectory)
condition: failed()
condition: or(failed(), canceled())
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)$(System.JobAttempt)'
displayName: "Archive failed sonic image"
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
74 changes: 73 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -19,6 +19,9 @@
/Makefile.work @qiluo-msft @xumia @lguohan
/slave.mk @qiluo-msft @xumia @lguohan
/scripts @qiluo-msft @xumia @lguohan
/src/sonic-build-hooks/ @Azure/sonic-build
/src/debootstrap/ @Azure/sonic-build
/src/sonic-fips/ @Azure/sonic-build

# installer
/installer/ @qiluo-msft
@@ -31,8 +34,77 @@
/dockers/docker-config-engine*/ @qiluo-msft
/dockers/docker-snmp/ @qiluo-msft

# src
# kernel
/src/sonic-linux-kernel/ @Azure/sonic-kernel

# devices
/device/ @Azure/sonic-platform
/src/sonic-platform-common/ @Azure/sonic-platform
/src/sonic-platform-daemons/ @Azure/sonic-platform
/src/sonic-platform-pde/ @Azure/sonic-platform
/src/lm-sensors/ @Azure/sonic-platform
/src/flashrom/ @Azure/sonic-platform

# common library
/src/initramfs-tools/ @qiluo-msft
/src/redis-dump-load/ @Azure/sonic-management
/src/sonic-py-common/ @Azure/sonic-management
/src/sonic-py-swsssdk/ @Azure/sonic-management
/src/sonic-swss-common/ @Azure/sonic-management
/src/bash/ @Azure/sonic-management
/src/tacacs/ @Azure/sonic-management
/src/radius/ @Azure/sonic-management
/src/swig/ @Azure/sonic-management
/src/socat/ @Azure/sonic-management

# redis
/src/redis/ @Azure/sonic-management
/src/hiredis/ @Azure/sonic-management

# yang
/src/sonic-yang-models/ @praveen-li @dgsudharsan @rathnasabapathyv @venkatmahalingam @qiluo-msft
/src/sonic-yang-mgmt/ @Azure/sonic-management
/src/libyang/ @Azure/sonic-management
/src/libyang1/ @Azure/sonic-management
/src/libyang2/ @Azure/sonic-management

# bgpcfgd
/src/sonic-bgpcfgd/ @StormLiangMS

# sonic-config-engine
/src/sonic-config-engine/ @Azure/sonic-management

# sonic-utilities
/src/sonic-utilities/ @Azure/sonic-management

# sonic-telemetry
/src/sonic-telemetry/ @Azure/sonic-management

# snmp
/src/sonic-snmpagent/ @Azure/sonic-management
/src/snmpd/ @Azure/sonic-management

# dhcp relay
/src/dhcp6relay/ @Azure/sonic-fundamentals
/src/dhcpmon/ @Azure/sonic-fundamentals
/src/isc-dhcp/ @Azure/sonic-fundamentals

# sflow
/src/sflow/ @Azure/sonic-dataplane

# sonic restapi
/src/sonic-restapi/ @Azure/sonic-dataplane

# sonic swss
/src/sonic-swss/ @Azure/sonic-dataplane

# linux networking, e.g., libnl3, iproute2, ifupdown2, ethtool
/src/libnl3/ @Azure/sonic-dataplane
/src/iproute2/ @Azure/sonic-dataplane
/src/ifupdown2/ @Azure/sonic-dataplane
/src/ethtool/ @Azure/sonic-dataplane

# ptf
/src/ptf/ @Azure/sonic-fundamentals
/src/ptf-py3/ @Azure/sonic-fundamentals
/src/scapy/ @Azure/sonic-fundamentals
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -22,6 +22,9 @@ target/
*.img
*.pyc

# Slave docker log files
sonic-slave*/*.log

# Autogenerated Dockerfiles
sonic-slave*/Dockerfile
sonic-slave*/Dockerfile.user
10 changes: 8 additions & 2 deletions Makefile.work
Original file line number Diff line number Diff line change
@@ -294,12 +294,18 @@ endif

endif

SPLIT_LOG = | tee

DOCKER_BASE_LOG = $(SLAVE_DIR)/$(SLAVE_BASE_IMAGE)_$(SLAVE_BASE_TAG).log
DOCKER_LOG = $(SLAVE_DIR)/$(SLAVE_IMAGE)_$(SLAVE_TAG).log


DOCKER_BASE_BUILD = docker build --no-cache \
-t $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
--build-arg no_proxy=$(no_proxy) \
$(SLAVE_DIR)
$(SLAVE_DIR) $(SPLIT_LOG) $(DOCKER_BASE_LOG)

DOCKER_BASE_PULL = docker pull \
$(REGISTRY_SERVER):$(REGISTRY_PORT)/$(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG)
@@ -312,7 +318,7 @@ DOCKER_BUILD = docker build --no-cache \
--build-arg slave_base_tag_ref=$(SLAVE_BASE_TAG) \
-t $(SLAVE_IMAGE):$(SLAVE_TAG) \
-f $(SLAVE_DIR)/Dockerfile.user \
$(SLAVE_DIR)
$(SLAVE_DIR) $(SPLIT_LOG) $(DOCKER_LOG)

SONIC_BUILD_INSTRUCTION := make \
-f slave.mk \
8 changes: 8 additions & 0 deletions build_image.sh
Original file line number Diff line number Diff line change
@@ -200,6 +200,14 @@ elif [ "$IMAGE_TYPE" = "aboot" ]; then
generate_device_list ".platforms_asic"
zip -g $OUTPUT_ABOOT_IMAGE .platforms_asic

if [ "$ENABLE_FIPS" = "y" ]; then
echo "sonic_fips=1" > kernel-cmdline
else
echo "sonic_fips=0" > kernel-cmdline
fi
zip -g $OUTPUT_ABOOT_IMAGE kernel-cmdline
rm kernel-cmdline

zip -g $OUTPUT_ABOOT_IMAGE $ABOOT_BOOT_IMAGE
rm $ABOOT_BOOT_IMAGE
if [ "$SONIC_ENABLE_IMAGE_SIGNATURE" = "y" ]; then
Original file line number Diff line number Diff line change
@@ -44,3 +44,9 @@
}
},
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -45,3 +45,9 @@
}
},
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% if DEVICE_METADATA is defined and 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %}
{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
{% if port in port_names_require_extra_buffer.split(',') %}
"{{ port }}|0-1": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|2-4": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|5": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|6": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|7": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}

{% else %}
"{{ port }}|0-2": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|5-7": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}

{% endif %}
{% endfor %}
}
{% endmacro %}
{% endif %}
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
"30": "1",
"31": "1",
"32": "1",
"33": "2",
"33": "8",
"34": "1",
"35": "1",
"36": "1",
@@ -101,7 +101,7 @@
"30": "1",
"31": "1",
"32": "1",
"33": "2",
"33": "8",
"34": "1",
"35": "1",
"36": "1",
@@ -140,12 +140,13 @@
"AZURE": {
"0": "0",
"1": "0",
"2": "0",
"2": "2",
"3": "3",
"4": "4",
"5": "0",
"6": "0",
"7": "7"
"6": "6",
"7": "7",
"8": "0"
},
"AZURE_TUNNEL": {
"0": "0",
@@ -155,7 +156,8 @@
"4": "6",
"5": "0",
"6": "0",
"7": "0"
"7": "0",
"8": "0"
}
},
{%- endmacro %}
@@ -164,12 +166,13 @@
"AZURE": {
"0": "0",
"1": "1",
"2": "1",
"2": "1",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
"7": "7",
"8": "1"
},
"AZURE_TUNNEL": {
"0": "0",
@@ -179,7 +182,8 @@
"4": "6",
"5": "5",
"6": "1",
"7": "7"
"7": "7",
"8": "1"
}
},
{%- endmacro %}
@@ -188,15 +192,15 @@
"AZURE_TUNNEL": {
"0": "8",
"1": "0",
"2": "33",
"2": "0",
"3": "2",
"4": "6",
"5": "46",
"6": "0",
"7": "48"
"7": "48",
"8": "33"
}
},
{%- endmacro %}
{% endif %}

{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -44,3 +44,9 @@
}
},
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -50,3 +50,9 @@
}
},
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% if DEVICE_METADATA is defined and 'type' in DEVICE_METADATA['localhost'] and
(DEVICE_METADATA['localhost']['type'] == 'LeafRouter' or DEVICE_METADATA['localhost']['subtype'] == 'DualToR') %}
{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
{% if port in port_names_require_extra_buffer.split(',') %}
"{{ port }}|0-1": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|2-4": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|5": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|6": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|7": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}

{% else %}
"{{ port }}|0-2": {
"profile" : "egress_lossy_profile"
},
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
},
"{{ port }}|5-7": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}

{% endif %}
{% endfor %}
}
{% endmacro %}
{% endif %}
Loading