Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@
"device_bdf": "{{cpu_card_fpga_bdf}}",
"dev_attr": {}
},
"dev_attr": {
"pwr_cycle_reg_offset": "0x8",
"pwr_cycle_enable_word": "0xdeadbeef"
},
"i2c": {
"dev_attr": {
"virt_bus": "0x4",
Expand Down Expand Up @@ -1379,6 +1383,10 @@
"device_bdf": "{{switchcard_fpga_bdf}}",
"dev_attr": {}
},
"dev_attr": {
"pwr_cycle_reg_offset": "0x4",
"pwr_cycle_enable_word": "0xdeadbeef"
},
"i2c": {
"dev_attr": {
"virt_bus": "0x13",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{%- set default_cable = '300m' %}

{%- include 'buffer_ports.j2' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'upperspinerouter_spinerouter' : '50m',
'upperspinerouter_lowerspinerouter' : '50m',
'regionalhub_upperspinerouter': '120000m',
'aznghub_upperspinerouter' : '120000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %}
{# Generate list of ports #}
{%- for port_idx in range(256, 261, 4) %}
{%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "56441610000",
"type": "both",
"mode": "dynamic",
"xoff": "2822080500"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"xon_offset": "0",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-4"
}
},
{%- endmacro %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
25000 5m 18796 0 612140 0 3556
25000 40m 18796 0 612140 0 3556
25000 300m 18796 0 612140 0 3556
100000 5m 18796 0 612140 0 3556
100000 40m 18796 0 612140 0 3556
100000 300m 18796 0 612140 0 3556
200000 5m 18796 0 612140 0 3556
200000 40m 18796 0 612140 0 3556
200000 300m 18796 0 612140 0 3556
400000 5m 18796 0 612140 0 3556
400000 40m 18796 0 612140 0 3556
400000 300m 18796 0 612140 0 3556
800000 5m 18796 0 612140 0 3556
800000 40m 18796 0 612140 0 3556
800000 300m 18796 0 612140 0 3556
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{%- macro generate_global_dscp_to_tc_map() %}
{# This is an empty macro since the global DSCP_TO_TC map is not required #}
{%- endmacro %}

{%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %}
{# Generate list of ports #}
{%- for port_idx in range(256, 261, 4) %}
{%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- include 'qos_config.j2' %}
801 changes: 801 additions & 0 deletions device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/agera2.bcm

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(128, 253, 4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{%- set default_cable = '300m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %}
{# Generate list of ports #}
{%- for port_idx in range(256, 261, 4) %}
{%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_pool": {
"size": "56441610000",
"type": "both",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_pool",
"size":"0",
"dynamic_th":"3"
},
"egress_lossy_profile": {
"pool":"ingress_pool",
"size":"0",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
"BUFFER_PG": {
{% for port in port_names_active.split(',') %}
"{{ port }}|0-7": {
"profile" : "ingress_lossy_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
},
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
"BUFFER_QUEUE": {
{% for port in port_names_active.split(',') %}
"{{ port }}|0-7": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{% endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"CONTEXTS": [
{
"guid": 0,
"name": "sw0",
"dbAsic": "ASIC_DB",
"dbCounters": "COUNTERS_DB",
"dbFlex": "FLEX_COUNTER_DB",
"dbState": "STATE_DB",
"zmq_enable": false,
"zmq_endpoint": "tcp://127.0.0.1:5555",
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556",
"switches": [
{
"index": 0,
"hwinfo": ""
}
]
},
{
"guid": 1,
"name": "phy",
"dbAsic": "GB_ASIC_DB",
"dbCounters": "GB_COUNTERS_DB",
"dbFlex": "GB_FLEX_COUNTER_DB",
"dbState": "STATE_DB",
"zmq_enable": false,
"zmq_endpoint": "tcp://127.0.0.1:5565",
"zmq_ntf_endpoint": "tcp://127.0.0.1:5566",
"switches": [
{
"index": 9,
"hwinfo": "9"
},
{
"index": 8,
"hwinfo": "8"
},
{
"index": 10,
"hwinfo": "10"
},
{
"index": 11,
"hwinfo": "11"
},
{
"index": 12,
"hwinfo": "12"
},
{
"index": 13,
"hwinfo": "13"
},
{
"index": 14,
"hwinfo": "14"
},
{
"index": 15,
"hwinfo": "15"
},
{
"index": 0,
"hwinfo": "0"
},
{
"index": 1,
"hwinfo": "1"
},
{
"index": 2,
"hwinfo": "2"
},
{
"index": 3,
"hwinfo": "3"
},
{
"index": 4,
"hwinfo": "4"
},
{
"index": 5,
"hwinfo": "5"
},
{
"index": 6,
"hwinfo": "6"
},
{
"index": 7,
"hwinfo": "7"
}
]
}
]
}
Loading
Loading