diff --git a/ansible/library/sonic_release.py b/ansible/library/sonic_release.py new file mode 100644 index 00000000000..e87ef06cb4b --- /dev/null +++ b/ansible/library/sonic_release.py @@ -0,0 +1,52 @@ +#!/usr/bin/python +import subprocess +from ansible.module_utils.basic import * + +DOCUMENTATION = ''' +--- +module: sonic_release +version_added: "0.1" +author: Ashok Daparthi (ashok.daparthi@dell.com) +short_description: Retrive os release facts from device +description: + - Retrieve sonic release facts for a device, the facts will be + inserted to the ansible_facts key. +''' + +EXAMPLES = ''' +# Gather sonic release facts + - name: Gather sonic release + sonic_release: + +''' +def main(): + + module = AnsibleModule(argument_spec=dict()) + """ + Gets the SONiC OS version that is running on this device. + """ + sonic_release = None + sonic_qos_db_fv_reference_with_table = false + try: + process = subprocess.Popen(['sonic-cfggen', '-y', '/etc/sonic/sonic_version.yml', '-v', 'release'], + stdout=subprocess.PIPE, stdin=subprocess.PIPE) + self.stdout, stderr = process.communicate() + ret_code = process.returncode + except Exception as e: + module.fail_json(msg=str(e)) + else: + if ret_code != 0: + module.fail_json(msg=stderr) + else: + sonic_release = self.stdout.split('.')[0].strip() + """ + Check for QOS DB format for Field Value refered with tables or not. + """ + old_format_release_list = ["201811", "201911", "202012", "202106"] + if any(release == sonic_release for release in old_format_release_list): + sonic_qos_db_fv_reference_with_table = true + + module.exit_json(ansible_facts={'sonic_release': sonic_release, 'sonic_qos_db_fv_reference_with_table': sonic_qos_db_fv_reference_with_table}) + +if __name__ == '__main__': + main() diff --git a/ansible/roles/fanout/templates/sonic_deploy_arista_7060.j2 b/ansible/roles/fanout/templates/sonic_deploy_arista_7060.j2 index c805d45d30f..d1ef5960949 100644 --- a/ansible/roles/fanout/templates/sonic_deploy_arista_7060.j2 +++ b/ansible/roles/fanout/templates/sonic_deploy_arista_7060.j2 @@ -63,8 +63,8 @@ "FLEX_COUNTER_STATUS": "enable" } }, - "QUEUE": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} {% for alias in device_conn[inventory_hostname] %} "{{ alias }}|0": { "scheduler": "[SCHEDULER|scheduler.0]" @@ -90,9 +90,37 @@ "scheduler": "[SCHEDULER|scheduler.0]" }{% if not loop.last %},{% endif %} {% endfor %} +{% else %} +{% for alias in device_conn[inventory_hostname] %} + "{{ alias }}|0": { + "scheduler": "scheduler.0" + }, + "{{ alias }}|1": { + "scheduler": "scheduler.0" + }, + "{{ alias }}|2": { + "scheduler": "scheduler.0" + }, + "{{ alias }}|3": { + "wred_profile": "AZURE_LOSSLESS", + "scheduler": "scheduler.1" + }, + "{{ alias }}|4": { + "wred_profile": "AZURE_LOSSLESS", + "scheduler": "scheduler.1" + }, + "{{ alias }}|5": { + "scheduler": "scheduler.0" + }, + "{{ alias }}|6": { + "scheduler": "scheduler.0" + }{% if not loop.last %},{% endif %} +{% endfor %} +{% endif %} }, "BUFFER_QUEUE": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} {% for alias in device_conn[inventory_hostname] %} "{{ alias }}|0-2": { "profile": "[BUFFER_PROFILE|egress_lossy_profile]" @@ -104,9 +132,23 @@ "profile": "[BUFFER_PROFILE|egress_lossy_profile]" }{% if not loop.last %},{% endif %} {% endfor %} +{% else %} +{% for alias in device_conn[inventory_hostname] %} + "{{ alias }}|0-2": { + "profile": "egress_lossy_profile" + }, + "{{ alias }}|3-4": { + "profile": "egress_lossless_profile" + }, + "{{ alias }}|5-6": { + "profile": "egress_lossy_profile" + }{% if not loop.last %},{% endif %} +{% endfor %} +{% endif %} }, "BUFFER_PG": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} {% for alias in device_conn[inventory_hostname] %} "{{ alias }}|0": { "profile": "[BUFFER_PROFILE|ingress_lossy_profile]" @@ -115,6 +157,16 @@ "profile": "[BUFFER_PROFILE|pg_lossless_100000_300m_profile]" }{% if not loop.last %},{% endif %} {% endfor %} +{% else %} +{% for alias in device_conn[inventory_hostname] %} + "{{ alias }}|0": { + "profile": "ingress_lossy_profile" + }, + "{{ alias }}|3-4": { + "profile": "pg_lossless_100000_300m_profile" + }{% if not loop.last %},{% endif %} +{% endfor %} +{% endif %} }, "CABLE_LENGTH": { @@ -186,6 +238,7 @@ }, "BUFFER_PROFILE": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} "egress_lossless_profile": { "static_th": "15982720", "pool": "[BUFFER_POOL|egress_lossless_pool]", @@ -209,6 +262,31 @@ "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1248" } +{% else %} + "egress_lossless_profile": { + "static_th": "15982720", + "pool": "egress_lossless_pool", + "size": "1518" + }, + "egress_lossy_profile": { + "dynamic_th": "3", + "pool": "egress_lossy_pool", + "size": "1518" + }, + "ingress_lossy_profile": { + "dynamic_th": "3", + "pool": "ingress_lossless_pool", + "size": "0" + }, + "pg_lossless_100000_300m_profile": { + "xon_offset": "2288", + "dynamic_th": "0", + "xon": "2288", + "xoff": "268736", + "pool": "ingress_lossless_pool", + "size": "1248" + } +{% endif %} } -} \ No newline at end of file +} diff --git a/ansible/roles/test/tasks/qos_get_max_buff_size.yml b/ansible/roles/test/tasks/qos_get_max_buff_size.yml index 74f0190737e..35ffb002ddf 100644 --- a/ansible/roles/test/tasks/qos_get_max_buff_size.yml +++ b/ansible/roles/test/tasks/qos_get_max_buff_size.yml @@ -8,11 +8,18 @@ - debug: msg="Get {{target_port_name}} port {{target_buffer_profile_type}} MAX buffer size" +- name: gather sonic release if not available + sonic_release: + when: sonic_release is not defined + +- fail: + msg: "Unable to get sonic release and qos db format information" + when: sonic_qos_db_fv_reference_with_table is not defined + - name: Get {{target_buffer_profile_type}} buffer profile table for {{target_port_name}} port shell: redis-cli -n 4 KEYS "{{target_table}}|{{target_port_name}}|{{target_pg}}" register: buffer_profile_table - - fail: msg: "Unable to get {{target_buffer_profile_type}} buffer profile table for {{target_port_name}}" when: buffer_profile_table.stdout == "" @@ -26,30 +33,50 @@ msg: "Unable to get {{target_buffer_profile_type}} buffer profile for {{target_port_name}}" when: buffer_profile.stdout == "" +- name: Parse buffer profile name + set_fact: + buffer_profile="{{buffer_profile.stdout}}" + when: sonic_qos_db_fv_reference_with_table|bool == false + - name: Parse buffer profile name set_fact: buffer_profile="{{buffer_profile.stdout|replace('[','')|replace(']','')}}" + when: sonic_qos_db_fv_reference_with_table|bool == true +- name: set buffer_profile table key with new db format + set_fact: + buffer_profile_key="BUFFER_PROFILE|{{buffer_profile}}" + when: sonic_qos_db_fv_reference_with_table|bool == false +- name: set buffer_profile table key with old db format + set_fact: + buffer_profile_key="{{buffer_profile}}" + when: sonic_qos_db_fv_reference_with_table|bool == true + - name: Get {{target_buffer_profile_type}} buffer headroom size for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" size + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" size register: buffer_headroom - fail: msg: "Unable to get headroom size for {{target_port_name}}" when: buffer_headroom.stdout == "" - - name: Get {{target_buffer_profile_type}} buffer pool profile for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" pool + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" pool register: buffer_pool_id +- name: Parse {{target_buffer_profile_type}} buffer pool profile name + set_fact: + buffer_pool_id="{{buffer_pool_id.stdout}}" + when: sonic_qos_db_fv_reference_with_table|bool == false + - name: Parse {{target_buffer_profile_type}} buffer pool profile name set_fact: buffer_pool_id="{{buffer_pool_id.stdout|replace('[','')|replace(']','')}}" + when: sonic_qos_db_fv_reference_with_table|bool == true - name: Get {{target_buffer_profile_type}} buffer alpha ID for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" dynamic_th + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" dynamic_th register: buffer_alpha_raw # static threshold @@ -60,7 +87,7 @@ "{{target_buffer_profile_type}} buffer uses static threshold" - name: Get {{target_buffer_profile_type}} buffer alpha ID for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" static_th + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" static_th register: buffer_static_th - fail: @@ -77,8 +104,18 @@ set_fact: buffer_alpha="{{2|pow(buffer_alpha_raw.stdout|int)}}" + - name: Set buffer pool key with new db format + set_fact: + buffer_pool_id_key="BUFFER_POOL|{{buffer_pool_id}}" + when: sonic_qos_db_fv_reference_with_table|bool == false + + - name: Set buffer pool key with old db format + set_fact: + buffer_pool_id_key="{{buffer_pool_id}}" + when: sonic_qos_db_fv_reference_with_table|bool == true + - name: Get {{target_buffer_profile_type}} buffer pool size for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_pool_id}}" size + shell: redis-cli -n 4 HGET "{{buffer_pool_id_key}}" size register: buffer_pool_size - fail: @@ -93,9 +130,9 @@ # ingress lossless specific - name: Get XON for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" xon + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" xon register: buffer_xon - when: buffer_profile != "" and "pg_lossless" in buffer_profile + when: buffer_profile != "" and "pg_lossless" in buffer_profile - fail: msg: "Unable to get XON for {{target_port_name}}" @@ -104,7 +141,7 @@ # ingress lossless specific - name: Get XOFF for {{target_port_name}} port - shell: redis-cli -n 4 HGET "{{buffer_profile}}" xoff + shell: redis-cli -n 4 HGET "{{buffer_profile_key}}" xoff register: buffer_xoff when: buffer_profile != "" and 'pg_lossless' in buffer_profile @@ -116,8 +153,15 @@ # Get buffer pool ROID # This is perhaps the only useful section in this yaml play - block: - - set_fact: + - name: Set buffer_pool_name with new db format + set_fact: + buffer_pool_name="{{buffer_pool_id}}" + when: sonic_qos_db_fv_reference_with_table|bool == false + + - name: Set buffer_pool_name with old db format + set_fact: buffer_pool_name="{{buffer_pool_id|replace('BUFFER_POOL|','')}}" + when: sonic_qos_db_fv_reference_with_table|bool == true - name: Get {{buffer_pool_name}} VOID shell: redis-cli -n 2 HGET COUNTERS_BUFFER_POOL_NAME_MAP "{{buffer_pool_name}}" diff --git a/ansible/roles/test/tasks/qos_sai.yml b/ansible/roles/test/tasks/qos_sai.yml index eaa10743c2e..0fc25a3c48c 100644 --- a/ansible/roles/test/tasks/qos_sai.yml +++ b/ansible/roles/test/tasks/qos_sai.yml @@ -33,7 +33,21 @@ defined_asic_list: ['td2', 'th', 'th2', 'spc1', 'spc2', 'spc3'] speed_cablelen: "{{ lossless_buffer_profile }}" - - set_fact: speed_cablelen="{{speed_cablelen | regex_replace('BUFFER_PROFILE\|pg_lossless_(.*)_profile', '\\1')}}" + - name: gather sonic release if not available + sonic_release: + when: sonic_release is not defined + + - fail: + msg: "Unable to get sonic release and qos db format information" + when: sonic_qos_db_fv_reference_with_table is not defined + + - name: Set speed_cablelen with new db format + set_fact: speed_cablelen="{{speed_cablelen | regex_replace('pg_lossless_(.*)_profile', '\\1')}}" + when: sonic_qos_db_fv_reference_with_table|bool == false + + - name: Set speed_cablelen with old db format + set_fact: speed_cablelen="{{speed_cablelen | regex_replace('BUFFER_PROFILE\|pg_lossless_(.*)_profile', '\\1')}}" + when: sonic_qos_db_fv_reference_with_table|bool == true - name: Get asic type set_fact: asic_type="{{ item }}" diff --git a/ansible/roles/test/templates/qos_lossy_profile.j2 b/ansible/roles/test/templates/qos_lossy_profile.j2 index 2b377863015..73236b72711 100644 --- a/ansible/roles/test/templates/qos_lossy_profile.j2 +++ b/ansible/roles/test/templates/qos_lossy_profile.j2 @@ -3,7 +3,11 @@ "BUFFER_PROFILE": { "pg_lossy_TEST_profile": { "dynamic_th": "-8", +{% if sonic_qos_db_fv_reference_with_table == 'true' %} "pool": "[{{ buffer_pool_id }}]", +{% else %} + "pool": "{{ buffer_pool_id }}", +{% endif %} {% if buffer_headroom.stdout != '0' %} "size": "{{ buffer_headroom.stdout }}" {% else %} @@ -14,11 +18,19 @@ {% endif %} "BUFFER_PG": { "{{ dut_switch_ports[src_port_id|int] }}|0-1": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} {% if pfc_generate_buffer_profile == 'True' %} "profile": "[BUFFER_PROFILE|pg_lossy_TEST_profile]" {% else %} "profile": "[{{ buffer_profile }}]" {% endif %} +{% else %} + {% if pfc_generate_buffer_profile == 'True' %} + "profile": "pg_lossy_TEST_profile" + {% else %} + "profile": "{{ buffer_profile }}" + {% endif %} +{% endif %} } } } diff --git a/ansible/roles/test/templates/qos_pfc_profile.j2 b/ansible/roles/test/templates/qos_pfc_profile.j2 index 9b0650ea5e3..5d35299bca5 100644 --- a/ansible/roles/test/templates/qos_pfc_profile.j2 +++ b/ansible/roles/test/templates/qos_pfc_profile.j2 @@ -5,18 +5,30 @@ "xon": "{{ buffer_xon.stdout }}", "dynamic_th": "-8", "xoff": "{{ buffer_xoff.stdout }}", +{% if sonic_qos_db_fv_reference_with_table == 'true' %} "pool": "[{{ buffer_pool_id }}]", +{% else %} + "pool": "{{ buffer_pool_id }}", +{% endif %} "size": "{{ buffer_headroom.stdout }}" } }, {% endif %} "BUFFER_PG": { "{{ dut_switch_ports[src_port_id|int] }}|3-4": { +{% if sonic_qos_db_fv_reference_with_table == 'true' %} {% if pfc_generate_buffer_profile == 'True' %} "profile": "[BUFFER_PROFILE|pg_lossless_PFC_TEST_profile]" {% else %} "profile": "[{{ buffer_profile }}]" {% endif %} +{% else %} + {% if pfc_generate_buffer_profile == 'True' %} + "profile": "pg_lossless_PFC_TEST_profile" + {% else %} + "profile": "{{ buffer_profile }}" + {% endif %} +{% endif %} } } } diff --git a/ansible/vars/configlet/t1-64-lag-clet/apply_clet.sh b/ansible/vars/configlet/t1-64-lag-clet/apply_clet.sh index bb00c8cd3e8..5477131341a 100755 --- a/ansible/vars/configlet/t1-64-lag-clet/apply_clet.sh +++ b/ansible/vars/configlet/t1-64-lag-clet/apply_clet.sh @@ -3,4 +3,24 @@ # Sleep to let all BGP sessions go up & running before adding a T0 sleep 1m configlet -j /etc/sonic/clet-to_clear.json -d -configlet -j /etc/sonic/clet-add.json -u + +sonic_release="$(sonic-cfggen -y /etc/sonic/sonic_version.yml -v release)" + +sonic_qos_db_fv_reference_with_table=false + +#Check for QOS DB format for Field Value refered with tables or not. +declare -a array=("201811" "201911" "202012" "202106") + +for i in "${array[@]}" +do + if [ "$i" == "$sonic_release" ] ; then + echo "Found" + sonic_qos_db_fv_reference_with_table=true + fi +done + +if [ "$sonic_qos_db_fv_reference_with_table" == "true" ]; then + configlet -j /etc/sonic/clet-add.json -u +else + configlet -j /etc/sonic/clet-add-qos-new-dbfmt.json -u +fi diff --git a/ansible/vars/configlet/t1-64-lag-clet/clet-add-qos-new-dbfmt.json b/ansible/vars/configlet/t1-64-lag-clet/clet-add-qos-new-dbfmt.json new file mode 100644 index 00000000000..c7041efcd39 --- /dev/null +++ b/ansible/vars/configlet/t1-64-lag-clet/clet-add-qos-new-dbfmt.json @@ -0,0 +1,221 @@ +[ + { + "PORT": { + "Ethernet63": { + "description": "ARISTA20T0:Ethernet1", + "mtu": "9100", + "admin_status": "down" + } + } + }, + { + "PORTCHANNEL": { + "PortChannel0024": { + "admin_status": "up", + "min_links": "1", + "mtu": "9100" + } + } + }, + { + "PORTCHANNEL_MEMBER": { + "PortChannel0024|Ethernet63": {} + } + }, + { + "PORTCHANNEL_INTERFACE": { + "PortChannel0024|10.0.0.70/31": {}, + "PortChannel0024|FC00::8D/126": {} + } + }, + { + "ACL_TABLE": { + "EVERFLOW": { + "type": "MIRROR", + "policy_desc": "EVERFLOW", + "ports": [ + "PortChannel0001", + "PortChannel0002", + "PortChannel0003", + "PortChannel0004", + "PortChannel0005", + "PortChannel0006", + "PortChannel0007", + "PortChannel0008", + "PortChannel0009", + "PortChannel0010", + "PortChannel0011", + "PortChannel0012", + "PortChannel0013", + "PortChannel0014", + "PortChannel0015", + "PortChannel0016", + "PortChannel0017", + "PortChannel0018", + "PortChannel0019", + "PortChannel0020", + "PortChannel0021", + "PortChannel0022", + "PortChannel0023", + "PortChannel0024" + ] + }, + "EVERFLOWV6": { + "type": "MIRRORV6", + "policy_desc": "EVERFLOWV6", + "ports": [ + "PortChannel0001", + "PortChannel0002", + "PortChannel0003", + "PortChannel0004", + "PortChannel0005", + "PortChannel0006", + "PortChannel0007", + "PortChannel0008", + "PortChannel0009", + "PortChannel0010", + "PortChannel0011", + "PortChannel0012", + "PortChannel0013", + "PortChannel0014", + "PortChannel0015", + "PortChannel0016", + "PortChannel0017", + "PortChannel0018", + "PortChannel0019", + "PortChannel0020", + "PortChannel0021", + "PortChannel0022", + "PortChannel0023", + "PortChannel0024" + ] + } + } + }, + { + "DEVICE_NEIGHBOR": { + "Ethernet63": { + "name": "ARISTA20T0", + "port": "Ethernet1" + } + } + }, + { + "DEVICE_NEIGHBOR_METADATA": { + "ARISTA20T0": { + "lo_addr": "None", + "mgmt_addr": "10.64.247.223", + "hwsku": "Arista-VM", + "type": "ToRRouter", + "deployment_id": "2" + } + } + }, + { + "CABLE_LENGTH": { + "AZURE": { + "Ethernet63": "300m" + } + } + }, + { + "QUEUE": { + "Ethernet63|0": { + "scheduler": "scheduler.0" + }, + "Ethernet63|1": { + "scheduler": "scheduler.0" + }, + "Ethernet63|2": { + "scheduler": "scheduler.0" + }, + "Ethernet63|3": { + "wred_profile": "AZURE_LOSSLESS", + "scheduler": "scheduler.1" + }, + "Ethernet63|4": { + "wred_profile": "AZURE_LOSSLESS", + "scheduler": "scheduler.1" + }, + "Ethernet63|5": { + "scheduler": "scheduler.0" + }, + "Ethernet63|6": { + "scheduler": "scheduler.0" + } + } + }, + { + "BUFFER_PG": { + "Ethernet63|0": { + "profile": "ingress_lossy_profile" + } + } + }, + { + "BUFFER_QUEUE": { + "Ethernet63|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet63|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet63|5-6": { + "profile": "egress_lossy_profile" + } + + } + }, + { + "PORT_QOS_MAP": { + "Ethernet63": { + "tc_to_pg_map": "AZURE", + "tc_to_queue_map": "AZURE", + "pfc_enable": "3,4", + "pfc_to_queue_map": "AZURE", + "dscp_to_tc_map": "AZURE" + } + } + }, + { + "PFC_WD": { + "Ethernet63": { + "action": "drop", + "detection_time": "400", + "restoration_time": "400" + } + } + }, + { + "BGP_NEIGHBOR": { + "10.0.0.71": { + "rrclient": "0", + "name": "ARISTA20T0", + "local_addr": "10.0.0.70", + "nhopself": "0", + "admin_status": "up", + "holdtime": "10", + "asn": "64020", + "keepalive": "3" + }, + "fc00::8e": { + "rrclient": "0", + "name": "ARISTA20T0", + "local_addr": "fc00::8d", + "nhopself": "0", + "admin_status": "up", + "holdtime": "10", + "asn": "64020", + "keepalive": "3" + } + } + }, + { + "PORT": { + "Ethernet63": { + "admin_status": "up" + } + } + } +] + diff --git a/spytest/apis/qos/cos.py b/spytest/apis/qos/cos.py index 5aed5090dd6..9b12ab03a17 100644 --- a/spytest/apis/qos/cos.py +++ b/spytest/apis/qos/cos.py @@ -15,7 +15,7 @@ def config_port_qos_map(dut, obj_name, interface, **kwargs): st.log("Please provide obj_name like 'AZURE' and interface like 'Ethernet0,Ethernet1'") return False else: - cos_specific_dict = {"tc_to_queue_map": "[TC_TO_QUEUE_MAP|" + obj_name + "]", "dscp_to_tc_map": "[DSCP_TO_TC_MAP|" + obj_name + "]" } + cos_specific_dict = {"tc_to_queue_map": obj_name, "dscp_to_tc_map": obj_name} temp_data[interface] = cos_specific_dict final_data['PORT_QOS_MAP'] = temp_data final_data = json.dumps(final_data) @@ -64,19 +64,19 @@ def config_port_qos_map_all(dut, qos_maps, cli_type=''): if qos_map['port'] not in temp_data: temp_data[qos_map['port']] = {} if qos_map['map'] == 'dot1p_to_tc_map': - temp_data[qos_map['port']].update(dot1p_to_tc_map="[DOT1P_TO_TC_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(dot1p_to_tc_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'dscp_to_tc_map': - temp_data[qos_map['port']].update(dscp_to_tc_map="[DSCP_TO_TC_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(dscp_to_tc_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'pfc_to_queue_map': - temp_data[qos_map['port']].update(pfc_to_queue_map="[MAP_PFC_PRIORITY_TO_QUEUE|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(pfc_to_queue_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'tc_to_dot1p_map': - temp_data[qos_map['port']].update(tc_to_dot1p_map="[TC_TO_DOT1P_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(tc_to_dot1p_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'tc_to_dscp_map': - temp_data[qos_map['port']].update(tc_to_dscp_map="[TC_TO_DSCP_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(tc_to_dscp_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'tc_to_pg_map': - temp_data[qos_map['port']].update(tc_to_pg_map="[TC_TO_PRIORITY_GROUP_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(tc_to_pg_map="{}".format(qos_map['obj_name'])) elif qos_map['map'] == 'tc_to_queue_map': - temp_data[qos_map['port']].update(tc_to_queue_map="[TC_TO_QUEUE_MAP|{}]".format(qos_map['obj_name'])) + temp_data[qos_map['port']].update(tc_to_queue_map="{}".format(qos_map['obj_name'])) else: st.error('Invalid map: {}'.format(qos_map['map'])) return False @@ -840,4 +840,4 @@ def get_non_range_map_data_from_range_map_data(dict_data): temp.extend(re.findall(r"\d+", key)) retval.update({i:value for i in temp}) st.debug("The updated non-range map data is: {}".format(retval)) - return retval \ No newline at end of file + return retval diff --git a/spytest/apis/qos/qos_shaper.py b/spytest/apis/qos/qos_shaper.py index b765ce6b29f..3396beb7597 100644 --- a/spytest/apis/qos/qos_shaper.py +++ b/spytest/apis/qos/qos_shaper.py @@ -39,7 +39,7 @@ def apply_port_shaping_config(dut, shaper_data, **kwargs): json_data = {"PORT_QOS_MAP": {}, "SCHEDULER": {policy_name: {}}} if shaper_data.get("port"): ports = make_list(shaper_data["port"]) - json_data["PORT_QOS_MAP"] = {port: {"scheduler": "[SCHEDULER|{}]".format(policy_name)} for port in ports} + json_data["PORT_QOS_MAP"] = {port: {"scheduler": "{}".format(policy_name)} for port in ports} else: json_data.pop("PORT_QOS_MAP") if ("pir" in shaper_data) or ("pbs" in shaper_data) or shaper_data.get("meter_type"): @@ -146,7 +146,7 @@ def apply_queue_shaping_config(dut, shaper_data, **kwargs): config_data["SCHEDULER"].update(temp) if ports: queue_map = dict() - queue_map = {"{}|{}".format(port, ent['queue']): {"scheduler": "[SCHEDULER|{}]".format(policy)} for port in ports} + queue_map = {"{}|{}".format(port, ent['queue']): {"scheduler": "{}".format(policy)} for port in ports} config_data["QUEUE"].update(queue_map) config_data2 = {key: value for key, value in config_data.items()} for key, value in config_data2.items(): @@ -303,7 +303,7 @@ def apply_queue_shcheduling_config(dut, scheduler_data, **kwargs): if ent.get('type'): temp[policy].update(type = ent['type'].upper()) if ports: - queue_map = {"{}|{}".format(port, ent['queue']) : {"scheduler": "[SCHEDULER|{}]".format(policy)} for port in ports} + queue_map = {"{}|{}".format(port, ent['queue']) : {"scheduler": "{}".format(policy)} for port in ports} if temp[policy]: config_data['SCHEDULER'].update(temp) if queue_map: diff --git a/spytest/apis/qos/wred.py b/spytest/apis/qos/wred.py index f2dade4a8af..033cf844590 100644 --- a/spytest/apis/qos/wred.py +++ b/spytest/apis/qos/wred.py @@ -88,7 +88,7 @@ def apply_wred_ecn_config(dut, config, cli_type=''): temp['queue'] = list(range(int(queue1), int(queue2)+1)) else: temp['queue'] = q.split(',') - temp['wred_profile'] = wred_map['wred_profile'][14:-1] + temp['wred_profile'] = wred_map['wred_profile'] config_apply_list.append(temp) st.debug('port map data is: {}'.format(config_apply_list)) for entry in config_apply_list: diff --git a/spytest/apis/system/pfc.py b/spytest/apis/system/pfc.py index e361e63a8e9..3588bb38100 100644 --- a/spytest/apis/system/pfc.py +++ b/spytest/apis/system/pfc.py @@ -635,12 +635,12 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): buffer_pool = {"BUFFER_POOL": {"egress_lossless_pool": {"mode": "static", "size": "12766208", "type": "egress"}, "egress_lossy_pool": {"mode": "dynamic", "size": "7326924", "type": "egress"}, "ingress_lossless_pool": {"mode": "dynamic", "size": "12766208", "type": "ingress", "xoff": "4625920"}}} - buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "1518"}, - "ingress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "0"}, - "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_25000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_100000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} + buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "egress_lossless_pool", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "egress_lossless_pool", "size": "1518"}, + "ingress_lossy_profile": {"dynamic_th": "3", "pool": "ingress_lossless_pool", "size": "0"}, + "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_25000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_100000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} cable_length_config = {"CABLE_LENGTH": {"AZURE": {native_ports_map_dict[port]: "300m" for port in ports_dict.keys()}}} update_retval([buffer_pool, buffer_profile, cable_length_config]) if apply_buffer_config: @@ -648,7 +648,7 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): egress_profile_mapping = {'lossy_profile' : 'egress_lossy_profile', 'lossless_profile' : 'egress_lossless_profile'} buffer_pg = dict() buffer_queue = dict() - get_profile = lambda profile: {"profile": "[BUFFER_PROFILE|{}]".format(profile)} + get_profile = lambda profile: {"profile": "{}".format(profile)} for port, queue_info in ports_dict.items(): native_port = native_ports_map_dict[port] for queue_type, queues in queue_info.items(): @@ -664,12 +664,12 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): buffer_pool = {"BUFFER_POOL": {"egress_lossless_pool": {"mode": "static", "size": "12766208", "type": "egress"}, "egress_lossy_pool": {"mode": "dynamic", "size": "7326924", "type": "egress"}, "ingress_lossless_pool": {"mode": "dynamic", "size": "12766208", "type": "ingress", "xoff": "4625920"}}} - buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "1518"}, - "ingress_lossy_profile": {"dynamic_th": "3","pool": "[BUFFER_POOL|ingress_lossless_pool]","size": "0"}, - "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_25000_300m_profile": {"dynamic_th": "-3","pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_100000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} + buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "egress_lossless_pool", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "egress_lossless_pool", "size": "1518"}, + "ingress_lossy_profile": {"dynamic_th": "3","pool": "ingress_lossless_pool","size": "0"}, + "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_25000_300m_profile": {"dynamic_th": "-3","pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_100000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} cable_length_config = {"CABLE_LENGTH": {"AZURE": {native_ports_map_dict[port]: "300m" for port in ports_dict.keys()}}} update_retval([buffer_pool, buffer_profile, cable_length_config]) if apply_buffer_config: @@ -677,7 +677,7 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): egress_profile_mapping = {'lossy_profile' : 'egress_lossy_profile', 'lossless_profile' : 'egress_lossless_profile'} buffer_pg = dict() buffer_queue = dict() - get_profile = lambda profile: {"profile": "[BUFFER_PROFILE|{}]".format(profile)} + get_profile = lambda profile: {"profile": "{}".format(profile)} for port, queue_info in ports_dict.items(): native_port = native_ports_map_dict[port] for queue_type, queues in queue_info.items(): @@ -692,14 +692,14 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): if core_buffer_config: buffer_pool = {"BUFFER_POOL": {"egress_lossy_pool": {"mode": "dynamic", "size": "67108864", "type": "egress"}, "ingress_lossless_pool": {"mode": "dynamic", "size": "59001152", "type": "ingress", "xoff": "7428992"}}} - buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossy_pool]", "size": "0"}, - "egress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossy_pool]", "size": "0"}, - "ingress_lossy_profile": {"pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "0", "static_th": "67108864"}, - "pg_lossless_10000_40m_profile": {"dynamic_th": "-2", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, - "pg_lossless_50000_40m_profile": {"dynamic_th": "-2", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, - "pg_lossless_100000_40m_profile": {"dynamic_th": "-2", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, - "pg_lossless_200000_40m_profile": {"dynamic_th": "-2", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, - "pg_lossless_400000_40m_profile": {"dynamic_th": "-2", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "1270","xoff": "190500", "xon": "0", "xon_offset": "2540"}}} + buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"dynamic_th": "3", "pool": "egress_lossy_pool", "size": "0"}, + "egress_lossy_profile": {"dynamic_th": "3", "pool": "egress_lossy_pool", "size": "0"}, + "ingress_lossy_profile": {"pool": "ingress_lossless_pool", "size": "0", "static_th": "67108864"}, + "pg_lossless_10000_40m_profile": {"dynamic_th": "-2", "pool": "ingress_lossless_pool", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, + "pg_lossless_50000_40m_profile": {"dynamic_th": "-2", "pool": "ingress_lossless_pool", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, + "pg_lossless_100000_40m_profile": {"dynamic_th": "-2", "pool": "ingress_lossless_pool", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, + "pg_lossless_200000_40m_profile": {"dynamic_th": "-2", "pool": "ingress_lossless_pool", "size": "1270", "xoff": "190500", "xon": "0", "xon_offset": "2540"}, + "pg_lossless_400000_40m_profile": {"dynamic_th": "-2", "pool": "ingress_lossless_pool", "size": "1270","xoff": "190500", "xon": "0", "xon_offset": "2540"}}} cable_length_config = {"CABLE_LENGTH": {"AZURE": {native_ports_map_dict[port]: "40m" for port in ports_dict.keys()}}} update_retval([buffer_pool, buffer_profile, cable_length_config]) if apply_buffer_config: @@ -707,7 +707,7 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): egress_profile_mapping = {'lossy_profile' : 'egress_lossy_profile', 'lossless_profile' : 'egress_lossless_profile'} buffer_pg = dict() buffer_queue = dict() - get_profile = lambda profile: {"profile": "[BUFFER_PROFILE|{}]".format(profile)} + get_profile = lambda profile: {"profile": "{}".format(profile)} for port, queue_info in ports_dict.items(): native_port = native_ports_map_dict[port] for queue_type, queues in queue_info.items(): @@ -723,11 +723,11 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): buffer_pool = {"BUFFER_POOL": {"egress_lossless_pool": {"mode": "static", "size": "12766208", "type": "egress"}, "egress_lossy_pool": {"mode": "dynamic", "size": "7326924", "type": "egress"}, "ingress_lossless_pool": {"mode": "dynamic", "size": "12766208", "type": "ingress"}}} - buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "1518"}, - "ingress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "0"}, - "pg_lossless_1000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, - "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} + buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "egress_lossless_pool", "size": "0", "static_th": "12766208"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "egress_lossless_pool", "size": "1518"}, + "ingress_lossy_profile": {"dynamic_th": "3", "pool": "ingress_lossless_pool", "size": "0"}, + "pg_lossless_1000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_10000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}, + "pg_lossless_40000_300m_profile": {"dynamic_th": "-3", "pool": "ingress_lossless_pool", "size": "56368", "xoff": "55120", "xon": "18432", "xon_offset": "2496"}}} cable_length_config = {"CABLE_LENGTH": {"AZURE": {native_ports_map_dict[port]: "300m" for port in ports_dict.keys()}}} update_retval([buffer_pool, buffer_profile, cable_length_config]) if apply_buffer_config: @@ -735,7 +735,7 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): egress_profile_mapping = {'lossy_profile' : 'egress_lossy_profile', 'lossless_profile' : 'egress_lossless_profile'} buffer_pg = dict() buffer_queue = dict() - get_profile = lambda profile: {"profile": "[BUFFER_PROFILE|{}]".format(profile)} + get_profile = lambda profile: {"profile": "{}".format(profile)} for port, queue_info in ports_dict.items(): native_port = native_ports_map_dict[port] for queue_type, queues in queue_info.items(): @@ -751,14 +751,14 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): buffer_pool = {"BUFFER_POOL": {"egress_lossless_pool": {"mode": "static", "size": "33004032", "type": "egress"}, "egress_lossy_pool": {"mode": "dynamic", "size": "12766208", "type": "egress"}, "ingress_lossless_pool": {"mode": "dynamic", "size": "12766208", "type": "ingress", "xoff": "196608"}}} - buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "0", "static_th": "33004032"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|egress_lossless_pool]", "size": "1518"}, - "ingress_lossy_profile": {"dynamic_th": "3", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "0"}, - "pg_lossless_10000_300m_profile": {"dynamic_th": "1", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, - "pg_lossless_25000_300m_profile": {"dynamic_th": "1", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, - "pg_lossless_40000_300m_profile": {"dynamic_th": "1", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, - "pg_lossless_100000_300m_profile": {"dynamic_th": "1", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}}} + buffer_profile = {"BUFFER_PROFILE": {"egress_lossless_profile": {"pool": "egress_lossless_pool", "size": "0", "static_th": "33004032"}, "egress_lossy_profile": {"dynamic_th": "3", "pool": "egress_lossless_pool", "size": "1518"}, + "ingress_lossy_profile": {"dynamic_th": "3", "pool": "ingress_lossless_pool", "size": "0"}, + "pg_lossless_10000_300m_profile": {"dynamic_th": "1", "pool": "ingress_lossless_pool", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, + "pg_lossless_25000_300m_profile": {"dynamic_th": "1", "pool": "ingress_lossless_pool", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, + "pg_lossless_40000_300m_profile": {"dynamic_th": "1", "pool": "ingress_lossless_pool", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}, + "pg_lossless_100000_300m_profile": {"dynamic_th": "1", "pool": "ingress_lossless_pool", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}}} if hwsku.lower() in ['quanta-ix8a-bwde-56x', 'accton-as4630-54pe']: - buffer_profile['BUFFER_PROFILE'].update(pg_lossless_1000_300m_profile={"dynamic_th": "1", "pool": "[BUFFER_POOL|ingress_lossless_pool]", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}) + buffer_profile['BUFFER_PROFILE'].update(pg_lossless_1000_300m_profile={"dynamic_th": "1", "pool": "ingress_lossless_pool", "size": "9427", "xoff": "50176", "xon": "0", "xon_offset": "3584"}) cable_length_config = {"CABLE_LENGTH": {"AZURE": {native_ports_map_dict[port]: "300m" for port in ports_dict.keys()}}} update_retval([buffer_pool, buffer_profile, cable_length_config]) if apply_buffer_config: @@ -768,7 +768,7 @@ def config_pfc_buffer_prameters(dut, hwsku, ports_dict, **kwargs): egress_profile_mapping = {'lossy_profile' : 'egress_lossy_profile', 'lossless_profile' : 'egress_lossless_profile'} buffer_pg = dict() buffer_queue = dict() - get_profile = lambda profile: {"profile": "[BUFFER_PROFILE|{}]".format(profile)} + get_profile = lambda profile: {"profile": "{}".format(profile)} for port, queue_info in ports_dict.items(): native_port = native_ports_map_dict[port] for queue_type, queues in queue_info.items(): diff --git a/spytest/tests/qos/qos_map.py b/spytest/tests/qos/qos_map.py index 8f3c72e8d7c..448faa3684a 100644 --- a/spytest/tests/qos/qos_map.py +++ b/spytest/tests/qos/qos_map.py @@ -58,17 +58,17 @@ dscp_val_2,tc_val_2 = ["20","46"],["2","4"] dscp_val_3,tc_val_3 = ["20","46"],["1","5"] -dscp_bind_port = {"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]"} +dscp_bind_port = {"dscp_to_tc_map" : "AZURE"} sched_0, sched_1, sched_2, sched_3 = "scheduler.0", "scheduler.1", "scheduler.2", "scheduler.3" sched_strict = {"type" : "STRICT", "weight": "25"} sched_dwrr_1 = {"type" : "DWRR", "weight": "50"} sched_dwrr_2 = {"type" : "DWRR", "weight": "20"} sched_dwrr_3 = {"type" : "DWRR", "weight": "10"} -sched_bind_0 = {"scheduler" : "[SCHEDULER|scheduler.0]"} -sched_bind_1 = {"scheduler" : "[SCHEDULER|scheduler.1]"} -sched_bind_2 = {"scheduler" : "[SCHEDULER|scheduler.2]"} -sched_bind_3 = {"scheduler" : "[SCHEDULER|scheduler.3]"} +sched_bind_0 = {"scheduler" : "scheduler.0"} +sched_bind_1 = {"scheduler" : "scheduler.1"} +sched_bind_2 = {"scheduler" : "scheduler.2"} +sched_bind_3 = {"scheduler" : "scheduler.3"} pfc_bind = {"pfc_enable" : "2"} wred_obj = "AZURE_LOSSLESS" wred_profile = "WRED_PROFILE" @@ -87,7 +87,7 @@ "yellow_drop_probability": "5", "red_drop_probability" : "5" } -wred_bind = {"wred_profile": "[" + wred_profile + "|" + wred_obj + "]"} +wred_bind = {"wred_profile": wred_obj} def create_glob_vars(): diff --git a/spytest/tests/qos/wred_ecn_config_json.py b/spytest/tests/qos/wred_ecn_config_json.py index de74a5b5983..cf2d91a3d26 100644 --- a/spytest/tests/qos/wred_ecn_config_json.py +++ b/spytest/tests/qos/wred_ecn_config_json.py @@ -40,7 +40,7 @@ def init_vars(vars, apply_wred=False): }, "QUEUE": { "{},{},{}|3-4".format(vars.D1T1P1, vars.D1T1P2, vars.D1T1P3): { - "wred_profile": "[WRED_PROFILE|WRED]" + "wred_profile": "WRED" } } } diff --git a/tests/common/utilities.py b/tests/common/utilities.py index 5b17654ec0b..62d1baf248a 100644 --- a/tests/common/utilities.py +++ b/tests/common/utilities.py @@ -501,3 +501,14 @@ def get_intf_by_sub_intf(sub_intf, vlan_id): if sub_intf.endswith(vlan_suffix): return sub_intf[:-len(vlan_suffix)] return sub_intf + +def check_qos_db_fv_reference_with_table(duthost): + """ + @summary: Check qos db field value refrence with table name or not. + @param duthost: The DUT + """ + release_list = ["201811", "201911", "202012", "202106"] + if any(release == duthost.sonic_release for release in release_list): + logger.info("DUT release {} exits in release list {}, QOS db field value refered to table names".format(duthost.sonic_release, ", ".join(release_list))) + return True + return False diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index e17864824ff..0471d380d06 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -11,6 +11,7 @@ from tests.common.utilities import wait_until from tests.common.dualtor.dual_tor_utils import upper_tor_host,lower_tor_host from tests.common.dualtor.mux_simulator_control import toggle_all_simulator_ports_to_upper_tor +from tests.common.utilities import check_qos_db_fv_reference_with_table logger = logging.getLogger(__name__) @@ -137,8 +138,16 @@ def __computeBufferThreshold(self, dut_asic, bufferProfile): Returns: Updates bufferProfile with computed buffer threshold """ - db = "0" if self.isBufferInApplDb(dut_asic) else "4" - pool = bufferProfile["pool"].encode("utf-8").translate(None, "[]") + if self.isBufferInApplDb(dut_asic): + db = "0" + keystr = "BUFFER_POOL_TABLE:" + else: + db = "4" + keystr = "BUFFER_POOL|" + if check_qos_db_fv_reference_with_table(duthost) == True: + pool = bufferProfile["pool"].encode("utf-8").translate(None, "[]") + else: + pool = keystr + bufferProfile["pool"].encode("utf-8") bufferSize = int( dut_asic.run_redis_cmd( argv = ["redis-cli", "-n", db, "HGET", pool, "size"] @@ -161,14 +170,17 @@ def __updateVoidRoidParams(self, dut_asic, bufferProfile): Returns: Updates bufferProfile with VOID/ROID obtained from Redis db """ - if self.isBufferInApplDb(dut_asic): - bufferPoolName = bufferProfile["pool"].encode("utf-8").translate( - None, "[]").replace("BUFFER_POOL_TABLE:",'' - ) + if check_qos_db_fv_reference_with_table(duthost) == True: + if self.isBufferInApplDb(dut_asic): + bufferPoolName = bufferProfile["pool"].encode("utf-8").translate( + None, "[]").replace("BUFFER_POOL_TABLE:",'' + ) + else: + bufferPoolName = bufferProfile["pool"].encode("utf-8").translate( + None, "[]").replace("BUFFER_POOL|",'' + ) else: - bufferPoolName = bufferProfile["pool"].encode("utf-8").translate( - None, "[]").replace("BUFFER_POOL|",'' - ) + bufferPoolName = bufferProfile["pool"].encode("utf-8") bufferPoolVoid = dut_asic.run_redis_cmd( argv = [ @@ -201,12 +213,19 @@ def __getBufferProfile(self, request, dut_asic, os_version, table, port, priorit if self.isBufferInApplDb(dut_asic): db = "0" keystr = "{0}:{1}:{2}".format(table, port, priorityGroup) + bufkeystr = "BUFFER_POOL_TABLE:" else: db = "4" keystr = "{0}|{1}|{2}".format(table, port, priorityGroup) - bufferProfileName = dut_asic.run_redis_cmd( - argv = ["redis-cli", "-n", db, "HGET", keystr, "profile"] - )[0].encode("utf-8").translate(None, "[]") + bufkeystr = "BUFFER_POOL|" + + if check_qos_db_fv_reference_with_table(duthost) == True: + bufferProfileName = dut_asic.run_redis_cmd( + argv = ["redis-cli", "-n", db, "HGET", keystr, "profile"] + )[0].encode("utf-8").translate(None, "[]") + else: + bufferProfileName = bufkeystr + dut_asic.run_redis_cmd( + argv = ["redis-cli", "-n", db, "HGET", keystr, "profile"])[0].encode("utf-8") result = dut_asic.run_redis_cmd( argv = ["redis-cli", "-n", db, "HGETALL", bufferProfileName] @@ -269,13 +288,22 @@ def __getEcnWredParam(self, dut_asic, table, port): Returns: wredProfile (dict): Map of ECN/WRED attributes """ - wredProfileName = dut_asic.run_redis_cmd( - argv = [ - "redis-cli", "-n", "4", "HGET", - "{0}|{1}|{2}".format(table, port, self.TARGET_QUEUE_WRED), - "wred_profile" - ] - )[0].encode("utf-8").translate(None, "[]") + if check_qos_db_fv_reference_with_table(duthost) == True: + wredProfileName = dut_asic.run_redis_cmd( + argv = [ + "redis-cli", "-n", "4", "HGET", + "{0}|{1}|{2}".format(table, port, self.TARGET_QUEUE_WRED), + "wred_profile" + ] + )[0].encode("utf-8").translate(None, "[]") + else: + wredProfileName = "WRED_PROFILE|" + dut_asic.run_redis_cmd( + argv = [ + "redis-cli", "-n", "4", "HGET", + "{0}|{1}|{2}".format(table, port, self.TARGET_QUEUE_WRED), + "wred_profile" + ] + )[0].encode("utf-8") result = dut_asic.run_redis_cmd( argv = ["redis-cli", "-n", "4", "HGETALL", wredProfileName] @@ -316,12 +344,20 @@ def __getSchedulerParam(self, dut_asic, port, queue): Returns: SchedulerParam (dict): Map of scheduler parameters """ - schedProfile = dut_asic.run_redis_cmd( - argv = [ - "redis-cli", "-n", "4", "HGET", - "QUEUE|{0}|{1}".format(port, queue), "scheduler" - ] - )[0].encode("utf-8").translate(None, "[]") + if check_qos_db_fv_reference_with_table(duthost) == True: + schedProfile = dut_asic.run_redis_cmd( + argv = [ + "redis-cli", "-n", "4", "HGET", + "QUEUE|{0}|{1}".format(port, queue), "scheduler" + ] + )[0].encode("utf-8").translate(None, "[]") + else: + schedProfile = "SCHEDULER|" + dut_asic.run_redis_cmd( + argv = [ + "redis-cli", "-n", "4", "HGET", + "QUEUE|{0}|{1}".format(port, queue), "scheduler" + ] + )[0].encode("utf-8") schedWeight = dut_asic.run_redis_cmd( argv = ["redis-cli", "-n", "4", "HGET", schedProfile, "weight"] diff --git a/tests/qos/test_buffer.py b/tests/qos/test_buffer.py index 7f7ff05083c..c8887055627 100644 --- a/tests/qos/test_buffer.py +++ b/tests/qos/test_buffer.py @@ -13,6 +13,7 @@ from tests.common.helpers.assertions import pytest_assert, pytest_require from tests.common.fixtures.conn_graph_facts import conn_graph_facts from tests.common.plugins.loganalyzer.loganalyzer import LogAnalyzer +from tests.common.utilities import check_qos_db_fv_reference_with_table pytestmark = [ pytest.mark.topology('any') @@ -424,8 +425,12 @@ def check_pg_profile(duthost, pg, expected_profile, fail_test=True): Whether the expected profile has been found within given time """ def _check_pg_profile(duthost, pg, expected_profile): - profile = duthost.shell('redis-cli hget {} profile'.format(pg))['stdout'][1:-1] - return (profile == 'BUFFER_PROFILE_TABLE:' + expected_profile) + if check_qos_db_fv_reference_with_table(duthost) == True: + profile = duthost.shell('redis-cli hget {} profile'.format(pg))['stdout'][1:-1] + return (profile == 'BUFFER_PROFILE_TABLE:' + expected_profile) + else: + profile = duthost.shell('redis-cli hget {} profile'.format(pg))['stdout'] + return (profile == expected_profile) if wait_until(10, 2, _check_pg_profile, duthost, pg, expected_profile): return True @@ -706,7 +711,11 @@ def test_change_speed_cable(duthosts, rand_one_dut_hostname, conn_graph_facts, p pytest.skip('Speed is not supported by the port, skip') original_speed = duthost.shell('redis-cli -n 4 hget "PORT|{}" speed'.format(port_to_test))['stdout'] original_cable_len = duthost.shell('redis-cli -n 4 hget "CABLE_LENGTH|AZURE" {}'.format(port_to_test))['stdout'] - profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + + if check_qos_db_fv_reference_with_table(duthost) == True: + profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + else: + profile = "BUFFER_PROFILE_TABLE:" + duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'] detect_default_mtu(duthost, port_to_test) original_pg_size = int(duthost.shell('redis-cli hget "{}" size'.format(profile))['stdout']) @@ -967,7 +976,12 @@ def test_headroom_override(duthosts, rand_one_dut_hostname, conn_graph_facts, po original_speed = duthost.shell('redis-cli -n 4 hget "PORT|{}" speed'.format(port_to_test))['stdout'] original_cable_len = duthost.shell('redis-cli -n 4 hget "CABLE_LENGTH|AZURE" {}'.format(port_to_test))['stdout'] - original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + if check_qos_db_fv_reference_with_table(duthost) == True: + original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + else: + original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'] + original_profile = "BUFFER_PROFILE_TABLE:" + original_profile + original_pg_size = duthost.shell('redis-cli hget "{}" size'.format(original_profile))['stdout'] original_pool_size = duthost.shell('redis-cli hget BUFFER_POOL_TABLE:ingress_lossless_pool size')['stdout'] if DEFAULT_OVER_SUBSCRIBE_RATIO: @@ -1400,7 +1414,11 @@ def test_port_admin_down(duthosts, rand_one_dut_hostname, conn_graph_facts, port duthost = duthosts[rand_one_dut_hostname] original_speed = duthost.shell('redis-cli -n 4 hget "PORT|{}" speed'.format(port_to_test))['stdout'] original_cable_len = duthost.shell('redis-cli -n 4 hget "CABLE_LENGTH|AZURE" {}'.format(port_to_test))['stdout'] - original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + if check_qos_db_fv_reference_with_table(duthost) == True: + original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'][1:-1] + else: + original_profile = duthost.shell('redis-cli hget "BUFFER_PG_TABLE:{}:3-4" profile'.format(port_to_test))['stdout'] + original_profile = "BUFFER_PROFILE_TABLE:" + original_profile original_pg_size = duthost.shell('redis-cli hget "{}" size'.format(original_profile))['stdout'] original_pool_size = duthost.shell('redis-cli hget BUFFER_POOL_TABLE:ingress_lossless_pool size')['stdout'] diff --git a/tests/test_vs_chassis_setup.py b/tests/test_vs_chassis_setup.py index c096fe8ef9c..4cb86f157cf 100644 --- a/tests/test_vs_chassis_setup.py +++ b/tests/test_vs_chassis_setup.py @@ -5,6 +5,7 @@ from tests.common.reboot import reboot from tests.common.helpers.parallel import parallel_run, reset_ansible_local_tmp from tests.common.helpers.assertions import pytest_assert +from tests.common.utilities import check_qos_db_fv_reference_with_table logger = logging.getLogger(__name__) @@ -53,7 +54,10 @@ def setup(duthosts, tbinfo, localhost): # scp the config_db's for each card logger.info("") BASE_DIR = os.path.dirname(os.path.realpath(__file__)) - src_cfg_path = os.path.join(BASE_DIR, "vs_voq_cfgs", "{}_config_db.json".format(duthost.hostname)) + if check_qos_db_fv_reference_with_table(duthost) == True: + src_cfg_path = os.path.join(BASE_DIR, "vs_voq_cfgs", "{}_config_db.json".format(duthost.hostname)) + else: + src_cfg_path = os.path.join(BASE_DIR, "vs_voq_cfgs", "{}_qos_new_dbfmt_config_db.json".format(duthost.hostname)) dst_cfg_path = os.path.join(os.sep, "tmp", "config_db.json") logger.info("Copying {} to /etc/sonic/config_db.json on {}".format(src_cfg_path, duthost.hostname)) duthost.copy(src=src_cfg_path, dest=dst_cfg_path) diff --git a/tests/vs_voq_cfgs/vlab-t2-01_qos_new_dbfmt_config_db.json b/tests/vs_voq_cfgs/vlab-t2-01_qos_new_dbfmt_config_db.json new file mode 100644 index 00000000000..23462b00326 --- /dev/null +++ b/tests/vs_voq_cfgs/vlab-t2-01_qos_new_dbfmt_config_db.json @@ -0,0 +1,1794 @@ +{ + "SYSTEM_PORT": { + "Linecard1|Asic0|Asic0": { + "system_port_id": "0", + "switch_id": "0", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard1|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "1", + "switch_id": "0", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard1|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "2", + "switch_id": "0", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard1|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "3", + "switch_id": "0", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard1|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "4", + "switch_id": "0", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard1|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "5", + "switch_id": "0", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard1|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "6", + "switch_id": "0", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard1|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "7", + "switch_id": "0", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard1|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "8", + "switch_id": "0", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard1|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "9", + "switch_id": "0", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard1|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "10", + "switch_id": "0", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard1|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "11", + "switch_id": "0", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard1|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "12", + "switch_id": "0", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard1|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "13", + "switch_id": "0", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard1|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "14", + "switch_id": "0", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard1|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "15", + "switch_id": "0", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard1|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "16", + "switch_id": "0", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard1|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "17", + "switch_id": "0", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard1|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "18", + "switch_id": "0", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard1|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "19", + "switch_id": "0", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard1|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "20", + "switch_id": "0", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard1|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "21", + "switch_id": "0", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard1|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "22", + "switch_id": "0", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard1|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "23", + "switch_id": "0", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard1|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "24", + "switch_id": "0", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard1|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "25", + "switch_id": "0", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard1|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "26", + "switch_id": "0", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard1|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "27", + "switch_id": "0", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard1|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "28", + "switch_id": "0", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard1|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "29", + "switch_id": "0", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard1|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "30", + "switch_id": "0", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard1|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "31", + "switch_id": "0", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard1|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "32", + "switch_id": "0", + "core_index": "1", + "core_port_index": "16" + }, + "Linecard2|Asic0|Asic0": { + "system_port_id": "192", + "switch_id": "2", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard2|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "33", + "switch_id": "2", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard2|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "34", + "switch_id": "2", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard2|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "35", + "switch_id": "2", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard2|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "36", + "switch_id": "2", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard2|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "37", + "switch_id": "2", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard2|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "38", + "switch_id": "2", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard2|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "39", + "switch_id": "2", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard2|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "40", + "switch_id": "2", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard2|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "41", + "switch_id": "2", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard2|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "42", + "switch_id": "2", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard2|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "43", + "switch_id": "2", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard2|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "44", + "switch_id": "2", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard2|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "45", + "switch_id": "2", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard2|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "46", + "switch_id": "2", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard2|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "47", + "switch_id": "2", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard2|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "48", + "switch_id": "2", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard2|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "49", + "switch_id": "2", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard2|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "50", + "switch_id": "2", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard2|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "51", + "switch_id": "2", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard2|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "52", + "switch_id": "2", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard2|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "53", + "switch_id": "2", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard2|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "54", + "switch_id": "2", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard2|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "55", + "switch_id": "2", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard2|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "56", + "switch_id": "2", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard2|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "57", + "switch_id": "2", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard2|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "58", + "switch_id": "2", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard2|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "59", + "switch_id": "2", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard2|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "60", + "switch_id": "2", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard2|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "61", + "switch_id": "2", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard2|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "62", + "switch_id": "2", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard2|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "63", + "switch_id": "2", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard2|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "64", + "switch_id": "2", + "core_index": "1", + "core_port_index": "16" + }, + "Linecard3|Asic0|Asic0": { + "system_port_id": "384", + "switch_id": "4", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard3|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "65", + "switch_id": "4", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard3|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "66", + "switch_id": "4", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard3|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "67", + "switch_id": "4", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard3|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "68", + "switch_id": "4", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard3|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "69", + "switch_id": "4", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard3|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "70", + "switch_id": "4", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard3|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "71", + "switch_id": "4", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard3|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "72", + "switch_id": "4", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard3|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "73", + "switch_id": "4", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard3|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "74", + "switch_id": "4", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard3|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "75", + "switch_id": "4", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard3|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "76", + "switch_id": "4", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard3|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "77", + "switch_id": "4", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard3|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "78", + "switch_id": "4", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard3|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "79", + "switch_id": "4", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard3|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "80", + "switch_id": "4", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard3|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "81", + "switch_id": "4", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard3|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "82", + "switch_id": "4", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard3|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "83", + "switch_id": "4", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard3|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "84", + "switch_id": "4", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard3|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "85", + "switch_id": "4", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard3|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "86", + "switch_id": "4", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard3|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "87", + "switch_id": "4", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard3|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "88", + "switch_id": "4", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard3|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "89", + "switch_id": "4", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard3|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "90", + "switch_id": "4", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard3|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "91", + "switch_id": "4", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard3|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "92", + "switch_id": "4", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard3|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "93", + "switch_id": "4", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard3|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "94", + "switch_id": "4", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard3|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "95", + "switch_id": "4", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard3|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "96", + "switch_id": "4", + "core_index": "1", + "core_port_index": "16" + } + }, + "VOQ_INBAND_INTERFACE": { + "Ethernet120": { + "inband_type": "port" + }, + "Ethernet120|3.3.3.1/24": {}, + "Ethernet120|3333::3:1/126": {} + }, + "PORT": { + "Ethernet96": { + "lanes": "125,126,127,128", + "alias": "fortyGigE0/96", + "index": "24", + "speed": "40000", + "description": "fortyGigE0/96", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet40": { + "lanes": "17,18,19,20", + "alias": "fortyGigE0/40", + "index": "10", + "speed": "40000", + "description": "fortyGigE0/40", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet120": { + "lanes": "101,102,103,104", + "alias": "fortyGigE0/120", + "index": "30", + "speed": "40000", + "description": "fortyGigE0/120", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet0": { + "lanes": "25,26,27,28", + "alias": "fortyGigE0/0", + "index": "0", + "speed": "40000", + "description": "ARISTA01T3:Ethernet1", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet104": { + "lanes": "81,82,83,84", + "alias": "fortyGigE0/104", + "index": "26", + "speed": "40000", + "description": "fortyGigE0/104", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet12": { + "lanes": "37,38,39,40", + "alias": "fortyGigE0/12", + "index": "3", + "speed": "40000", + "description": "fortyGigE0/12", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet24": { + "lanes": "1,2,3,4", + "alias": "fortyGigE0/24", + "index": "6", + "speed": "40000", + "description": "fortyGigE0/24", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet52": { + "lanes": "49,50,51,52", + "alias": "fortyGigE0/52", + "index": "13", + "speed": "40000", + "description": "fortyGigE0/52", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet92": { + "lanes": "117,118,119,120", + "alias": "fortyGigE0/92", + "index": "23", + "speed": "40000", + "description": "fortyGigE0/92", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet16": { + "lanes": "45,46,47,48", + "alias": "fortyGigE0/16", + "index": "4", + "speed": "40000", + "description": "fortyGigE0/16", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet72": { + "lanes": "73,74,75,76", + "alias": "fortyGigE0/72", + "index": "18", + "speed": "40000", + "description": "fortyGigE0/72", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet76": { + "lanes": "77,78,79,80", + "alias": "fortyGigE0/76", + "index": "19", + "speed": "40000", + "description": "fortyGigE0/76", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet32": { + "lanes": "13,14,15,16", + "alias": "fortyGigE0/32", + "index": "8", + "speed": "40000", + "description": "fortyGigE0/32", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet4": { + "lanes": "29,30,31,32", + "alias": "fortyGigE0/4", + "index": "1", + "speed": "40000", + "description": "ARISTA01T3:Ethernet2", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet56": { + "lanes": "57,58,59,60", + "alias": "fortyGigE0/56", + "index": "14", + "speed": "40000", + "description": "fortyGigE0/56", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet44": { + "lanes": "21,22,23,24", + "alias": "fortyGigE0/44", + "index": "11", + "speed": "40000", + "description": "fortyGigE0/44", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet84": { + "lanes": "105,106,107,108", + "alias": "fortyGigE0/84", + "index": "21", + "speed": "40000", + "description": "fortyGigE0/84", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet36": { + "lanes": "9,10,11,12", + "alias": "fortyGigE0/36", + "index": "9", + "speed": "40000", + "description": "fortyGigE0/36", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet20": { + "lanes": "41,42,43,44", + "alias": "fortyGigE0/20", + "index": "5", + "speed": "40000", + "description": "fortyGigE0/20", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet108": { + "lanes": "85,86,87,88", + "alias": "fortyGigE0/108", + "index": "27", + "speed": "40000", + "description": "fortyGigE0/108", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet48": { + "lanes": "53,54,55,56", + "alias": "fortyGigE0/48", + "index": "12", + "speed": "40000", + "description": "fortyGigE0/48", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet80": { + "lanes": "109,110,111,112", + "alias": "fortyGigE0/80", + "index": "20", + "speed": "40000", + "description": "fortyGigE0/80", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet8": { + "lanes": "33,34,35,36", + "alias": "fortyGigE0/8", + "index": "2", + "speed": "40000", + "description": "ARISTA03T3:Ethernet1", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet112": { + "lanes": "93,94,95,96", + "alias": "fortyGigE0/112", + "index": "28", + "speed": "40000", + "description": "fortyGigE0/112", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet28": { + "lanes": "5,6,7,8", + "alias": "fortyGigE0/28", + "index": "7", + "speed": "40000", + "description": "fortyGigE0/28", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet68": { + "lanes": "65,66,67,68", + "alias": "fortyGigE0/68", + "index": "17", + "speed": "40000", + "description": "fortyGigE0/68", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet60": { + "lanes": "61,62,63,64", + "alias": "fortyGigE0/60", + "index": "15", + "speed": "40000", + "description": "fortyGigE0/60", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet116": { + "lanes": "89,90,91,92", + "alias": "fortyGigE0/116", + "index": "29", + "speed": "40000", + "description": "fortyGigE0/116", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet100": { + "lanes": "121,122,123,124", + "alias": "fortyGigE0/100", + "index": "25", + "speed": "40000", + "description": "fortyGigE0/100", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet64": { + "lanes": "69,70,71,72", + "alias": "fortyGigE0/64", + "index": "16", + "speed": "40000", + "description": "fortyGigE0/64", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet124": { + "lanes": "97,98,99,100", + "alias": "fortyGigE0/124", + "index": "31", + "speed": "40000", + "description": "fortyGigE0/124", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet88": { + "lanes": "113,114,115,116", + "alias": "fortyGigE0/88", + "index": "22", + "speed": "40000", + "description": "fortyGigE0/88", + "mtu": "9100", + "pfc_asym": "off" + } + }, + "BUFFER_PROFILE": { + "egress_lossy_profile": { + "pool": "egress_lossy_pool", + "size": "1518", + "dynamic_th": "3" + }, + "ingress_lossy_profile": { + "pool": "ingress_lossless_pool", + "size": "0", + "dynamic_th": "3" + }, + "egress_lossless_profile": { + "pool": "egress_lossless_pool", + "size": "0", + "static_th": "12766208" + } + }, + "ACL_TABLE": { + "SNMP_ACL": { + "policy_desc": "SNMP_ACL", + "type": "CTRLPLANE", + "stage": "ingress", + "services": [ + "SNMP" + ] + }, + "DATAACL": { + "policy_desc": "DATAACL", + "stage": "ingress", + "ports": [ + "PortChannel0002", + "Ethernet8" + ], + "type": "L3" + }, + "SSH_ONLY": { + "policy_desc": "SSH_ONLY", + "type": "CTRLPLANE", + "stage": "ingress", + "services": [ + "SSH" + ] + }, + "EVERFLOW": { + "policy_desc": "EVERFLOW", + "stage": "ingress", + "ports": [ + "PortChannel0002", + "Ethernet8" + ], + "type": "MIRROR" + }, + "EVERFLOWV6": { + "policy_desc": "EVERFLOWV6", + "stage": "ingress", + "ports": [ + "PortChannel0002", + "Ethernet8" + ], + "type": "MIRRORV6" + } + }, + "QUEUE": { + "Ethernet8|0": { + "scheduler": "scheduler.0" + }, + "Ethernet8|5": { + "scheduler": "scheduler.0" + }, + "Ethernet4|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|5": { + "scheduler": "scheduler.0" + }, + "Ethernet4|6": { + "scheduler": "scheduler.0" + }, + "Ethernet0|0": { + "scheduler": "scheduler.0" + }, + "Ethernet0|1": { + "scheduler": "scheduler.0" + }, + "Ethernet0|2": { + "scheduler": "scheduler.0" + }, + "Ethernet0|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|1": { + "scheduler": "scheduler.0" + }, + "Ethernet4|1": { + "scheduler": "scheduler.0" + }, + "Ethernet4|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|6": { + "scheduler": "scheduler.0" + }, + "Ethernet4|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|2": { + "scheduler": "scheduler.0" + }, + "Ethernet4|2": { + "scheduler": "scheduler.0" + }, + "Ethernet8|6": { + "scheduler": "scheduler.0" + }, + "Ethernet0|5": { + "scheduler": "scheduler.0" + }, + "Ethernet0|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + } + }, + "WRED_PROFILE": { + "AZURE_LOSSLESS": { + "wred_green_enable": "true", + "wred_yellow_enable": "true", + "wred_red_enable": "true", + "ecn": "ecn_all", + "green_max_threshold": "2097152", + "green_min_threshold": "1048576", + "yellow_max_threshold": "2097152", + "yellow_min_threshold": "1048576", + "red_max_threshold": "2097152", + "red_min_threshold": "1048576", + "green_drop_probability": "5", + "yellow_drop_probability": "5", + "red_drop_probability": "5" + } + }, + "FEATURE": { + "teamd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "mgmt-framework": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "telemetry": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled", + "status": "enabled" + }, + "gbsyncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "database": { + "state": "always_enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "always_enabled", + "high_mem_alert": "disabled" + }, + "swss": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "pmon": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "sflow": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "syncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "snmp": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "bgp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "lldp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "nat": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "radv": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "dhcp_relay": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + } + }, + "DHCP_SERVER": { + "192.0.0.1": {}, + "192.0.0.2": {}, + "192.0.0.4": {}, + "192.0.0.3": {} + }, + "TELEMETRY": { + "certs": { + "server_crt": "/etc/sonic/telemetry/streamingtelemetryserver.cer", + "server_key": "/etc/sonic/telemetry/streamingtelemetryserver.key", + "ca_crt": "/etc/sonic/telemetry/dsmsroot.cer" + }, + "gnmi": { + "client_auth": "true", + "port": "50051", + "log_level": "2" + } + }, + "SCHEDULER": { + "scheduler.1": { + "type": "DWRR", + "weight": "15" + }, + "scheduler.0": { + "type": "DWRR", + "weight": "14" + } + }, + "SNMP_COMMUNITY": { + "public": { + "TYPE": "RO" + } + }, + "BUFFER_POOL": { + "egress_lossless_pool": { + "size": "12766208", + "type": "egress", + "mode": "static" + }, + "ingress_lossless_pool": { + "size": "12766208", + "type": "ingress", + "mode": "dynamic" + }, + "egress_lossy_pool": { + "size": "7326924", + "type": "egress", + "mode": "dynamic" + } + }, + "DEVICE_NEIGHBOR": { + "Ethernet4": { + "name": "ARISTA01T3", + "port": "Ethernet2" + }, + "Ethernet8": { + "name": "ARISTA03T3", + "port": "Ethernet1" + }, + "Ethernet0": { + "name": "ARISTA01T3", + "port": "Ethernet1" + }, + "Ethernet120": { + "name": "Linecard2_Asic0", + "port": "Ethernet120" + } + }, + "MGMT_PORT": { + "eth0": { + "alias": "eth0", + "admin_status": "up" + } + }, + "BUFFER_QUEUE": { + "Ethernet0|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet8|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet8|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet8|0-2": { + "profile": "egress_lossy_profile" + } + }, + "PORTCHANNEL_INTERFACE": { + "PortChannel0002": {}, + "PortChannel0002|10.0.0.0/31": {}, + "PortChannel0002|FC00::1/126": {} + }, + "LOOPBACK_INTERFACE": { + "Loopback0": {}, + "Loopback0|FC00:10::1/128": {}, + "Loopback0|10.1.0.1/32": {} + }, + "MGMT_INTERFACE": { + "eth0|fec0::ffff:afa:10/64": { + "gwaddr": "fec0::1" + }, + "eth0|10.250.0.120/24": { + "gwaddr": "10.250.0.1" + } + }, + "INTERFACE": { + "Ethernet8": {}, + "Ethernet8|10.0.0.4/31": {}, + "Ethernet8|FC00::9/126": {} + }, + "VERSIONS": { + "DATABASE": { + "VERSION": "version_2_0_0" + } + }, + "BGP_NEIGHBOR": { + "fc00::2": { + "name": "ARISTA01T3", + "local_addr": "fc00::1", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65200", + "admin_status": "up" + }, + "fc00::a": { + "name": "ARISTA03T3", + "local_addr": "fc00::9", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65201", + "admin_status": "up" + }, + "10.0.0.1": { + "name": "ARISTA01T3", + "local_addr": "10.0.0.0", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65200", + "admin_status": "up" + }, + "10.0.0.5": { + "name": "ARISTA03T3", + "local_addr": "10.0.0.4", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65201", + "admin_status": "up" + } + }, + "BGP_INTERNAL_NEIGHBOR": { + "3.3.3.2": { + "asn": "65100", + "holdtime": "180", + "keepalive": "60", + "local_addr": "3.3.3.1", + "name": "Linecard2_Asic0", + "nhopself": "0", + "rrclient": "0" + }, + "3333::3:2": { + "asn": "65100", + "holdtime": "180", + "keepalive": "60", + "local_addr": "3333::3:1", + "name": "Linecard2_Asic0", + "nhopself": "0", + "rrclient": "0" + } + }, + "DEVICE_NEIGHBOR_METADATA": { + "ARISTA03T3": { + "lo_addr": "None", + "type": "CoreRouter", + "mgmt_addr": "10.250.0.57", + "hwsku": "Arista-VM" + }, + "ARISTA01T3": { + "lo_addr": "None", + "type": "CoreRouter", + "mgmt_addr": "10.250.0.56", + "hwsku": "Arista-VM" + }, + "Linecard2_Asic0": { + "type": "spine" + } + }, + "SNMP": { + "LOCATION": { + "Location": "public" + } + }, + "TC_TO_PRIORITY_GROUP_MAP": { + "AZURE": { + "0": "0", + "1": "0", + "2": "0", + "3": "3", + "4": "4", + "5": "0", + "6": "0", + "7": "7" + } + }, + "TC_TO_QUEUE_MAP": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "PORT_QOS_MAP": { + "Ethernet4": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet8": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet0": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + } + }, + "CONSOLE_SWITCH": { + "console_mgmt": { + "enabled": "no" + } + }, + "SYSLOG_SERVER": { + "10.0.0.5": {}, + "10.0.0.6": {} + }, + "PORTCHANNEL_MEMBER": { + "PortChannel0002|Ethernet0": {}, + "PortChannel0002|Ethernet4": {} + }, + "RESTAPI": { + "config": { + "client_auth": "true", + "allow_insecure": "false", + "log_level": "trace" + }, + "certs": { + "server_crt": "/etc/sonic/credentials/restapiserver.crt", + "server_key": "/etc/sonic/credentials/restapiserver.key", + "ca_crt": "/etc/sonic/credentials/restapica.crt", + "client_crt_cname": "client.restapi.sonic" + } + }, + "NTP_SERVER": { + "10.0.0.2": {}, + "10.0.0.1": {} + }, + "PORTCHANNEL": { + "PortChannel0002": { + "members": [ + "Ethernet0", + "Ethernet4" + ], + "min_links": "2", + "mtu": "9100", + "admin_status": "up" + } + }, + "DEVICE_METADATA": { + "localhost": { + "buffer_model": "traditional", + "default_bgp_status": "up", + "default_pfcwd_status": "disable", + "bgp_asn": "65100", + "deployment_id": "1", + "region": "None", + "cloudtype": "None", + "docker_routing_config_mode": "separated", + "hostname": "Linecard1", + "hwsku": "Force10-S6000", + "type": "Spine", + "synchronous_mode": "enable", + "platform": "x86_64-kvm_x86_64-r0", + "mac": "52:54:00:75:65:00", + "switch_type": "voq", + "max_cores": "48", + "switch_id": "0", + "asic_name": "Asic0" + } + }, + "DSCP_TO_TC_MAP": { + "AZURE": { + "0": "1", + "1": "1", + "2": "1", + "3": "3", + "4": "4", + "5": "2", + "6": "1", + "7": "1", + "8": "0", + "9": "1", + "10": "1", + "11": "1", + "12": "1", + "13": "1", + "14": "1", + "15": "1", + "16": "1", + "17": "1", + "18": "1", + "19": "1", + "20": "1", + "21": "1", + "22": "1", + "23": "1", + "24": "1", + "25": "1", + "26": "1", + "27": "1", + "28": "1", + "29": "1", + "30": "1", + "31": "1", + "32": "1", + "33": "1", + "34": "1", + "35": "1", + "36": "1", + "37": "1", + "38": "1", + "39": "1", + "40": "1", + "41": "1", + "42": "1", + "43": "1", + "44": "1", + "45": "1", + "46": "5", + "47": "1", + "48": "6", + "49": "1", + "50": "1", + "51": "1", + "52": "1", + "53": "1", + "54": "1", + "55": "1", + "56": "1", + "57": "1", + "58": "1", + "59": "1", + "60": "1", + "61": "1", + "62": "1", + "63": "1" + } + }, + "TACPLUS_SERVER": { + "10.0.0.8": { + "priority": "1", + "tcp_port": "49" + }, + "10.0.0.9": { + "priority": "1", + "tcp_port": "49" + } + }, + "BUFFER_PG": { + "Ethernet8|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet4|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet0|0": { + "profile": "ingress_lossy_profile" + } + }, + "CRM": { + "Config": { + "polling_interval": "300", + "ipv4_route_threshold_type": "percentage", + "ipv4_route_low_threshold": "70", + "ipv4_route_high_threshold": "85", + "ipv6_route_threshold_type": "percentage", + "ipv6_route_low_threshold": "70", + "ipv6_route_high_threshold": "85", + "ipv4_nexthop_threshold_type": "percentage", + "ipv4_nexthop_low_threshold": "70", + "ipv4_nexthop_high_threshold": "85", + "ipv6_nexthop_threshold_type": "percentage", + "ipv6_nexthop_low_threshold": "70", + "ipv6_nexthop_high_threshold": "85", + "ipv4_neighbor_threshold_type": "percentage", + "ipv4_neighbor_low_threshold": "70", + "ipv4_neighbor_high_threshold": "85", + "ipv6_neighbor_threshold_type": "percentage", + "ipv6_neighbor_low_threshold": "70", + "ipv6_neighbor_high_threshold": "85", + "nexthop_group_member_threshold_type": "percentage", + "nexthop_group_member_low_threshold": "70", + "nexthop_group_member_high_threshold": "85", + "nexthop_group_threshold_type": "percentage", + "nexthop_group_low_threshold": "70", + "nexthop_group_high_threshold": "85", + "acl_table_threshold_type": "percentage", + "acl_table_low_threshold": "70", + "acl_table_high_threshold": "85", + "acl_group_threshold_type": "percentage", + "acl_group_low_threshold": "70", + "acl_group_high_threshold": "85", + "acl_entry_threshold_type": "percentage", + "acl_entry_low_threshold": "70", + "acl_entry_high_threshold": "85", + "acl_counter_threshold_type": "percentage", + "acl_counter_low_threshold": "70", + "acl_counter_high_threshold": "85", + "fdb_entry_threshold_type": "percentage", + "fdb_entry_low_threshold": "70", + "fdb_entry_high_threshold": "85", + "snat_entry_threshold_type": "percentage", + "snat_entry_low_threshold": "70", + "snat_entry_high_threshold": "85", + "dnat_entry_threshold_type": "percentage", + "dnat_entry_low_threshold": "70", + "dnat_entry_high_threshold": "85", + "ipmc_entry_threshold_type": "percentage", + "ipmc_entry_low_threshold": "70", + "ipmc_entry_high_threshold": "85" + } + }, + "CABLE_LENGTH": { + "AZURE": { + "Ethernet96": "300m", + "Ethernet40": "300m", + "Ethernet120": "300m", + "Ethernet0": "300m", + "Ethernet104": "300m", + "Ethernet12": "300m", + "Ethernet24": "300m", + "Ethernet52": "300m", + "Ethernet16": "300m", + "Ethernet92": "300m", + "Ethernet72": "300m", + "Ethernet76": "300m", + "Ethernet32": "300m", + "Ethernet4": "300m", + "Ethernet56": "300m", + "Ethernet44": "300m", + "Ethernet84": "300m", + "Ethernet20": "300m", + "Ethernet36": "300m", + "Ethernet108": "300m", + "Ethernet48": "300m", + "Ethernet80": "300m", + "Ethernet8": "300m", + "Ethernet112": "300m", + "Ethernet28": "300m", + "Ethernet68": "300m", + "Ethernet60": "300m", + "Ethernet116": "300m", + "Ethernet100": "300m", + "Ethernet64": "300m", + "Ethernet88": "300m", + "Ethernet124": "300m" + } + }, + "MAP_PFC_PRIORITY_TO_QUEUE": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "KDUMP": { + "config": { + "enabled": "false", + "num_dumps": "3", + "memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M" + } + } +} diff --git a/tests/vs_voq_cfgs/vlab-t2-02_qos_new_dbfmt_config_db.json b/tests/vs_voq_cfgs/vlab-t2-02_qos_new_dbfmt_config_db.json new file mode 100644 index 00000000000..38829bf64fe --- /dev/null +++ b/tests/vs_voq_cfgs/vlab-t2-02_qos_new_dbfmt_config_db.json @@ -0,0 +1,1794 @@ +{ + "SYSTEM_PORT": { + "Linecard1|Asic0|Asic0": { + "system_port_id": "0", + "switch_id": "0", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard1|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "1", + "switch_id": "0", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard1|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "2", + "switch_id": "0", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard1|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "3", + "switch_id": "0", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard1|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "4", + "switch_id": "0", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard1|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "5", + "switch_id": "0", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard1|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "6", + "switch_id": "0", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard1|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "7", + "switch_id": "0", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard1|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "8", + "switch_id": "0", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard1|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "9", + "switch_id": "0", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard1|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "10", + "switch_id": "0", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard1|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "11", + "switch_id": "0", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard1|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "12", + "switch_id": "0", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard1|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "13", + "switch_id": "0", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard1|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "14", + "switch_id": "0", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard1|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "15", + "switch_id": "0", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard1|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "16", + "switch_id": "0", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard1|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "17", + "switch_id": "0", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard1|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "18", + "switch_id": "0", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard1|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "19", + "switch_id": "0", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard1|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "20", + "switch_id": "0", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard1|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "21", + "switch_id": "0", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard1|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "22", + "switch_id": "0", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard1|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "23", + "switch_id": "0", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard1|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "24", + "switch_id": "0", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard1|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "25", + "switch_id": "0", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard1|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "26", + "switch_id": "0", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard1|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "27", + "switch_id": "0", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard1|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "28", + "switch_id": "0", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard1|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "29", + "switch_id": "0", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard1|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "30", + "switch_id": "0", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard1|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "31", + "switch_id": "0", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard1|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "32", + "switch_id": "0", + "core_index": "1", + "core_port_index": "16" + }, + "Linecard2|Asic0|Asic0": { + "system_port_id": "192", + "switch_id": "2", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard2|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "33", + "switch_id": "2", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard2|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "34", + "switch_id": "2", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard2|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "35", + "switch_id": "2", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard2|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "36", + "switch_id": "2", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard2|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "37", + "switch_id": "2", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard2|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "38", + "switch_id": "2", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard2|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "39", + "switch_id": "2", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard2|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "40", + "switch_id": "2", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard2|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "41", + "switch_id": "2", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard2|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "42", + "switch_id": "2", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard2|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "43", + "switch_id": "2", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard2|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "44", + "switch_id": "2", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard2|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "45", + "switch_id": "2", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard2|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "46", + "switch_id": "2", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard2|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "47", + "switch_id": "2", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard2|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "48", + "switch_id": "2", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard2|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "49", + "switch_id": "2", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard2|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "50", + "switch_id": "2", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard2|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "51", + "switch_id": "2", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard2|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "52", + "switch_id": "2", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard2|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "53", + "switch_id": "2", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard2|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "54", + "switch_id": "2", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard2|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "55", + "switch_id": "2", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard2|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "56", + "switch_id": "2", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard2|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "57", + "switch_id": "2", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard2|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "58", + "switch_id": "2", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard2|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "59", + "switch_id": "2", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard2|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "60", + "switch_id": "2", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard2|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "61", + "switch_id": "2", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard2|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "62", + "switch_id": "2", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard2|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "63", + "switch_id": "2", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard2|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "64", + "switch_id": "2", + "core_index": "1", + "core_port_index": "16" + }, + "Linecard3|Asic0|Asic0": { + "system_port_id": "384", + "switch_id": "4", + "core_index": "0", + "core_port_index": "0", + "speed": "40000" + }, + "Linecard3|Asic0|Ethernet0": { + "speed": "40000", + "system_port_id": "65", + "switch_id": "4", + "core_index": "0", + "core_port_index": "1" + }, + "Linecard3|Asic0|Ethernet4": { + "speed": "40000", + "system_port_id": "66", + "switch_id": "4", + "core_index": "0", + "core_port_index": "2" + }, + "Linecard3|Asic0|Ethernet8": { + "speed": "40000", + "system_port_id": "67", + "switch_id": "4", + "core_index": "0", + "core_port_index": "3" + }, + "Linecard3|Asic0|Ethernet12": { + "speed": "40000", + "system_port_id": "68", + "switch_id": "4", + "core_index": "0", + "core_port_index": "4" + }, + "Linecard3|Asic0|Ethernet16": { + "speed": "40000", + "system_port_id": "69", + "switch_id": "4", + "core_index": "0", + "core_port_index": "5" + }, + "Linecard3|Asic0|Ethernet20": { + "speed": "40000", + "system_port_id": "70", + "switch_id": "4", + "core_index": "0", + "core_port_index": "6" + }, + "Linecard3|Asic0|Ethernet24": { + "speed": "40000", + "system_port_id": "71", + "switch_id": "4", + "core_index": "0", + "core_port_index": "7" + }, + "Linecard3|Asic0|Ethernet28": { + "speed": "40000", + "system_port_id": "72", + "switch_id": "4", + "core_index": "0", + "core_port_index": "8" + }, + "Linecard3|Asic0|Ethernet32": { + "speed": "40000", + "system_port_id": "73", + "switch_id": "4", + "core_index": "0", + "core_port_index": "9" + }, + "Linecard3|Asic0|Ethernet36": { + "speed": "40000", + "system_port_id": "74", + "switch_id": "4", + "core_index": "0", + "core_port_index": "10" + }, + "Linecard3|Asic0|Ethernet40": { + "speed": "40000", + "system_port_id": "75", + "switch_id": "4", + "core_index": "0", + "core_port_index": "11" + }, + "Linecard3|Asic0|Ethernet44": { + "speed": "40000", + "system_port_id": "76", + "switch_id": "4", + "core_index": "0", + "core_port_index": "12" + }, + "Linecard3|Asic0|Ethernet48": { + "speed": "40000", + "system_port_id": "77", + "switch_id": "4", + "core_index": "0", + "core_port_index": "13" + }, + "Linecard3|Asic0|Ethernet52": { + "speed": "40000", + "system_port_id": "78", + "switch_id": "4", + "core_index": "0", + "core_port_index": "14" + }, + "Linecard3|Asic0|Ethernet56": { + "speed": "40000", + "system_port_id": "79", + "switch_id": "4", + "core_index": "0", + "core_port_index": "15" + }, + "Linecard3|Asic0|Ethernet60": { + "speed": "40000", + "system_port_id": "80", + "switch_id": "4", + "core_index": "0", + "core_port_index": "16" + }, + "Linecard3|Asic0|Ethernet64": { + "speed": "40000", + "system_port_id": "81", + "switch_id": "4", + "core_index": "1", + "core_port_index": "1" + }, + "Linecard3|Asic0|Ethernet68": { + "speed": "40000", + "system_port_id": "82", + "switch_id": "4", + "core_index": "1", + "core_port_index": "2" + }, + "Linecard3|Asic0|Ethernet72": { + "speed": "40000", + "system_port_id": "83", + "switch_id": "4", + "core_index": "1", + "core_port_index": "3" + }, + "Linecard3|Asic0|Ethernet76": { + "speed": "40000", + "system_port_id": "84", + "switch_id": "4", + "core_index": "1", + "core_port_index": "4" + }, + "Linecard3|Asic0|Ethernet80": { + "speed": "40000", + "system_port_id": "85", + "switch_id": "4", + "core_index": "1", + "core_port_index": "5" + }, + "Linecard3|Asic0|Ethernet84": { + "speed": "40000", + "system_port_id": "86", + "switch_id": "4", + "core_index": "1", + "core_port_index": "6" + }, + "Linecard3|Asic0|Ethernet88": { + "speed": "40000", + "system_port_id": "87", + "switch_id": "4", + "core_index": "1", + "core_port_index": "7" + }, + "Linecard3|Asic0|Ethernet92": { + "speed": "40000", + "system_port_id": "88", + "switch_id": "4", + "core_index": "1", + "core_port_index": "8" + }, + "Linecard3|Asic0|Ethernet96": { + "speed": "40000", + "system_port_id": "89", + "switch_id": "4", + "core_index": "1", + "core_port_index": "9" + }, + "Linecard3|Asic0|Ethernet100": { + "speed": "40000", + "system_port_id": "90", + "switch_id": "4", + "core_index": "1", + "core_port_index": "10" + }, + "Linecard3|Asic0|Ethernet104": { + "speed": "40000", + "system_port_id": "91", + "switch_id": "4", + "core_index": "1", + "core_port_index": "11" + }, + "Linecard3|Asic0|Ethernet108": { + "speed": "40000", + "system_port_id": "92", + "switch_id": "4", + "core_index": "1", + "core_port_index": "12" + }, + "Linecard3|Asic0|Ethernet112": { + "speed": "40000", + "system_port_id": "93", + "switch_id": "4", + "core_index": "1", + "core_port_index": "13" + }, + "Linecard3|Asic0|Ethernet116": { + "speed": "40000", + "system_port_id": "94", + "switch_id": "4", + "core_index": "1", + "core_port_index": "14" + }, + "Linecard3|Asic0|Ethernet120": { + "speed": "40000", + "system_port_id": "95", + "switch_id": "4", + "core_index": "1", + "core_port_index": "15" + }, + "Linecard3|Asic0|Ethernet124": { + "speed": "40000", + "system_port_id": "96", + "switch_id": "4", + "core_index": "1", + "core_port_index": "16" + } + }, + "VOQ_INBAND_INTERFACE": { + "Ethernet120": { + "inband_type": "port" + }, + "Ethernet120|3.3.3.2/24": {}, + "Ethernet120|3333::3:2/126": {} + }, + "PORT": { + "Ethernet44": { + "lanes": "21,22,23,24", + "alias": "fortyGigE0/44", + "index": "11", + "speed": "40000", + "description": "fortyGigE0/44", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet112": { + "lanes": "93,94,95,96", + "alias": "fortyGigE0/112", + "index": "28", + "speed": "40000", + "description": "fortyGigE0/112", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet100": { + "lanes": "121,122,123,124", + "alias": "fortyGigE0/100", + "index": "25", + "speed": "40000", + "description": "fortyGigE0/100", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet88": { + "lanes": "113,114,115,116", + "alias": "fortyGigE0/88", + "index": "22", + "speed": "40000", + "description": "fortyGigE0/88", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet12": { + "lanes": "37,38,39,40", + "alias": "fortyGigE0/12", + "index": "3", + "speed": "40000", + "description": "fortyGigE0/12", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet0": { + "lanes": "25,26,27,28", + "alias": "fortyGigE0/0", + "index": "0", + "speed": "40000", + "description": "ARISTA01T1:Ethernet1", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet8": { + "lanes": "33,34,35,36", + "alias": "fortyGigE0/8", + "index": "2", + "speed": "40000", + "description": "ARISTA03T1:Ethernet1", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet92": { + "lanes": "117,118,119,120", + "alias": "fortyGigE0/92", + "index": "23", + "speed": "40000", + "description": "fortyGigE0/92", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet116": { + "lanes": "89,90,91,92", + "alias": "fortyGigE0/116", + "index": "29", + "speed": "40000", + "description": "fortyGigE0/116", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet40": { + "lanes": "17,18,19,20", + "alias": "fortyGigE0/40", + "index": "10", + "speed": "40000", + "description": "fortyGigE0/40", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet104": { + "lanes": "81,82,83,84", + "alias": "fortyGigE0/104", + "index": "26", + "speed": "40000", + "description": "fortyGigE0/104", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet32": { + "lanes": "13,14,15,16", + "alias": "fortyGigE0/32", + "index": "8", + "speed": "40000", + "description": "fortyGigE0/32", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet64": { + "lanes": "69,70,71,72", + "alias": "fortyGigE0/64", + "index": "16", + "speed": "40000", + "description": "fortyGigE0/64", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet68": { + "lanes": "65,66,67,68", + "alias": "fortyGigE0/68", + "index": "17", + "speed": "40000", + "description": "fortyGigE0/68", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet120": { + "lanes": "101,102,103,104", + "alias": "fortyGigE0/120", + "index": "30", + "speed": "40000", + "description": "fortyGigE0/120", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet48": { + "lanes": "53,54,55,56", + "alias": "fortyGigE0/48", + "index": "12", + "speed": "40000", + "description": "fortyGigE0/48", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet4": { + "lanes": "29,30,31,32", + "alias": "fortyGigE0/4", + "index": "1", + "speed": "40000", + "description": "ARISTA01T1:Ethernet2", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet76": { + "lanes": "77,78,79,80", + "alias": "fortyGigE0/76", + "index": "19", + "speed": "40000", + "description": "fortyGigE0/76", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet72": { + "lanes": "73,74,75,76", + "alias": "fortyGigE0/72", + "index": "18", + "speed": "40000", + "description": "fortyGigE0/72", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet28": { + "lanes": "5,6,7,8", + "alias": "fortyGigE0/28", + "index": "7", + "speed": "40000", + "description": "fortyGigE0/28", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet16": { + "lanes": "45,46,47,48", + "alias": "fortyGigE0/16", + "index": "4", + "speed": "40000", + "description": "fortyGigE0/16", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet24": { + "lanes": "1,2,3,4", + "alias": "fortyGigE0/24", + "index": "6", + "speed": "40000", + "description": "fortyGigE0/24", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet52": { + "lanes": "49,50,51,52", + "alias": "fortyGigE0/52", + "index": "13", + "speed": "40000", + "description": "fortyGigE0/52", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet96": { + "lanes": "125,126,127,128", + "alias": "fortyGigE0/96", + "index": "24", + "speed": "40000", + "description": "fortyGigE0/96", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet124": { + "lanes": "97,98,99,100", + "alias": "fortyGigE0/124", + "index": "31", + "speed": "40000", + "description": "fortyGigE0/124", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet56": { + "lanes": "57,58,59,60", + "alias": "fortyGigE0/56", + "index": "14", + "speed": "40000", + "description": "fortyGigE0/56", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet60": { + "lanes": "61,62,63,64", + "alias": "fortyGigE0/60", + "index": "15", + "speed": "40000", + "description": "fortyGigE0/60", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet84": { + "lanes": "105,106,107,108", + "alias": "fortyGigE0/84", + "index": "21", + "speed": "40000", + "description": "fortyGigE0/84", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet20": { + "lanes": "41,42,43,44", + "alias": "fortyGigE0/20", + "index": "5", + "speed": "40000", + "description": "fortyGigE0/20", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet36": { + "lanes": "9,10,11,12", + "alias": "fortyGigE0/36", + "index": "9", + "speed": "40000", + "description": "fortyGigE0/36", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet80": { + "lanes": "109,110,111,112", + "alias": "fortyGigE0/80", + "index": "20", + "speed": "40000", + "description": "fortyGigE0/80", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet108": { + "lanes": "85,86,87,88", + "alias": "fortyGigE0/108", + "index": "27", + "speed": "40000", + "description": "fortyGigE0/108", + "mtu": "9100", + "pfc_asym": "off" + } + }, + "BUFFER_QUEUE": { + "Ethernet4|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet8|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet4|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet8|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet8|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|3-4": { + "profile": "egress_lossless_profile" + } + }, + "QUEUE": { + "Ethernet4|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|1": { + "scheduler": "scheduler.0" + }, + "Ethernet8|6": { + "scheduler": "scheduler.0" + }, + "Ethernet0|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|5": { + "scheduler": "scheduler.0" + }, + "Ethernet8|1": { + "scheduler": "scheduler.0" + }, + "Ethernet4|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|2": { + "scheduler": "scheduler.0" + }, + "Ethernet0|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|2": { + "scheduler": "scheduler.0" + }, + "Ethernet4|1": { + "scheduler": "scheduler.0" + }, + "Ethernet4|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|5": { + "scheduler": "scheduler.0" + }, + "Ethernet0|6": { + "scheduler": "scheduler.0" + }, + "Ethernet8|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|5": { + "scheduler": "scheduler.0" + }, + "Ethernet8|0": { + "scheduler": "scheduler.0" + }, + "Ethernet8|2": { + "scheduler": "scheduler.0" + }, + "Ethernet4|6": { + "scheduler": "scheduler.0" + }, + "Ethernet8|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + } + }, + "FEATURE": { + "mgmt-framework": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "pmon": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "nat": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "radv": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "syncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "bgp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "teamd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "sflow": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "gbsyncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "database": { + "state": "always_enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "always_enabled", + "high_mem_alert": "disabled" + }, + "dhcp_relay": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "swss": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "telemetry": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled", + "status": "enabled" + }, + "snmp": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "lldp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + } + }, + "PORTCHANNEL_MEMBER": { + "PortChannel0001|Ethernet0": {}, + "PortChannel0001|Ethernet4": {} + }, + "DEVICE_NEIGHBOR": { + "Ethernet8": { + "name": "ARISTA03T1", + "port": "Ethernet1" + }, + "Ethernet4": { + "name": "ARISTA01T1", + "port": "Ethernet2" + }, + "Ethernet0": { + "name": "ARISTA01T1", + "port": "Ethernet1" + }, + "Ethernet120": { + "name": "Linecard1_Asic0", + "port": "Ethernet120" + } + }, + "PORT_QOS_MAP": { + "Ethernet8": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet4": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet0": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + } + }, + "BUFFER_POOL": { + "egress_lossy_pool": { + "size": "7326924", + "type": "egress", + "mode": "dynamic" + }, + "ingress_lossless_pool": { + "size": "12766208", + "type": "ingress", + "mode": "dynamic" + }, + "egress_lossless_pool": { + "size": "12766208", + "type": "egress", + "mode": "static" + } + }, + "CABLE_LENGTH": { + "AZURE": { + "Ethernet44": "300m", + "Ethernet112": "300m", + "Ethernet100": "300m", + "Ethernet88": "300m", + "Ethernet12": "300m", + "Ethernet0": "300m", + "Ethernet8": "300m", + "Ethernet92": "300m", + "Ethernet116": "300m", + "Ethernet40": "300m", + "Ethernet104": "300m", + "Ethernet32": "300m", + "Ethernet64": "300m", + "Ethernet68": "300m", + "Ethernet120": "300m", + "Ethernet48": "300m", + "Ethernet4": "300m", + "Ethernet76": "300m", + "Ethernet72": "300m", + "Ethernet28": "300m", + "Ethernet16": "300m", + "Ethernet24": "300m", + "Ethernet52": "300m", + "Ethernet96": "300m", + "Ethernet124": "300m", + "Ethernet56": "300m", + "Ethernet60": "300m", + "Ethernet20": "300m", + "Ethernet84": "300m", + "Ethernet36": "300m", + "Ethernet80": "300m", + "Ethernet108": "300m" + } + }, + "TACPLUS_SERVER": { + "10.0.0.8": { + "priority": "1", + "tcp_port": "49" + }, + "10.0.0.9": { + "priority": "1", + "tcp_port": "49" + } + }, + "TELEMETRY": { + "gnmi": { + "client_auth": "true", + "port": "50051", + "log_level": "2" + }, + "certs": { + "server_crt": "/etc/sonic/telemetry/streamingtelemetryserver.cer", + "server_key": "/etc/sonic/telemetry/streamingtelemetryserver.key", + "ca_crt": "/etc/sonic/telemetry/dsmsroot.cer" + } + }, + "SCHEDULER": { + "scheduler.0": { + "type": "DWRR", + "weight": "14" + }, + "scheduler.1": { + "type": "DWRR", + "weight": "15" + } + }, + "DEVICE_METADATA": { + "localhost": { + "buffer_model": "traditional", + "default_bgp_status": "up", + "default_pfcwd_status": "disable", + "bgp_asn": "65100", + "deployment_id": "1", + "region": "None", + "cloudtype": "None", + "docker_routing_config_mode": "separated", + "hostname": "Linecard2", + "hwsku": "Force10-S6000", + "type": "Spine", + "synchronous_mode": "enable", + "platform": "x86_64-kvm_x86_64-r0", + "mac": "52:54:00:75:65:02", + "switch_type": "voq", + "max_cores": "48", + "switch_id": "2", + "asic_name": "Asic1" + } + }, + "LOOPBACK_INTERFACE": { + "Loopback0": {}, + "Loopback0|FC00:10::2/128": {}, + "Loopback0|10.1.0.2/32": {} + }, + "TC_TO_PRIORITY_GROUP_MAP": { + "AZURE": { + "0": "0", + "1": "0", + "2": "0", + "3": "3", + "4": "4", + "5": "0", + "6": "0", + "7": "7" + } + }, + "SYSLOG_SERVER": { + "10.0.0.5": {}, + "10.0.0.6": {} + }, + "PORTCHANNEL": { + "PortChannel0001": { + "members": [ + "Ethernet0", + "Ethernet4" + ], + "min_links": "2", + "mtu": "9100", + "admin_status": "up" + } + }, + "NTP_SERVER": { + "10.0.0.1": {}, + "10.0.0.2": {} + }, + "ACL_TABLE": { + "SSH_ONLY": { + "policy_desc": "SSH_ONLY", + "type": "CTRLPLANE", + "stage": "ingress", + "services": [ + "SSH" + ] + }, + "EVERFLOWV6": { + "policy_desc": "EVERFLOWV6", + "stage": "ingress", + "ports": [ + "PortChannel0001", + "Ethernet8" + ], + "type": "MIRRORV6" + }, + "SNMP_ACL": { + "policy_desc": "SNMP_ACL", + "type": "CTRLPLANE", + "stage": "ingress", + "services": [ + "SNMP" + ] + }, + "DATAACL": { + "policy_desc": "DATAACL", + "stage": "ingress", + "ports": [ + "PortChannel0001", + "Ethernet8" + ], + "type": "L3" + }, + "EVERFLOW": { + "policy_desc": "EVERFLOW", + "stage": "ingress", + "ports": [ + "PortChannel0001", + "Ethernet8" + ], + "type": "MIRROR" + } + }, + "BGP_NEIGHBOR": { + "fc00::e": { + "name": "ARISTA01T1", + "local_addr": "fc00::d", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65000", + "admin_status": "up" + }, + "10.0.0.7": { + "name": "ARISTA01T1", + "local_addr": "10.0.0.6", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65000", + "admin_status": "up" + }, + "10.0.0.11": { + "name": "ARISTA03T1", + "local_addr": "10.0.0.10", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65000", + "admin_status": "up" + }, + "fc00::16": { + "name": "ARISTA03T1", + "local_addr": "fc00::15", + "rrclient": "0", + "holdtime": "10", + "keepalive": "3", + "nhopself": "0", + "asn": "65000", + "admin_status": "up" + } + }, + "BGP_INTERNAL_NEIGHBOR": { + "3.3.3.1": { + "asn": "65100", + "holdtime": "180", + "keepalive": "60", + "local_addr": "3.3.3.2", + "name": "Linecard1_Asic0", + "nhopself": "0", + "rrclient": "0" + }, + "3333::3:1": { + "asn": "65100", + "holdtime": "180", + "keepalive": "60", + "local_addr": "3333::3:2", + "name": "Linecard1_Asic0", + "nhopself": "0", + "rrclient": "0" + } + }, + "INTERFACE": { + "Ethernet8": {}, + "Ethernet8|10.0.0.10/31": {}, + "Ethernet8|FC00::15/126": {} + }, + "SNMP": { + "LOCATION": { + "Location": "public" + } + }, + "CRM": { + "Config": { + "polling_interval": "300", + "ipv4_route_threshold_type": "percentage", + "ipv4_route_low_threshold": "70", + "ipv4_route_high_threshold": "85", + "ipv6_route_threshold_type": "percentage", + "ipv6_route_low_threshold": "70", + "ipv6_route_high_threshold": "85", + "ipv4_nexthop_threshold_type": "percentage", + "ipv4_nexthop_low_threshold": "70", + "ipv4_nexthop_high_threshold": "85", + "ipv6_nexthop_threshold_type": "percentage", + "ipv6_nexthop_low_threshold": "70", + "ipv6_nexthop_high_threshold": "85", + "ipv4_neighbor_threshold_type": "percentage", + "ipv4_neighbor_low_threshold": "70", + "ipv4_neighbor_high_threshold": "85", + "ipv6_neighbor_threshold_type": "percentage", + "ipv6_neighbor_low_threshold": "70", + "ipv6_neighbor_high_threshold": "85", + "nexthop_group_member_threshold_type": "percentage", + "nexthop_group_member_low_threshold": "70", + "nexthop_group_member_high_threshold": "85", + "nexthop_group_threshold_type": "percentage", + "nexthop_group_low_threshold": "70", + "nexthop_group_high_threshold": "85", + "acl_table_threshold_type": "percentage", + "acl_table_low_threshold": "70", + "acl_table_high_threshold": "85", + "acl_group_threshold_type": "percentage", + "acl_group_low_threshold": "70", + "acl_group_high_threshold": "85", + "acl_entry_threshold_type": "percentage", + "acl_entry_low_threshold": "70", + "acl_entry_high_threshold": "85", + "acl_counter_threshold_type": "percentage", + "acl_counter_low_threshold": "70", + "acl_counter_high_threshold": "85", + "fdb_entry_threshold_type": "percentage", + "fdb_entry_low_threshold": "70", + "fdb_entry_high_threshold": "85", + "snat_entry_threshold_type": "percentage", + "snat_entry_low_threshold": "70", + "snat_entry_high_threshold": "85", + "dnat_entry_threshold_type": "percentage", + "dnat_entry_low_threshold": "70", + "dnat_entry_high_threshold": "85", + "ipmc_entry_threshold_type": "percentage", + "ipmc_entry_low_threshold": "70", + "ipmc_entry_high_threshold": "85" + } + }, + "BUFFER_PROFILE": { + "ingress_lossy_profile": { + "pool": "ingress_lossless_pool", + "size": "0", + "dynamic_th": "3" + }, + "egress_lossless_profile": { + "pool": "egress_lossless_pool", + "size": "0", + "static_th": "12766208" + }, + "egress_lossy_profile": { + "pool": "egress_lossy_pool", + "size": "1518", + "dynamic_th": "3" + } + }, + "SNMP_COMMUNITY": { + "public": { + "TYPE": "RO" + } + }, + "BUFFER_PG": { + "Ethernet0|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet8|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet4|0": { + "profile": "ingress_lossy_profile" + } + }, + "DHCP_SERVER": { + "192.0.0.2": {}, + "192.0.0.3": {}, + "192.0.0.1": {}, + "192.0.0.4": {} + }, + "DSCP_TO_TC_MAP": { + "AZURE": { + "0": "1", + "1": "1", + "2": "1", + "3": "3", + "4": "4", + "5": "2", + "6": "1", + "7": "1", + "8": "0", + "9": "1", + "10": "1", + "11": "1", + "12": "1", + "13": "1", + "14": "1", + "15": "1", + "16": "1", + "17": "1", + "18": "1", + "19": "1", + "20": "1", + "21": "1", + "22": "1", + "23": "1", + "24": "1", + "25": "1", + "26": "1", + "27": "1", + "28": "1", + "29": "1", + "30": "1", + "31": "1", + "32": "1", + "33": "1", + "34": "1", + "35": "1", + "36": "1", + "37": "1", + "38": "1", + "39": "1", + "40": "1", + "41": "1", + "42": "1", + "43": "1", + "44": "1", + "45": "1", + "46": "5", + "47": "1", + "48": "6", + "49": "1", + "50": "1", + "51": "1", + "52": "1", + "53": "1", + "54": "1", + "55": "1", + "56": "1", + "57": "1", + "58": "1", + "59": "1", + "60": "1", + "61": "1", + "62": "1", + "63": "1" + } + }, + "MAP_PFC_PRIORITY_TO_QUEUE": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "PORTCHANNEL_INTERFACE": { + "PortChannel0001": {}, + "PortChannel0001|FC00::D/126": {}, + "PortChannel0001|10.0.0.6/31": {} + }, + "RESTAPI": { + "certs": { + "server_crt": "/etc/sonic/credentials/restapiserver.crt", + "server_key": "/etc/sonic/credentials/restapiserver.key", + "ca_crt": "/etc/sonic/credentials/restapica.crt", + "client_crt_cname": "client.restapi.sonic" + }, + "config": { + "client_auth": "true", + "allow_insecure": "false", + "log_level": "trace" + } + }, + "MGMT_INTERFACE": { + "eth0|fec0::ffff:afa:11/64": { + "gwaddr": "fec0::1" + }, + "eth0|10.250.0.121/24": { + "gwaddr": "10.250.0.1" + } + }, + "DEVICE_NEIGHBOR_METADATA": { + "ARISTA03T1": { + "lo_addr": "None", + "type": "LeafRouter", + "mgmt_addr": "10.250.0.59", + "hwsku": "Arista-VM" + }, + "ARISTA01T1": { + "lo_addr": "None", + "type": "LeafRouter", + "mgmt_addr": "10.250.0.58", + "hwsku": "Arista-VM" + }, + "Linecard1_Asic0": { + "type": "spine" + } + }, + "WRED_PROFILE": { + "AZURE_LOSSLESS": { + "wred_green_enable": "true", + "wred_yellow_enable": "true", + "wred_red_enable": "true", + "ecn": "ecn_all", + "green_max_threshold": "2097152", + "green_min_threshold": "1048576", + "yellow_max_threshold": "2097152", + "yellow_min_threshold": "1048576", + "red_max_threshold": "2097152", + "red_min_threshold": "1048576", + "green_drop_probability": "5", + "yellow_drop_probability": "5", + "red_drop_probability": "5" + } + }, + "VERSIONS": { + "DATABASE": { + "VERSION": "version_2_0_0" + } + }, + "CONSOLE_SWITCH": { + "console_mgmt": { + "enabled": "no" + } + }, + "TC_TO_QUEUE_MAP": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "MGMT_PORT": { + "eth0": { + "alias": "eth0", + "admin_status": "up" + } + }, + "KDUMP": { + "config": { + "enabled": "false", + "num_dumps": "3", + "memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M" + } + } +} diff --git a/tests/vs_voq_cfgs/vlab-t2-sup_qos_new_dbfmt_config_db.json b/tests/vs_voq_cfgs/vlab-t2-sup_qos_new_dbfmt_config_db.json new file mode 100644 index 00000000000..195aa6b3fd4 --- /dev/null +++ b/tests/vs_voq_cfgs/vlab-t2-sup_qos_new_dbfmt_config_db.json @@ -0,0 +1,2130 @@ +{ + "PORT_QOS_MAP": { + "Ethernet12": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet52": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet40": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet104": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet68": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet48": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet76": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet72": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet64": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet120": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet24": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet4": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet124": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet28": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet108": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet84": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet116": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet88": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet92": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet0": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet20": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet96": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet36": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet8": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet112": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet16": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet44": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet56": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet100": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet32": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet80": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + }, + "Ethernet60": { + "dscp_to_tc_map": "AZURE", + "tc_to_queue_map": "AZURE", + "tc_to_pg_map": "AZURE", + "pfc_to_queue_map": "AZURE", + "pfc_enable": "3,4" + } + }, + "QUEUE": { + "Ethernet80|1": { + "scheduler": "scheduler.0" + }, + "Ethernet48|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet116|6": { + "scheduler": "scheduler.0" + }, + "Ethernet64|5": { + "scheduler": "scheduler.0" + }, + "Ethernet88|2": { + "scheduler": "scheduler.0" + }, + "Ethernet48|5": { + "scheduler": "scheduler.0" + }, + "Ethernet120|1": { + "scheduler": "scheduler.0" + }, + "Ethernet24|0": { + "scheduler": "scheduler.0" + }, + "Ethernet16|0": { + "scheduler": "scheduler.0" + }, + "Ethernet36|6": { + "scheduler": "scheduler.0" + }, + "Ethernet88|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet104|2": { + "scheduler": "scheduler.0" + }, + "Ethernet84|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet60|1": { + "scheduler": "scheduler.0" + }, + "Ethernet120|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet56|5": { + "scheduler": "scheduler.0" + }, + "Ethernet28|1": { + "scheduler": "scheduler.0" + }, + "Ethernet124|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet60|6": { + "scheduler": "scheduler.0" + }, + "Ethernet92|5": { + "scheduler": "scheduler.0" + }, + "Ethernet44|0": { + "scheduler": "scheduler.0" + }, + "Ethernet68|0": { + "scheduler": "scheduler.0" + }, + "Ethernet92|6": { + "scheduler": "scheduler.0" + }, + "Ethernet24|5": { + "scheduler": "scheduler.0" + }, + "Ethernet0|5": { + "scheduler": "scheduler.0" + }, + "Ethernet8|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|5": { + "scheduler": "scheduler.0" + }, + "Ethernet72|0": { + "scheduler": "scheduler.0" + }, + "Ethernet68|5": { + "scheduler": "scheduler.0" + }, + "Ethernet40|0": { + "scheduler": "scheduler.0" + }, + "Ethernet112|1": { + "scheduler": "scheduler.0" + }, + "Ethernet116|2": { + "scheduler": "scheduler.0" + }, + "Ethernet112|5": { + "scheduler": "scheduler.0" + }, + "Ethernet0|0": { + "scheduler": "scheduler.0" + }, + "Ethernet28|5": { + "scheduler": "scheduler.0" + }, + "Ethernet100|5": { + "scheduler": "scheduler.0" + }, + "Ethernet100|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet40|6": { + "scheduler": "scheduler.0" + }, + "Ethernet108|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet100|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet116|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet36|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet64|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet56|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet92|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet112|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet16|2": { + "scheduler": "scheduler.0" + }, + "Ethernet64|1": { + "scheduler": "scheduler.0" + }, + "Ethernet24|1": { + "scheduler": "scheduler.0" + }, + "Ethernet24|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet104|0": { + "scheduler": "scheduler.0" + }, + "Ethernet40|1": { + "scheduler": "scheduler.0" + }, + "Ethernet116|0": { + "scheduler": "scheduler.0" + }, + "Ethernet88|5": { + "scheduler": "scheduler.0" + }, + "Ethernet32|0": { + "scheduler": "scheduler.0" + }, + "Ethernet92|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet20|5": { + "scheduler": "scheduler.0" + }, + "Ethernet84|2": { + "scheduler": "scheduler.0" + }, + "Ethernet116|1": { + "scheduler": "scheduler.0" + }, + "Ethernet108|5": { + "scheduler": "scheduler.0" + }, + "Ethernet60|2": { + "scheduler": "scheduler.0" + }, + "Ethernet44|5": { + "scheduler": "scheduler.0" + }, + "Ethernet120|2": { + "scheduler": "scheduler.0" + }, + "Ethernet40|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet0|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet88|0": { + "scheduler": "scheduler.0" + }, + "Ethernet84|6": { + "scheduler": "scheduler.0" + }, + "Ethernet108|0": { + "scheduler": "scheduler.0" + }, + "Ethernet68|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet104|5": { + "scheduler": "scheduler.0" + }, + "Ethernet56|6": { + "scheduler": "scheduler.0" + }, + "Ethernet80|6": { + "scheduler": "scheduler.0" + }, + "Ethernet28|2": { + "scheduler": "scheduler.0" + }, + "Ethernet64|0": { + "scheduler": "scheduler.0" + }, + "Ethernet12|0": { + "scheduler": "scheduler.0" + }, + "Ethernet104|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet48|0": { + "scheduler": "scheduler.0" + }, + "Ethernet120|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet8|1": { + "scheduler": "scheduler.0" + }, + "Ethernet24|6": { + "scheduler": "scheduler.0" + }, + "Ethernet124|6": { + "scheduler": "scheduler.0" + }, + "Ethernet84|0": { + "scheduler": "scheduler.0" + }, + "Ethernet28|6": { + "scheduler": "scheduler.0" + }, + "Ethernet52|2": { + "scheduler": "scheduler.0" + }, + "Ethernet20|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet52|5": { + "scheduler": "scheduler.0" + }, + "Ethernet16|6": { + "scheduler": "scheduler.0" + }, + "Ethernet8|6": { + "scheduler": "scheduler.0" + }, + "Ethernet104|6": { + "scheduler": "scheduler.0" + }, + "Ethernet92|1": { + "scheduler": "scheduler.0" + }, + "Ethernet48|1": { + "scheduler": "scheduler.0" + }, + "Ethernet8|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet24|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet12|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet64|6": { + "scheduler": "scheduler.0" + }, + "Ethernet4|5": { + "scheduler": "scheduler.0" + }, + "Ethernet112|0": { + "scheduler": "scheduler.0" + }, + "Ethernet72|5": { + "scheduler": "scheduler.0" + }, + "Ethernet12|1": { + "scheduler": "scheduler.0" + }, + "Ethernet64|2": { + "scheduler": "scheduler.0" + }, + "Ethernet72|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet36|1": { + "scheduler": "scheduler.0" + }, + "Ethernet40|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet96|2": { + "scheduler": "scheduler.0" + }, + "Ethernet16|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet52|1": { + "scheduler": "scheduler.0" + }, + "Ethernet80|5": { + "scheduler": "scheduler.0" + }, + "Ethernet76|5": { + "scheduler": "scheduler.0" + }, + "Ethernet28|0": { + "scheduler": "scheduler.0" + }, + "Ethernet120|6": { + "scheduler": "scheduler.0" + }, + "Ethernet40|5": { + "scheduler": "scheduler.0" + }, + "Ethernet76|0": { + "scheduler": "scheduler.0" + }, + "Ethernet108|6": { + "scheduler": "scheduler.0" + }, + "Ethernet8|0": { + "scheduler": "scheduler.0" + }, + "Ethernet32|6": { + "scheduler": "scheduler.0" + }, + "Ethernet48|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet16|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet88|6": { + "scheduler": "scheduler.0" + }, + "Ethernet68|1": { + "scheduler": "scheduler.0" + }, + "Ethernet56|1": { + "scheduler": "scheduler.0" + }, + "Ethernet100|2": { + "scheduler": "scheduler.0" + }, + "Ethernet4|2": { + "scheduler": "scheduler.0" + }, + "Ethernet108|2": { + "scheduler": "scheduler.0" + }, + "Ethernet16|1": { + "scheduler": "scheduler.0" + }, + "Ethernet124|2": { + "scheduler": "scheduler.0" + }, + "Ethernet104|1": { + "scheduler": "scheduler.0" + }, + "Ethernet12|5": { + "scheduler": "scheduler.0" + }, + "Ethernet64|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet32|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet48|6": { + "scheduler": "scheduler.0" + }, + "Ethernet36|5": { + "scheduler": "scheduler.0" + }, + "Ethernet80|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|6": { + "scheduler": "scheduler.0" + }, + "Ethernet100|1": { + "scheduler": "scheduler.0" + }, + "Ethernet124|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet100|0": { + "scheduler": "scheduler.0" + }, + "Ethernet28|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet36|2": { + "scheduler": "scheduler.0" + }, + "Ethernet20|0": { + "scheduler": "scheduler.0" + }, + "Ethernet72|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet84|5": { + "scheduler": "scheduler.0" + }, + "Ethernet124|5": { + "scheduler": "scheduler.0" + }, + "Ethernet12|2": { + "scheduler": "scheduler.0" + }, + "Ethernet56|0": { + "scheduler": "scheduler.0" + }, + "Ethernet44|6": { + "scheduler": "scheduler.0" + }, + "Ethernet88|1": { + "scheduler": "scheduler.0" + }, + "Ethernet80|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet108|1": { + "scheduler": "scheduler.0" + }, + "Ethernet96|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet96|5": { + "scheduler": "scheduler.0" + }, + "Ethernet72|6": { + "scheduler": "scheduler.0" + }, + "Ethernet108|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet96|1": { + "scheduler": "scheduler.0" + }, + "Ethernet96|6": { + "scheduler": "scheduler.0" + }, + "Ethernet40|2": { + "scheduler": "scheduler.0" + }, + "Ethernet4|1": { + "scheduler": "scheduler.0" + }, + "Ethernet60|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet112|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet12|6": { + "scheduler": "scheduler.0" + }, + "Ethernet52|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet48|2": { + "scheduler": "scheduler.0" + }, + "Ethernet76|1": { + "scheduler": "scheduler.0" + }, + "Ethernet44|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet80|2": { + "scheduler": "scheduler.0" + }, + "Ethernet12|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet100|6": { + "scheduler": "scheduler.0" + }, + "Ethernet20|2": { + "scheduler": "scheduler.0" + }, + "Ethernet0|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet36|0": { + "scheduler": "scheduler.0" + }, + "Ethernet60|0": { + "scheduler": "scheduler.0" + }, + "Ethernet4|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet32|5": { + "scheduler": "scheduler.0" + }, + "Ethernet0|2": { + "scheduler": "scheduler.0" + }, + "Ethernet124|0": { + "scheduler": "scheduler.0" + }, + "Ethernet88|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet120|5": { + "scheduler": "scheduler.0" + }, + "Ethernet52|0": { + "scheduler": "scheduler.0" + }, + "Ethernet72|1": { + "scheduler": "scheduler.0" + }, + "Ethernet0|6": { + "scheduler": "scheduler.0" + }, + "Ethernet4|0": { + "scheduler": "scheduler.0" + }, + "Ethernet76|2": { + "scheduler": "scheduler.0" + }, + "Ethernet112|2": { + "scheduler": "scheduler.0" + }, + "Ethernet28|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet92|0": { + "scheduler": "scheduler.0" + }, + "Ethernet80|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet44|1": { + "scheduler": "scheduler.0" + }, + "Ethernet20|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet16|5": { + "scheduler": "scheduler.0" + }, + "Ethernet112|6": { + "scheduler": "scheduler.0" + }, + "Ethernet68|2": { + "scheduler": "scheduler.0" + }, + "Ethernet52|6": { + "scheduler": "scheduler.0" + }, + "Ethernet72|2": { + "scheduler": "scheduler.0" + }, + "Ethernet92|2": { + "scheduler": "scheduler.0" + }, + "Ethernet84|1": { + "scheduler": "scheduler.0" + }, + "Ethernet60|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet32|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet84|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet96|0": { + "scheduler": "scheduler.0" + }, + "Ethernet120|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet68|6": { + "scheduler": "scheduler.0" + }, + "Ethernet76|6": { + "scheduler": "scheduler.0" + }, + "Ethernet96|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet76|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet56|2": { + "scheduler": "scheduler.0" + }, + "Ethernet44|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet60|5": { + "scheduler": "scheduler.0" + }, + "Ethernet56|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet124|1": { + "scheduler": "scheduler.0" + }, + "Ethernet68|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet24|2": { + "scheduler": "scheduler.0" + }, + "Ethernet116|5": { + "scheduler": "scheduler.0" + }, + "Ethernet116|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet76|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet44|2": { + "scheduler": "scheduler.0" + }, + "Ethernet36|4": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet20|1": { + "scheduler": "scheduler.0" + }, + "Ethernet0|1": { + "scheduler": "scheduler.0" + }, + "Ethernet32|1": { + "scheduler": "scheduler.0" + }, + "Ethernet52|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet104|3": { + "scheduler": "scheduler.1", + "wred_profile": "AZURE_LOSSLESS" + }, + "Ethernet20|6": { + "scheduler": "scheduler.0" + }, + "Ethernet32|2": { + "scheduler": "scheduler.0" + }, + "Ethernet8|2": { + "scheduler": "scheduler.0" + } + }, + "CRM": { + "Config": { + "polling_interval": "300", + "ipv4_route_threshold_type": "percentage", + "ipv4_route_low_threshold": "70", + "ipv4_route_high_threshold": "85", + "ipv6_route_threshold_type": "percentage", + "ipv6_route_low_threshold": "70", + "ipv6_route_high_threshold": "85", + "ipv4_nexthop_threshold_type": "percentage", + "ipv4_nexthop_low_threshold": "70", + "ipv4_nexthop_high_threshold": "85", + "ipv6_nexthop_threshold_type": "percentage", + "ipv6_nexthop_low_threshold": "70", + "ipv6_nexthop_high_threshold": "85", + "ipv4_neighbor_threshold_type": "percentage", + "ipv4_neighbor_low_threshold": "70", + "ipv4_neighbor_high_threshold": "85", + "ipv6_neighbor_threshold_type": "percentage", + "ipv6_neighbor_low_threshold": "70", + "ipv6_neighbor_high_threshold": "85", + "nexthop_group_member_threshold_type": "percentage", + "nexthop_group_member_low_threshold": "70", + "nexthop_group_member_high_threshold": "85", + "nexthop_group_threshold_type": "percentage", + "nexthop_group_low_threshold": "70", + "nexthop_group_high_threshold": "85", + "acl_table_threshold_type": "percentage", + "acl_table_low_threshold": "70", + "acl_table_high_threshold": "85", + "acl_group_threshold_type": "percentage", + "acl_group_low_threshold": "70", + "acl_group_high_threshold": "85", + "acl_entry_threshold_type": "percentage", + "acl_entry_low_threshold": "70", + "acl_entry_high_threshold": "85", + "acl_counter_threshold_type": "percentage", + "acl_counter_low_threshold": "70", + "acl_counter_high_threshold": "85", + "fdb_entry_threshold_type": "percentage", + "fdb_entry_low_threshold": "70", + "fdb_entry_high_threshold": "85", + "snat_entry_threshold_type": "percentage", + "snat_entry_low_threshold": "70", + "snat_entry_high_threshold": "85", + "dnat_entry_threshold_type": "percentage", + "dnat_entry_low_threshold": "70", + "dnat_entry_high_threshold": "85", + "ipmc_entry_threshold_type": "percentage", + "ipmc_entry_low_threshold": "70", + "ipmc_entry_high_threshold": "85" + } + }, + "FEATURE": { + "mgmt-framework": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "database": { + "state": "always_enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "always_enabled", + "high_mem_alert": "disabled" + }, + "sflow": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "teamd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "pmon": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "nat": { + "state": "disabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "bgp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "telemetry": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled", + "status": "enabled" + }, + "dhcp_relay": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "radv": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "swss": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "snmp": { + "state": "enabled", + "has_timer": "True", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "syncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "False", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "lldp": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "True", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + }, + "gbsyncd": { + "state": "enabled", + "has_timer": "False", + "has_global_scope": "True", + "has_per_asic_scope": "False", + "auto_restart": "enabled", + "high_mem_alert": "disabled" + } + }, + "BUFFER_QUEUE": { + "Ethernet4|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet100|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet116|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet92|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet88|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet88|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet108|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet60|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet120|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet44|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet20|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet12|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet40|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet16|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet112|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet8|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet92|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet36|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet68|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet24|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet12|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet8|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet44|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet60|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet76|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet56|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet76|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet64|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet36|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet124|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet40|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet56|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet72|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet92|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet48|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet24|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet52|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet16|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet12|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet104|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet112|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet64|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet108|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet20|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet20|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet112|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet108|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet52|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet96|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet96|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet32|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet48|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet52|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet64|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet72|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet48|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet28|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet120|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet32|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet104|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet84|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet84|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet28|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet40|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet0|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet80|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet88|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet68|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet72|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet28|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet80|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet124|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet16|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet76|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet116|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet56|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet8|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet100|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet116|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet100|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet124|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet68|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet4|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet44|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet32|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet80|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet24|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet104|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet120|5-6": { + "profile": "egress_lossy_profile" + }, + "Ethernet96|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet84|3-4": { + "profile": "egress_lossless_profile" + }, + "Ethernet60|0-2": { + "profile": "egress_lossy_profile" + }, + "Ethernet36|3-4": { + "profile": "egress_lossless_profile" + } + }, + "PORT": { + "Ethernet60": { + "lanes": "61,62,63,64", + "alias": "fortyGigE0/60", + "index": "15", + "speed": "40000", + "description": "fortyGigE0/60", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet16": { + "lanes": "45,46,47,48", + "alias": "fortyGigE0/16", + "index": "4", + "speed": "40000", + "description": "fortyGigE0/16", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet124": { + "lanes": "97,98,99,100", + "alias": "fortyGigE0/124", + "index": "31", + "speed": "40000", + "description": "fortyGigE0/124", + "mtu": "9100", + "pfc_asym": "off", + "admin_status": "up" + }, + "Ethernet36": { + "lanes": "9,10,11,12", + "alias": "fortyGigE0/36", + "index": "9", + "speed": "40000", + "description": "fortyGigE0/36", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet104": { + "lanes": "81,82,83,84", + "alias": "fortyGigE0/104", + "index": "26", + "speed": "40000", + "description": "fortyGigE0/104", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet4": { + "lanes": "29,30,31,32", + "alias": "fortyGigE0/4", + "index": "1", + "speed": "40000", + "description": "fortyGigE0/4", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet100": { + "lanes": "121,122,123,124", + "alias": "fortyGigE0/100", + "index": "25", + "speed": "40000", + "description": "fortyGigE0/100", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet0": { + "lanes": "25,26,27,28", + "alias": "fortyGigE0/0", + "index": "0", + "speed": "40000", + "description": "fortyGigE0/0", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet28": { + "lanes": "5,6,7,8", + "alias": "fortyGigE0/28", + "index": "7", + "speed": "40000", + "description": "fortyGigE0/28", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet8": { + "lanes": "33,34,35,36", + "alias": "fortyGigE0/8", + "index": "2", + "speed": "40000", + "description": "fortyGigE0/8", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet84": { + "lanes": "105,106,107,108", + "alias": "fortyGigE0/84", + "index": "21", + "speed": "40000", + "description": "fortyGigE0/84", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet76": { + "lanes": "77,78,79,80", + "alias": "fortyGigE0/76", + "index": "19", + "speed": "40000", + "description": "fortyGigE0/76", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet32": { + "lanes": "13,14,15,16", + "alias": "fortyGigE0/32", + "index": "8", + "speed": "40000", + "description": "fortyGigE0/32", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet24": { + "lanes": "1,2,3,4", + "alias": "fortyGigE0/24", + "index": "6", + "speed": "40000", + "description": "fortyGigE0/24", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet72": { + "lanes": "73,74,75,76", + "alias": "fortyGigE0/72", + "index": "18", + "speed": "40000", + "description": "fortyGigE0/72", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet92": { + "lanes": "117,118,119,120", + "alias": "fortyGigE0/92", + "index": "23", + "speed": "40000", + "description": "fortyGigE0/92", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet88": { + "lanes": "113,114,115,116", + "alias": "fortyGigE0/88", + "index": "22", + "speed": "40000", + "description": "fortyGigE0/88", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet80": { + "lanes": "109,110,111,112", + "alias": "fortyGigE0/80", + "index": "20", + "speed": "40000", + "description": "fortyGigE0/80", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet108": { + "lanes": "85,86,87,88", + "alias": "fortyGigE0/108", + "index": "27", + "speed": "40000", + "description": "fortyGigE0/108", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet44": { + "lanes": "21,22,23,24", + "alias": "fortyGigE0/44", + "index": "11", + "speed": "40000", + "description": "fortyGigE0/44", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet12": { + "lanes": "37,38,39,40", + "alias": "fortyGigE0/12", + "index": "3", + "speed": "40000", + "description": "fortyGigE0/12", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet20": { + "lanes": "41,42,43,44", + "alias": "fortyGigE0/20", + "index": "5", + "speed": "40000", + "description": "fortyGigE0/20", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet68": { + "lanes": "65,66,67,68", + "alias": "fortyGigE0/68", + "index": "17", + "speed": "40000", + "description": "fortyGigE0/68", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet56": { + "lanes": "57,58,59,60", + "alias": "fortyGigE0/56", + "index": "14", + "speed": "40000", + "description": "fortyGigE0/56", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet52": { + "lanes": "49,50,51,52", + "alias": "fortyGigE0/52", + "index": "13", + "speed": "40000", + "description": "fortyGigE0/52", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet64": { + "lanes": "69,70,71,72", + "alias": "fortyGigE0/64", + "index": "16", + "speed": "40000", + "description": "fortyGigE0/64", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet48": { + "lanes": "53,54,55,56", + "alias": "fortyGigE0/48", + "index": "12", + "speed": "40000", + "description": "fortyGigE0/48", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet40": { + "lanes": "17,18,19,20", + "alias": "fortyGigE0/40", + "index": "10", + "speed": "40000", + "description": "fortyGigE0/40", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet112": { + "lanes": "93,94,95,96", + "alias": "fortyGigE0/112", + "index": "28", + "speed": "40000", + "description": "fortyGigE0/112", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet116": { + "lanes": "89,90,91,92", + "alias": "fortyGigE0/116", + "index": "29", + "speed": "40000", + "description": "fortyGigE0/116", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet96": { + "lanes": "125,126,127,128", + "alias": "fortyGigE0/96", + "index": "24", + "speed": "40000", + "description": "fortyGigE0/96", + "mtu": "9100", + "pfc_asym": "off" + }, + "Ethernet120": { + "lanes": "101,102,103,104", + "alias": "fortyGigE0/120", + "index": "30", + "speed": "40000", + "description": "fortyGigE0/120", + "mtu": "9100", + "pfc_asym": "off" + } + }, + "TELEMETRY": { + "certs": { + "server_crt": "/etc/sonic/telemetry/streamingtelemetryserver.cer", + "server_key": "/etc/sonic/telemetry/streamingtelemetryserver.key", + "ca_crt": "/etc/sonic/telemetry/dsmsroot.cer" + }, + "gnmi": { + "client_auth": "true", + "port": "50051", + "log_level": "2" + } + }, + "MAP_PFC_PRIORITY_TO_QUEUE": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "BUFFER_PROFILE": { + "egress_lossy_profile": { + "pool": "egress_lossy_pool", + "size": "1518", + "dynamic_th": "3" + }, + "ingress_lossy_profile": { + "pool": "ingress_lossless_pool", + "size": "0", + "dynamic_th": "3" + }, + "egress_lossless_profile": { + "pool": "egress_lossless_pool", + "size": "0", + "static_th": "12766208" + } + }, + "DHCP_SERVER": { + "192.0.0.1": {}, + "192.0.0.2": {}, + "192.0.0.3": {}, + "192.0.0.4": {} + }, + "BUFFER_PG": { + "Ethernet84|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet72|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet112|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet104|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet12|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet32|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet96|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet60|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet16|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet44|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet48|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet92|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet28|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet36|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet116|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet88|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet8|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet100|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet0|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet76|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet20|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet124|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet56|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet64|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet24|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet108|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet40|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet68|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet52|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet80|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet120|0": { + "profile": "ingress_lossy_profile" + }, + "Ethernet4|0": { + "profile": "ingress_lossy_profile" + } + }, + "BUFFER_POOL": { + "egress_lossless_pool": { + "size": "12766208", + "type": "egress", + "mode": "static" + }, + "ingress_lossless_pool": { + "size": "12766208", + "type": "ingress", + "mode": "dynamic" + }, + "egress_lossy_pool": { + "size": "7326924", + "type": "egress", + "mode": "dynamic" + } + }, + "MGMT_INTERFACE": { + "eth0|10.250.0.122/24": { + "gwaddr": "10.250.0.1" + }, + "eth0|fec0::ffff:afa:12/64": { + "gwaddr": "fec0::1" + } + }, + "SNMP": { + "LOCATION": { + "Location": "public" + } + }, + "SYSLOG_SERVER": { + "10.0.0.5": {}, + "10.0.0.6": {} + }, + "SNMP_COMMUNITY": { + "public": { + "TYPE": "RO" + } + }, + "SCHEDULER": { + "scheduler.1": { + "type": "DWRR", + "weight": "15" + }, + "scheduler.0": { + "type": "DWRR", + "weight": "14" + } + }, + "NTP_SERVER": { + "10.0.0.2": {}, + "10.0.0.1": {} + }, + "DEVICE_METADATA": { + "localhost": { + "buffer_model": "traditional", + "default_bgp_status": "up", + "default_pfcwd_status": "disable", + "bgp_asn": "None", + "deployment_id": "1", + "region": "None", + "cloudtype": "None", + "docker_routing_config_mode": "separated", + "hostname": "vlab-sup", + "hwsku": "Force10-S6000", + "type": "Spine", + "synchronous_mode": "enable", + "platform": "x86_64-kvm_x86_64-r0", + "mac": "52:54:00:db:87:dc" + } + }, + "WRED_PROFILE": { + "AZURE_LOSSLESS": { + "wred_green_enable": "true", + "wred_yellow_enable": "true", + "wred_red_enable": "true", + "ecn": "ecn_all", + "green_max_threshold": "2097152", + "green_min_threshold": "1048576", + "yellow_max_threshold": "2097152", + "yellow_min_threshold": "1048576", + "red_max_threshold": "2097152", + "red_min_threshold": "1048576", + "green_drop_probability": "5", + "yellow_drop_probability": "5", + "red_drop_probability": "5" + } + }, + "TACPLUS_SERVER": { + "10.0.0.8": { + "priority": "1", + "tcp_port": "49" + }, + "10.0.0.9": { + "priority": "1", + "tcp_port": "49" + } + }, + "CONSOLE_SWITCH": { + "console_mgmt": { + "enabled": "no" + } + }, + "TC_TO_PRIORITY_GROUP_MAP": { + "AZURE": { + "0": "0", + "1": "0", + "2": "0", + "3": "3", + "4": "4", + "5": "0", + "6": "0", + "7": "7" + } + }, + "DSCP_TO_TC_MAP": { + "AZURE": { + "0": "1", + "1": "1", + "2": "1", + "3": "3", + "4": "4", + "5": "2", + "6": "1", + "7": "1", + "8": "0", + "9": "1", + "10": "1", + "11": "1", + "12": "1", + "13": "1", + "14": "1", + "15": "1", + "16": "1", + "17": "1", + "18": "1", + "19": "1", + "20": "1", + "21": "1", + "22": "1", + "23": "1", + "24": "1", + "25": "1", + "26": "1", + "27": "1", + "28": "1", + "29": "1", + "30": "1", + "31": "1", + "32": "1", + "33": "1", + "34": "1", + "35": "1", + "36": "1", + "37": "1", + "38": "1", + "39": "1", + "40": "1", + "41": "1", + "42": "1", + "43": "1", + "44": "1", + "45": "1", + "46": "5", + "47": "1", + "48": "6", + "49": "1", + "50": "1", + "51": "1", + "52": "1", + "53": "1", + "54": "1", + "55": "1", + "56": "1", + "57": "1", + "58": "1", + "59": "1", + "60": "1", + "61": "1", + "62": "1", + "63": "1" + } + }, + "MGMT_PORT": { + "eth0": { + "alias": "eth0", + "admin_status": "up" + } + }, + "RESTAPI": { + "config": { + "client_auth": "true", + "allow_insecure": "false", + "log_level": "trace" + }, + "certs": { + "server_crt": "/etc/sonic/credentials/restapiserver.crt", + "server_key": "/etc/sonic/credentials/restapiserver.key", + "ca_crt": "/etc/sonic/credentials/restapica.crt", + "client_crt_cname": "client.restapi.sonic" + } + }, + "CABLE_LENGTH": { + "AZURE": { + "Ethernet60": "300m", + "Ethernet16": "300m", + "Ethernet124": "300m", + "Ethernet36": "300m", + "Ethernet4": "300m", + "Ethernet104": "300m", + "Ethernet100": "300m", + "Ethernet0": "300m", + "Ethernet28": "300m", + "Ethernet8": "300m", + "Ethernet84": "300m", + "Ethernet32": "300m", + "Ethernet76": "300m", + "Ethernet24": "300m", + "Ethernet72": "300m", + "Ethernet92": "300m", + "Ethernet88": "300m", + "Ethernet80": "300m", + "Ethernet108": "300m", + "Ethernet44": "300m", + "Ethernet12": "300m", + "Ethernet20": "300m", + "Ethernet68": "300m", + "Ethernet56": "300m", + "Ethernet52": "300m", + "Ethernet64": "300m", + "Ethernet48": "300m", + "Ethernet40": "300m", + "Ethernet112": "300m", + "Ethernet116": "300m", + "Ethernet96": "300m", + "Ethernet120": "300m" + } + }, + "VERSIONS": { + "DATABASE": { + "VERSION": "version_2_0_0" + } + }, + "TC_TO_QUEUE_MAP": { + "AZURE": { + "0": "0", + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7" + } + }, + "KDUMP": { + "config": { + "enabled": "false", + "num_dumps": "3", + "memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M" + } + } +} \ No newline at end of file