Merge branch 'Azure:master' into config

This commit is contained in:
Iris Hsu 2022-02-22 10:29:38 +08:00 committed by GitHub
commit dabbe3269a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
788 changed files with 47671 additions and 14727 deletions

View File

@ -11,7 +11,11 @@ schedules:
displayName: Daily Build
branches:
include:
- 202012
- 20*
exclude:
- 200*
- 201*
- 202006
always: true
pool: sonicbld

View File

@ -43,6 +43,7 @@ jobs:
[ -n "$SYSTEM_PULLREQUEST_PULLREQUESTID" ] && BRANCH_NAME="$SYSTEM_PULLREQUEST_TARGETBRANCH-$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"
git checkout -b $BRANCH_NAME
sudo modprobe overlay
pip3 install MarkupSafe==2.0.1 --force-reinstall
sudo apt-get install -y acl
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure

View File

@ -0,0 +1,5 @@
variables:
${{ if and(ge(variables['Build.SourceBranchName'], '202012'), le(variables['Build.SourceBranchName'], '299999')) }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
${{ if or(lt(variables['Build.SourceBranchName'], '202012'), gt(variables['Build.SourceBranchName'], '299999')) }}:
VERSION_CONTROL_OPTIONS: ''

View File

@ -18,7 +18,9 @@ stages:
- stage: Build
pool: sonicbld
variables:
CACHE_MODE: cache
- name: CACHE_MODE
value: cache
- template: azure-pipelines-repd-build-variables.yml
jobs:
- template: azure-pipelines-build.yml
parameters:

View File

@ -18,9 +18,9 @@ stages:
- stage: Build
pool: sonicbld
variables:
CACHE_MODE: wcache
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
- template: azure-pipelines-repd-build-variables.yml
- name: CACHE_MODE
value: wcache
jobs:
- template: azure-pipelines-build.yml
parameters:

View File

@ -25,9 +25,9 @@ stages:
- stage: Build
pool: sonicbld
variables:
CACHE_MODE: wcache
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
- name: CACHE_MODE
value: wcache
- template: azure-pipelines-repd-build-variables.yml
jobs:
- template: azure-pipelines-build.yml
parameters:

2
.github/CODEOWNERS vendored
View File

@ -10,7 +10,7 @@
# a pull request.
* @lguohan
/device/ @jleveque
/device/ @sujinmkang @prgeor @vdahiya12
# build
/rules/ @qiluo-msft @xumia @lguohan

View File

@ -30,6 +30,7 @@
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
#### Description for the changelog
<!--
@ -37,6 +38,12 @@ Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
-->
#### A picture of a cute animal (not mandatory but encouraged)

View File

@ -13,6 +13,8 @@ on:
- reopened
branches:
- '202012'
- '202[1-9][0-9][0-9]'
- '20[3-9][0-9][0-9][0-9]'
paths:
- 'files/build/versions/**'

3
.gitmodules vendored
View File

@ -100,3 +100,6 @@
[submodule "src/sonic-p4rt/sonic-pins"]
path = src/sonic-p4rt/sonic-pins
url = https://github.com/Azure/sonic-pins.git
[submodule "src/thrift_0_14_1/thrift"]
path = src/thrift_0_14_1/thrift
url = https://github.com/apache/thrift.git

View File

@ -68,6 +68,7 @@
# Run the 'touch cache.skip.common' command in the base directory to exclude the common files from caching
SONIC_COMMON_FILES_LIST := $(if $(wildcard cache.skip.common),, .platform slave.mk rules/functions Makefile.cache)
SONIC_COMMON_FLAGS_LIST := $(CONFIGURED_PLATFORM) \
$(CONFIGURED_ARCH) \
$(BLDENV) \
$(SONIC_DEBUGGING_ON) \
$(SONIC_PROFILING_ON) $(SONIC_ENABLE_SYNCD_RPC)

View File

@ -185,8 +185,10 @@ ifneq ($(SONIC_DPKG_CACHE_SOURCE),)
endif
ifeq ($(SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD), y)
ifneq ($(MULTIARCH_QEMU_ENVIRON), y)
DOCKER_RUN += -v /var/run/docker.sock:/var/run/docker.sock
endif
endif
ifeq ($(MULTIARCH_QEMU_ENVIRON), y)
ifeq ($(DOCKER_DATA_ROOT_FOR_MULTIARCH),)
@ -211,7 +213,7 @@ endif
#Override Native config to prevent docker service
SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD=y
DOCKER_MULTIARCH_CHECK := docker inspect --type image multiarch/qemu-user-static:register &> /dev/null || (echo "multiarch docker not found ..."; docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes)
DOCKER_MULTIARCH_CHECK := docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
DOCKER_SERVICE_SAFE_KILLER := (MARCH_PID=`ps -eo pid,cmd | grep "[0-9] dockerd.*march" | awk '{print $$1}'`; echo "Killing march docker $$MARCH_PID"; [ -z "$$MARCH_PID" ] || sudo kill -9 "$$MARCH_PID";)
DOCKER_SERVICE_MULTIARCH_CHECK := ($(DOCKER_SERVICE_SAFE_KILLER); sudo rm -fr /var/run/march/; (echo "Starting docker march service..."; sudo $(SONIC_NATIVE_DOCKERD_FOR_MUTLIARCH) &) &>/dev/null ; sleep 2; sudo $(SONIC_USERFACL_DOCKERD_FOR_MUTLIARCH);)
@ -268,6 +270,7 @@ SONIC_BUILD_INSTRUCTION := make \
SONIC_ENABLE_PFCWD_ON_START=$(ENABLE_PFCWD_ON_START) \
SONIC_ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC) \
SONIC_INSTALL_DEBUG_TOOLS=$(INSTALL_DEBUG_TOOLS) \
SONIC_SAITHRIFT_V2=$(SAITHRIFT_V2) \
MDEBUG=$(MDEBUG) \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME) \
@ -292,6 +295,7 @@ SONIC_BUILD_INSTRUCTION := make \
SLAVE_DIR=$(SLAVE_DIR) \
ENABLE_AUTO_TECH_SUPPORT=$(ENABLE_AUTO_TECH_SUPPORT) \
BUILD_MULTIASIC_KVM=$(BUILD_MULTIASIC_KVM) \
ENABLE_ASAN=$(ENABLE_ASAN) \
$(SONIC_OVERRIDE_BUILD_VARS)
.PHONY: sonic-slave-build sonic-slave-bash init reset
@ -336,6 +340,9 @@ sonic-build-hooks:
@cp src/sonic-build-hooks/buildinfo/sonic-build-hooks* $(SLAVE_DIR)/buildinfo
sonic-slave-base-build : sonic-build-hooks
ifeq ($(MULTIARCH_QEMU_ENVIRON), y)
@$(DOCKER_MULTIARCH_CHECK)
endif
@$(OVERLAY_MODULE_CHECK)
@echo Checking sonic-slave-base image: $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG)
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \

View File

@ -35,9 +35,9 @@ stages:
- stage: Build
pool: sonicbld
variables:
CACHE_MODE: rcache
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
- name: CACHE_MODE
value: rcache
jobs:
- template: .azure-pipelines/azure-pipelines-build.yml
parameters:

View File

@ -320,13 +320,17 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
python-is-python3 \
cron \
libprotobuf23 \
libgrpc++ \
libgrpc++1 \
libgrpc10 \
haveged \
fdisk \
gpg \
jq \
auditd
# Change auditd log file path to fix auditd can't startup issue.
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "sudo sed -i 's/^\s*log_file\s*=.*/log_file = \/var\/log\/audit.log/g' /etc/audit/auditd.conf"
if [[ $CONFIGURED_ARCH == amd64 ]]; then
## Pre-install the fundamental packages for amd64 (x86)
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install \
@ -582,7 +586,7 @@ sudo rm -f $ONIE_INSTALLER_PAYLOAD $FILESYSTEM_SQUASHFS
sudo du -hsx $FILESYSTEM_ROOT
sudo mkdir -p $FILESYSTEM_ROOT/var/lib/docker
scripts/collect_host_image_version_files.sh $TARGET_PATH $FILESYSTEM_ROOT
sudo mksquashfs $FILESYSTEM_ROOT $FILESYSTEM_SQUASHFS -e boot -e var/lib/docker -e $PLATFORM_DIR
sudo mksquashfs $FILESYSTEM_ROOT $FILESYSTEM_SQUASHFS -comp zstd -b 1M -e boot -e var/lib/docker -e $PLATFORM_DIR
# Ensure admin gid is 1000
gid_user=$(sudo LANG=C chroot $FILESYSTEM_ROOT id -g $USERNAME) || gid_user="none"

View File

@ -97,7 +97,7 @@ generate_device_list()
for d in `find -L ./device -maxdepth 2 -mindepth 2 -type d`; do
if [ -f $d/platform_asic ]; then
if [ "$CONFIGURED_PLATFORM" = "generic" ] || grep -Fxq "$CONFIGURED_PLATFORM" $d/platform_asic; then
if [ "$TARGET_MACHINE" = "generic" ] || grep -Fxq "$TARGET_MACHINE" $d/platform_asic; then
echo "${d##*/}" >> "$platforms_asic";
fi;
fi;

View File

@ -0,0 +1,66 @@
{
"XCVR":
{
"xcvr_present":
{
"i2c":
{
"valmap-SFP28": {"1":true, "0":false },
"valmap-QSFP28": {"1":true, "0":false}
}
}
},
"PSU":
{
"psu_present":
{
"i2c":
{
"valmap": { "1":true, "0":false }
}
},
"psu_power_good":
{
"i2c":
{
"valmap": { "1": true, "0":false }
}
},
"psu_fan_dir":
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
}
},
"PSU_FAN_MAX_SPEED":"18000"
},
"FAN":
{
"direction":
{
"i2c":
{
"valmap": {"1":"EXHAUST", "0":"INTAKE"}
}
},
"present":
{
"i2c":
{
"valmap": {"1":true, "0":false}
}
},
"duty_cycle_to_pwm": "lambda dc: ((dc*100.0)/625)",
"pwm_to_duty_cycle": "lambda pwm: ((pwm*625.0)/100)"
}
}

View File

@ -0,0 +1,638 @@
{
"PLATFORM":
{
"num_psus":2,
"num_fantrays":3,
"num_fans_pertray":1,
"num_ports":54,
"num_temps": 3,
"pddf_dev_types":
{
"description":"AS4630 - Below is the list of supported PDDF device types (chip names) for various components. If any component uses some other driver, we will create the client using 'echo <dev-address> <dev-type> > <path>/new_device' method",
"CPLD":
[
"i2c_cpld"
],
"PSU":
[
"psu_eeprom",
"psu_pmbus"
],
"FAN":
[
"fan_ctrl",
"fan_eeprom",
"fan_cpld"
],
"PORT_MODULE":
[
"pddf_xcvr"
]
},
"std_kos":
[
"i2c_dev",
"i2c_mux_pca954x force_deselect_on_exit=1",
"optoe"
],
"description":"kernel modules are loaded while moving to pdf mode, but they should not be unloaded while moving to nonpddf mode.",
"std_perm_kos":
[
"i2c-i801",
"i2c-ismt"
],
"pddf_kos":
[
"pddf_client_module",
"pddf_cpld_module",
"pddf_cpld_driver",
"pddf_mux_module",
"pddf_xcvr_module",
"pddf_xcvr_driver_module",
"pddf_psu_driver_module",
"pddf_psu_module",
"pddf_fan_driver_module",
"pddf_fan_module",
"pddf_led_module"
]
},
"SYSTEM":
{
"dev_info": {"device_type":"CPU", "device_name":"ROOT_COMPLEX", "device_parent":null},
"i2c":
{
"CONTROLLERS":
[
{ "dev_name":"i2c-1", "dev":"SMBUS1" }
]
}
},
"SMBUS1":
{
"dev_info": {"device_type": "SMBUS", "device_name": "SMBUS1", "device_parent": "SYSTEM"},
"i2c":
{
"topo_info": {"dev_addr": "0x1"},
"DEVICES":
[
{"dev": "EEPROM1"},
{"dev": "MUX1"}
]
}
},
"EEPROM1":
{
"dev_info": {"device_type": "EEPROM", "device_name": "EEPROM1", "device_parent": "SMBUS1"},
"i2c":
{
"topo_info": {"parent_bus": "0x1", "dev_addr": "0x57", "dev_type": "24c02"},
"dev_attr": {"access_mode": "BLOCK"},
"attr_list": [
{"attr_name": "eeprom"}
]
}
},
"MUX1":
{
"dev_info": { "device_type":"MUX", "device_name":"MUX1", "device_parent":"SMBUS1"},
"i2c":
{
"topo_info": { "parent_bus":"0x1", "dev_addr":"0x77", "dev_type":"pca9548"},
"dev_attr": { "virt_bus":"0x2"},
"channel":
[
{ "chn":"0", "dev":"MUX2" },
{ "chn":"1", "dev":"MUX3" },
{ "chn":"1", "dev":"CPLD1" },
{ "chn":"1", "dev":"FAN-CTRL" }
]
}
},
"MUX2":
{
"dev_info": { "device_type":"MUX", "device_name":"MUX2", "device_parent":"MUX1"},
"i2c":
{
"topo_info": { "parent_bus":"0x2", "dev_addr":"0x71", "dev_type":"pca9548"},
"dev_attr": { "virt_bus":"0xa"},
"channel":
[
{ "chn":"0", "dev":"PSU1" },
{ "chn":"1", "dev":"PSU2" },
{ "chn":"4", "dev":"TEMP1" }
]
}
},
"TEMP1" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX2"},
"dev_attr": { "display_name":"Temp_1"},
"i2c":
{
"topo_info": { "parent_bus":"0xe", "dev_addr":"0x48", "dev_type":"lm77"},
"attr_list":
[
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp1_crit"},
{ "attr_name": "temp1_crit_hyst"},
{ "attr_name": "temp1_crit_alarm"},
{ "attr_name": "temp1_max_alarm"},
{ "attr_name": "temp1_min_alarm"},
{ "attr_name": "temp1_input"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
{ "attr_name": "temp1_low_threshold", "drv_attr_name":"temp1_min"},
{ "attr_name": "temp1_max_hyst"},
{ "attr_name": "temp1_min_hyst"}
]
}
},
"MUX3":
{
"dev_info": { "device_type":"MUX", "device_name":"MUX3", "device_parent":"MUX1"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x70", "dev_type":"pca9548"},
"dev_attr": { "virt_bus":"0x12"},
"channel":
[
{ "chn":"0", "dev":"PORT49" },
{ "chn":"1", "dev":"PORT50" },
{ "chn":"2", "dev":"PORT51" },
{ "chn":"3", "dev":"PORT52" },
{ "chn":"4", "dev":"PORT53" },
{ "chn":"5", "dev":"PORT54" },
{ "chn":"6", "dev":"TEMP2" },
{ "chn":"7", "dev":"TEMP3" }
]
}
},
"TEMP2" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX3"},
"dev_attr": { "display_name":"Temp_CPU"},
"i2c":
{
"topo_info": { "parent_bus":"0x18", "dev_addr":"0x4b", "dev_type":"lm75"},
"attr_list":
[
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
{ "attr_name": "temp1_max_hyst"},
{ "attr_name": "temp1_input"}
]
}
},
"TEMP3" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX3"},
"dev_attr": { "display_name":"Temp_Fan"},
"i2c":
{
"topo_info": { "parent_bus":"0x19", "dev_addr":"0x4a", "dev_type":"lm75"},
"attr_list":
[
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
{ "attr_name": "temp1_max_hyst"},
{ "attr_name": "temp1_input"}
]
}
},
"CPLD1":
{
"dev_info": { "device_type":"CPLD", "device_name":"CPLD1", "device_parent":"MUX1"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x60", "dev_type":"i2c_cpld"}
}
},
"FAN-CTRL":
{
"dev_info": { "device_type":"FAN", "device_name":"FAN-CTRL", "device_parent":"MUX1"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x66", "dev_type":"fan_cpld"},
"dev_attr": { "num_fantrays":"3"},
"attr_list":
[
{ "attr_name":"fan1_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x1", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"fan2_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"fan3_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x4", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"fan1_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x10", "attr_cmpval":"0x10", "attr_len":"1"},
{ "attr_name":"fan2_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x20", "attr_cmpval":"0x20", "attr_len":"1"},
{ "attr_name":"fan3_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x40", "attr_cmpval":"0x40", "attr_len":"1"},
{ "attr_name":"fan1_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x88", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114", "attr_is_divisor":0},
{ "attr_name":"fan2_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x89", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114" , "attr_is_divisor":0},
{ "attr_name":"fan3_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x8a", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114", "attr_is_divisor":0},
{ "attr_name":"fan1_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1a", "attr_mask":"0x1F", "attr_len":"1"},
{ "attr_name":"fan2_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1a", "attr_mask":"0x1F", "attr_len":"1"},
{ "attr_name":"fan3_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1b", "attr_mask":"0x1F", "attr_len":"1"}
]
}
},
"SYS_LED":
{
"dev_info": { "device_type":"LED", "device_name":"SYS_LED"},
"dev_attr": { "index":"0"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "7:5", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_GREEN_BLINK", "bits" : "7:5", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "7:5", "descr" : "", "value" : "0x4", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_AMBER_BLINK", "bits" : "7:5", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "7:5", "descr" : "", "value" : "0x7", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"}
]
}
},
"PSU1_LED":
{
"dev_info": { "device_type":"LED", "device_name":"PSU_LED"},
"dev_attr": { "index":"0"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "1:0", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "1:0", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "1:0", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"}
]
}
},
"PSU2_LED":
{
"dev_info": { "device_type":"LED", "device_name":"PSU_LED"},
"dev_attr": { "index":"1"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "7:6", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "7:6", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "7:6", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"}
]
}
},
"FAN_LED":
{
"dev_info": { "device_type":"LED", "device_name":"FAN_LED"},
"dev_attr": { "index":"0"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "3:2", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "3:2", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "3:2", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"}
]
}
},
"PSU1":
{
"dev_info": { "device_type":"PSU", "device_name":"PSU1", "device_parent":"MUX2"},
"dev_attr": { "dev_idx":"1", "num_psu_fans": "1"},
"i2c":
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU1-PMBUS" },
{ "itf":"eeprom", "dev":"PSU1-EEPROM" }
]
}
},
"PSU1-PMBUS":
{
"dev_info": { "device_type":"PSU-PMBUS", "device_name":"PSU1-PMBUS", "device_parent":"MUX2", "virt_parent":"PSU1"},
"i2c":
{
"topo_info":{ "parent_bus":"0xa", "dev_addr":"0x58", "dev_type":"psu_pmbus"},
"attr_list":
[
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"PSU1-EEPROM":
{
"dev_info": { "device_type":"PSU-EEPROM", "device_name":"PSU1-EEPROM", "device_parent":"MUX2", "virt_parent":"PSU1"},
"i2c":
{
"topo_info":{ "parent_bus":"0xa", "dev_addr":"0x50", "dev_type":"psu_eeprom"},
"attr_list":
[
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x20", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"psu_model_name", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x20", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"12" },
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x40", "attr_cmpval":"0x40", "attr_len":"1"},
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x35", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"19" }
]
}
},
"PSU2":
{
"dev_info": { "device_type":"PSU", "device_name":"PSU2", "device_parent":"MUX2" },
"dev_attr": { "dev_idx":"2", "num_psu_fans":"1"},
"i2c":
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU2-PMBUS"},
{ "itf":"eeprom", "dev":"PSU2-EEPROM"}
]
}
},
"PSU2-PMBUS":
{
"dev_info": {"device_type":"PSU-PMBUS", "device_name":"PSU2-PMBUS", "device_parent":"MUX2", "virt_parent":"PSU2"},
"i2c":
{
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x59", "dev_type":"psu_pmbus"},
"attr_list":
[
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"PSU2-EEPROM":
{
"dev_info": {"device_type":"PSU-EEPROM", "device_name":"PSU2-EEPROM", "device_parent":"MUX2", "virt_parent":"PSU2"},
"i2c":
{
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x51", "dev_type":"psu_eeprom"},
"attr_list":
[
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"psu_model_name", "attr_devaddr":"0x51", "attr_devtype":"eeprom", "attr_offset":"0x20", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"12" },
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x4", "attr_cmpval":"0x4", "attr_len":"1"},
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x51", "attr_devtype":"eeprom", "attr_offset":"0x35", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"19" }
]
}
},
"PORT49":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT49", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"49"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT49-EEPROM" },
{ "itf":"control", "dev":"PORT49-CTRL" }
]
}
},
"PORT49-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT49-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT49"},
"i2c":
{
"topo_info": { "parent_bus":"0x12", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT49-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT49-CTRL", "device_parent":"MUX3", "virt_parent":"PORT49"},
"i2c":
{
"topo_info": { "parent_bus":"0x12", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x05", "attr_mask":"0x6", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
},
"PORT50":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT50", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"50"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT50-EEPROM" },
{ "itf":"control", "dev":"PORT50-CTRL" }
]
}
},
"PORT50-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT50-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT50"},
"i2c":
{
"topo_info": { "parent_bus":"0x13", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT50-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT50-CTRL", "device_parent":"MUX3", "virt_parent":"PORT50"},
"i2c":
{
"topo_info": { "parent_bus":"0x13", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x05", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
},
"PORT51":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT51", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"51"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT51-EEPROM" },
{ "itf":"control", "dev":"PORT51-CTRL" }
]
}
},
"PORT51-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT51-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT51"},
"i2c":
{
"topo_info": { "parent_bus":"0x14", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT51-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT51-CTRL", "device_parent":"MUX3", "virt_parent":"PORT51"},
"i2c":
{
"topo_info": { "parent_bus":"0x14", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x06", "attr_mask":"0x6", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
},
"PORT52":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT52", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"52"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT52-EEPROM" },
{ "itf":"control", "dev":"PORT52-CTRL" }
]
}
},
"PORT52-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT52-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT52"},
"i2c":
{
"topo_info": { "parent_bus":"0x15", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT52-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT52-CTRL", "device_parent":"MUX3", "virt_parent":"PORT52"},
"i2c":
{
"topo_info": { "parent_bus":"0x15", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x06", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
},
"PORT53":
{
"dev_info": { "device_type":"QSFP28", "device_name":"PORT53", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"53"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT53-EEPROM" },
{ "itf":"control", "dev":"PORT53-CTRL" }
]
}
},
"PORT53-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT53-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT53"},
"i2c":
{
"topo_info": { "parent_bus":"0x16", "dev_addr":"0x50", "dev_type":"optoe1"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT53-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT53-CTRL", "device_parent":"MUX3", "virt_parent":"PORT53"},
"i2c":
{
"topo_info": { "parent_bus":"0x16", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x21", "attr_mask":"0x0", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
},
"PORT54":
{
"dev_info": { "device_type":"QSFP28", "device_name":"PORT54", "device_parent":"MUX3"},
"dev_attr": { "dev_idx":"54"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT54-EEPROM" },
{ "itf":"control", "dev":"PORT54-CTRL" }
]
}
},
"PORT54-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT54-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT54"},
"i2c":
{
"topo_info": { "parent_bus":"0x17", "dev_addr":"0x50", "dev_type":"optoe1"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT54-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT54-CTRL", "device_parent":"MUX3", "virt_parent":"PORT54"},
"i2c":
{
"topo_info": { "parent_bus":"0x17", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x21", "attr_mask":"0x4", "attr_cmpval":"0x0", "attr_len":"1"}
]
}
}
}

View File

@ -1,5 +1,5 @@
{
"skip_ledd": true,
"skip_thermalctld": true
"skip_pcied": true
}

View File

@ -0,0 +1,17 @@
{
"services_to_ignore": [],
"devices_to_ignore": [
"asic",
"psu.voltage",
"psu.temperature",
"PSU1_FAN1.speed",
"PSU2_FAN1.speed"
],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "STATUS_LED_COLOR_AMBER",
"normal": "STATUS_LED_COLOR_GREEN",
"booting": "STATUS_LED_COLOR_GREEN_BLINK"
}
}

View File

@ -74,6 +74,7 @@ QSFP_CHANNL_TX_FAULT_STATUS_OFFSET = 4
QSFP_CHANNL_TX_FAULT_STATUS_WIDTH = 1
QSFP_POWEROVERRIDE_OFFSET = 93
QSFP_POWEROVERRIDE_WIDTH = 1
QSFP_PAGE03_OFFSET = 384
QSFP_MODULE_THRESHOLD_OFFSET = 128
QSFP_MODULE_THRESHOLD_WIDTH = 24
QSFP_CHANNEL_THRESHOLD_OFFSET = 176
@ -152,7 +153,8 @@ class Sfp(SfpBase):
self.port_to_eeprom_mapping[x] = eeprom_path.format(self._port_to_i2c_mapping[x])
self.info_dict_keys = ['type', 'vendor_rev', 'serial', 'manufacturer', 'model', 'connector', 'encoding', 'ext_identifier',
'ext_rateselect_compliance', 'cable_type', 'cable_length', 'nominal_bit_rate', 'specification_compliance', 'vendor_date', 'vendor_oui']
'ext_rateselect_compliance', 'cable_type', 'cable_length', 'nominal_bit_rate', 'specification_compliance', 'vendor_date', 'vendor_oui',
'application_advertisement', 'type_abbrv_name']
self.dom_dict_keys = ['rx_los', 'tx_fault', 'reset_status', 'power_lpmode', 'tx_disable', 'tx_disable_channel', 'temperature', 'voltage',
'rx1power', 'rx2power', 'rx3power', 'rx4power', 'tx1bias', 'tx2bias', 'tx3bias', 'tx4bias', 'tx1power', 'tx2power', 'tx3power', 'tx4power']
@ -247,6 +249,7 @@ class Sfp(SfpBase):
specification_compliance |1*255VCHAR |specification compliance
vendor_date |1*255VCHAR |vendor date
vendor_oui |1*255VCHAR |vendor OUI
application_advertisement |1*255VCHAR |supported applications advertisement
========================================================================
"""
# check present status
@ -442,7 +445,7 @@ class Sfp(SfpBase):
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
if qsfp_dom_capability_raw is not None:
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
qsfp_dom_capability_raw, 0)
else:
return None
@ -598,10 +601,11 @@ class Sfp(SfpBase):
if not self.get_presence() or not sfpd_obj:
return {}
offset = QSFP_PAGE03_OFFSET
transceiver_dom_threshold_dict = dict.fromkeys(
self.threshold_dict_keys, 'N/A')
dom_thres_raw = self.__read_eeprom_specific_bytes(
QSFP_MODULE_THRESHOLD_OFFSET, QSFP_MODULE_THRESHOLD_WIDTH) if self.get_presence() and sfpd_obj else None
offset + QSFP_MODULE_THRESHOLD_OFFSET, QSFP_MODULE_THRESHOLD_WIDTH) if self.get_presence() and sfpd_obj else None
if dom_thres_raw:
module_threshold_values = sfpd_obj.parse_module_threshold_values(
@ -618,7 +622,7 @@ class Sfp(SfpBase):
transceiver_dom_threshold_dict['vcclowwarning'] = module_threshold_data['VccLowWarning']['value']
dom_thres_raw = self.__read_eeprom_specific_bytes(
QSFP_CHANNEL_THRESHOLD_OFFSET, QSFP_CHANNEL_THRESHOLD_WIDTH) if self.get_presence() and sfpd_obj else None
offset + QSFP_CHANNEL_THRESHOLD_OFFSET, QSFP_CHANNEL_THRESHOLD_WIDTH) if self.get_presence() and sfpd_obj else None
channel_threshold_values = sfpd_obj.parse_channel_threshold_values(
dom_thres_raw, 0)
channel_threshold_data = channel_threshold_values.get('data')
@ -648,11 +652,16 @@ class Sfp(SfpBase):
Returns:
A Boolean, True if reset enabled, False if disabled
"""
if self.port_num < 49: #Copper port, no sysfs
if self.port_num < 53: # non-QSFP ports don't support it.
return False
return False # CPLD port doesn't support this feature
reset_path="{}{}{}".format(CPLD_I2C_PATH , "module_reset_" , str(self.port_num))
val = self._api_helper.read_txt_file(reset_path)
if val is not None:
return int(val, 10) == 1
else:
return False
def get_rx_los(self):
"""
@ -827,7 +836,7 @@ class Sfp(SfpBase):
return False
dom_control_raw = self.__read_eeprom_specific_bytes(
QSFP_POWEROVERRIDE_OFFSET, QSFP_CONTROL_WIDTH) if self.get_presence() else None
QSFP_CONTROL_OFFSET, QSFP_CONTROL_WIDTH) if self.get_presence() else None
if dom_control_raw is not None:
dom_control_data = sfpd_obj.parse_control_bytes(dom_control_raw, 0)
power_set = (
@ -852,7 +861,7 @@ class Sfp(SfpBase):
return False
dom_control_raw = self.__read_eeprom_specific_bytes(
QSFP_POWEROVERRIDE_OFFSET, QSFP_CONTROL_WIDTH) if self.get_presence() else None
QSFP_CONTROL_OFFSET, QSFP_CONTROL_WIDTH) if self.get_presence() else None
if dom_control_raw is not None:
dom_control_data = sfpd_obj.parse_control_bytes(dom_control_raw, 0)
power_override = (
@ -939,23 +948,19 @@ class Sfp(SfpBase):
A boolean, True if successful, False if not
"""
# Check for invalid port_num
if self.port_num < 49: #Copper port, no sysfs
if self.port_num < 53: # non-QSFP ports don't support it.
return False
'''
reset_path = "{}{}{}".format(CPLD_I2C_PATH, 'module_reset_', self.port_num)
ret = self.__write_txt_file(reset_path, 1)
ret = self._api_helper.write_txt_file(reset_path, 1)
if ret is not True:
return ret
time.sleep(0.01)
ret = self.__write_txt_file(reset_path, 0)
ret = self._api_helper.write_txt_file(reset_path, 0)
time.sleep(0.2)
return ret
'''
return False #CPLD doens't support this feature
def tx_disable(self, tx_disable):
"""
@ -1167,3 +1172,20 @@ class Sfp(SfpBase):
A boolean value, True if device is operating properly, False if not
"""
return self.get_presence() and self.get_transceiver_bulk_status()
def get_position_in_parent(self):
"""
Retrieves 1-based relative physical position in parent device. If the agent cannot determine the parent-relative position
for some reason, or if the associated value of entPhysicalContainedIn is '0', then the value '-1' is returned
Returns:
integer: The 1-based relative physical position in parent device or -1 if cannot determine the position
"""
return self.port_num
def is_replaceable(self):
"""
Indicate whether this device is replaceable.
Returns:
bool: True if it is replaceable.
"""
return True

View File

@ -1,2 +1,2 @@
CONSOLE_SPEED=115200
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="tg3.short_preamble=1 tg3.bcm5718s_reset=1"
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="tg3.short_preamble=1 tg3.bcm5718s_reset=1 intel_iommu=off modprobe.blacklist=i2c-ismt,i2c_ismt,i2c-i801,i2c_i801"

View File

@ -1,4 +1,4 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
#polarity/lanemap is using TH2 style.
core_clock_frequency=1525
dpp_clock_ratio=2:3

View File

@ -32,7 +32,7 @@
[
"i2c-i801",
"i2c_dev",
"i2c_mux_pca954x force_deselect_on_exit=1",
"i2c_mux_pca954x",
"optoe"
],
"pddf_kos":

View File

@ -0,0 +1,54 @@
{
"PSU":
{
"psu_present":
{
"i2c":
{
"valmap": { "1":true, "0":false }
}
},
"psu_power_good":
{
"i2c":
{
"valmap": { "1": true, "0":false }
}
},
"psu_fan_dir":
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
}
},
"PSU_FAN_MAX_SPEED":"18000"
},
"FAN":
{
"direction":
{
"i2c":
{
"valmap": {"1":"EXHAUST", "0":"INTAKE"}
}
},
"present":
{
"i2c":
{
"valmap": {"1":true, "0":false}
}
},
"duty_cycle_to_pwm": "lambda dc: ((dc*100.0)/625 - 1)",
"pwm_to_duty_cycle": "lambda pwm: math.ceil(((pwm+1)*625.0)/100)"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"skip_ledd": true,
"skip_thermalctld": true
"skip_thermalctld": true,
"skip_pcied": true
}

View File

@ -1,4 +1,4 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
#polarity/lanemap is using TH2 style.
core_clock_frequency=1525
dpp_clock_ratio=2:3

View File

@ -33,7 +33,7 @@
[
"i2c-i801",
"i2c_dev",
"i2c_mux_pca954x force_deselect_on_exit=1",
"i2c_mux_pca954x",
"optoe"
],
"pddf_kos":
@ -50,6 +50,10 @@
"pddf_fan_module",
"pddf_led_module",
"pddf_sysstatus_module"
],
"custom_kos":
[
"pddf_custom_psu"
]
},
@ -1631,7 +1635,8 @@
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU2-PMBUS"}
{ "itf":"pmbus", "dev":"PSU2-PMBUS"},
{ "itf":"eeprom","dev":"PSU2-EEPROM" }
]
}
},
@ -1645,15 +1650,27 @@
"attr_list":
[
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x2", "attr_mask":"0x1", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"psu_model_name", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9a", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x2", "attr_mask":"0x14", "attr_cmpval":"0x14", "attr_len":"1"},
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"20" },
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"PSU2-EEPROM":
{
"dev_info": { "device_type":"PSU-EEPROM", "device_name":"PSU2-EEPROM", "device_parent":"MUX7", "virt_parent":"PSU2"},
"i2c":
{
"topo_info":{ "parent_bus":"0x31", "dev_addr":"0x50", "dev_type":"psu_eeprom"},
"attr_list":
[
{ "attr_name":"psu_model_name", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x15", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"11" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x2e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"17" }
]
}
},
@ -1666,7 +1683,8 @@
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU1-PMBUS" }
{ "itf":"pmbus", "dev":"PSU1-PMBUS" },
{ "itf":"eeprom","dev":"PSU1-EEPROM" }
]
}
},
@ -1680,19 +1698,30 @@
"attr_list":
[
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x2", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"},
{ "attr_name":"psu_model_name", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x9a", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x2", "attr_mask":"0x28", "attr_cmpval":"0x28", "attr_len":"1"},
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x9e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"20" },
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"PSU1-EEPROM":
{
"dev_info": { "device_type":"PSU-EEPROM", "device_name":"PSU1-EEPROM", "device_parent":"MUX7", "virt_parent":"PSU1"},
"i2c":
{
"topo_info":{ "parent_bus":"0x32", "dev_addr":"0x53", "dev_type":"psu_eeprom"},
"attr_list":
[
{ "attr_name":"psu_model_name", "attr_devaddr":"0x53", "attr_devtype":"eeprom", "attr_offset":"0x15", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"11" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x53", "attr_devtype":"eeprom", "attr_offset":"0x2e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"17" }
]
}
},
"FAN-CTRL":
{
"dev_info": { "device_type":"FAN", "device_name":"FAN-CTRL", "device_parent":"MUX7"},
@ -1762,7 +1791,7 @@
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP1", "device_parent":"MUX7"},
"i2c":
{
"topo_info": { "parent_bus":"0x37", "dev_addr":"0x4c", "dev_type":"lm75"},
"topo_info": { "parent_bus":"0x36", "dev_addr":"0x4c", "dev_type":"lm75"},
"attr_list":
[
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
@ -1825,7 +1854,7 @@
"topo_info": { "parent_bus":"0x37", "dev_addr":"0x4b", "dev_type":"lm75"},
"attr_list":
[
{ "attr_name": "temp1_max"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
{ "attr_name": "temp1_max_hyst"},
{ "attr_name": "temp1_input"}
]
@ -1860,8 +1889,8 @@
"i2c" : {
"attr_list":
[
{"attr_name":"blue", "descr" : "Blue", "bits" : "7", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "descr" : "Off", "bits" : "7", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"STATUS_LED_COLOR_BLUE", "descr" : "", "bits" : "7", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "descr" : "", "bits" : "7", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
]
}
},
@ -1873,9 +1902,9 @@
"i2c" : {
"attr_list":
[
{"attr_name":"green", "descr" : "Green", "bits" : "1:0", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"red", "descr" : "Red" ,"bits" : "1:0", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "descr" : "Off" ,"bits" : "1:0", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"STATUS_LED_COLOR_GREEN", "descr" : "", "bits" : "1:0", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_RED", "descr" : "" ,"bits" : "1:0", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "descr" : "" ,"bits" : "1:0", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
]
}

View File

@ -1,5 +1,6 @@
{
"skip_ledd": true,
"skip_pcied": true,
"skip_thermalctld": true
}

View File

@ -32,7 +32,7 @@
[
"i2c-i801",
"i2c_dev",
"i2c_mux_pca954x force_deselect_on_exit=1",
"i2c_mux_pca954x",
"optoe"
],
"pddf_kos":

View File

@ -33,7 +33,7 @@
"i2c-ismt",
"i2c-i801",
"i2c_dev",
"i2c_mux_pca954x force_deselect_on_exit=1",
"i2c_mux_pca954x",
"optoe"
],
"pddf_kos":

View File

@ -0,0 +1 @@
montara t1

View File

@ -0,0 +1 @@
CONSOLE_SPEED=57600

View File

@ -0,0 +1,2 @@
{%- set default_topo = 't0' %}
{%- include 'buffers_config.j2' %}

View File

@ -0,0 +1,79 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '4194304' %}
{% set ingress_lossy_pool_size = '7340032' %}
{% set egress_lossless_pool_size = '16777152' %}
{% set egress_lossy_pool_size = '7340032' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,32) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"ingress_lossy_pool": {
"size": "{{ ingress_lossy_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "{{ egress_lossless_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "{{ egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"4096",
"dynamic_th":"0"
},
"ingress_lossy_profile": {
"pool":"ingress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"egress_lossless_pool",
"size":"4096",
"dynamic_th":"7"
},
"egress_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"q_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|0-1": {
"profile" : "q_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}

View File

@ -0,0 +1,79 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '2097152' %}
{% set ingress_lossy_pool_size = '5242880' %}
{% set egress_lossless_pool_size = '16777152' %}
{% set egress_lossy_pool_size = '5242880' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,32) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"ingress_lossy_pool": {
"size": "{{ ingress_lossy_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "{{ egress_lossless_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "{{ egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"4096",
"dynamic_th":"0"
},
"ingress_lossy_profile": {
"pool":"ingress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"egress_lossless_pool",
"size":"4096",
"dynamic_th":"7"
},
"egress_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"q_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|0-1": {
"profile" : "q_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}

View File

@ -0,0 +1,164 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet4": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet8": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet12": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet16": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet20": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet24": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet28": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet32": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet36": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet40": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet44": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet48": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet52": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet56": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet60": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet64": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet68": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet72": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet76": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet80": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet84": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet88": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet92": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet96": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet100": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet104": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet108": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet112": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet116": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet120": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet124": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
}
}
}

View File

@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0

View File

@ -0,0 +1,33 @@
# name lanes alias index speed autoneg fec
Ethernet0 0,1,2,3 Ethernet0 1 100000 off rs
Ethernet4 4,5,6,7 Ethernet4 2 100000 off rs
Ethernet8 8,9,10,11 Ethernet8 3 100000 off rs
Ethernet12 12,13,14,15 Ethernet12 4 100000 off rs
Ethernet16 16,17,18,19 Ethernet16 5 100000 off rs
Ethernet20 20,21,22,23 Ethernet20 6 100000 off rs
Ethernet24 24,25,26,27 Ethernet24 7 100000 off rs
Ethernet28 28,29,30,31 Ethernet28 8 100000 off rs
Ethernet32 32,33,34,35 Ethernet32 9 100000 off rs
Ethernet36 36,37,38,39 Ethernet36 10 100000 off rs
Ethernet40 40,41,42,43 Ethernet40 11 100000 off rs
Ethernet44 44,45,46,47 Ethernet44 12 100000 off rs
Ethernet48 48,49,50,51 Ethernet48 13 100000 off rs
Ethernet52 52,53,54,55 Ethernet52 14 100000 off rs
Ethernet56 56,57,58,59 Ethernet56 15 100000 off rs
Ethernet60 60,61,62,63 Ethernet60 16 100000 off rs
Ethernet64 64,65,66,67 Ethernet64 17 100000 off rs
Ethernet68 68,69,70,71 Ethernet68 18 100000 off rs
Ethernet72 72,73,74,75 Ethernet72 19 100000 off rs
Ethernet76 76,77,78,79 Ethernet76 20 100000 off rs
Ethernet80 80,81,82,83 Ethernet80 21 100000 off rs
Ethernet84 84,85,86,87 Ethernet84 22 100000 off rs
Ethernet88 88,89,90,91 Ethernet88 23 100000 off rs
Ethernet92 92,93,94,95 Ethernet92 24 100000 off rs
Ethernet96 96,97,98,99 Ethernet96 25 100000 off rs
Ethernet100 100,101,102,103 Ethernet100 26 100000 off rs
Ethernet104 104,105,106,107 Ethernet104 27 100000 off rs
Ethernet108 108,109,110,111 Ethernet108 28 100000 off rs
Ethernet112 112,113,114,115 Ethernet112 29 100000 off rs
Ethernet116 116,117,118,119 Ethernet116 30 100000 off rs
Ethernet120 120,121,122,123 Ethernet120 31 100000 off rs
Ethernet124 124,125,126,127 Ethernet124 32 100000 off rs

View File

@ -0,0 +1,10 @@
{%- macro generate_tc_to_pg_map() %}
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"3": "3",
"4": "4"
}
},
{%- endmacro %}
{%- include 'qos_config.j2' %}

View File

@ -0,0 +1,3 @@
SAI_KEY_WARM_BOOT_WRITE_FILE=/var/warmboot/sai-warmboot.bin
SAI_KEY_WARM_BOOT_READ_FILE=/var/warmboot/sai-warmboot.bin

View File

@ -0,0 +1,40 @@
{
"instance": 0,
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"p4_devices": [
{
"device-id": 0,
"agent0": "lib/platform/x86_64-accton_wedge100bf_32qs-r0/libpltfm_mgr.so",
"p4_programs": [
{
"p4_pipelines": [
{
"p4_pipeline_name": "pipe",
"config": "share/switch/pipe/tofino.bin",
"context": "share/switch/pipe/context.json"
}
],
"program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}
]
}

View File

@ -0,0 +1,412 @@
- bus: '00'
dev: '00'
fn: '0'
id: 6f00
name: 'Host bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D DMI2
(rev 03)'
- bus: '00'
dev: '01'
fn: '0'
id: 6f02
name: 'PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI
Express Root Port 1 (rev 03)'
- bus: '00'
dev: '01'
fn: '1'
id: 6f03
name: 'PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI
Express Root Port 1 (rev 03)'
- bus: '00'
dev: '02'
fn: '0'
id: 6f04
name: 'PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI
Express Root Port 2 (rev 03)'
- bus: '00'
dev: '02'
fn: '2'
id: 6f06
name: 'PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI
Express Root Port 2 (rev 03)'
- bus: '00'
dev: '03'
fn: '0'
id: 6f08
name: 'PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI
Express Root Port 3 (rev 03)'
- bus: '00'
dev: '05'
fn: '0'
id: 6f28
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Map/VTd_Misc/System Management (rev 03)'
- bus: '00'
dev: '05'
fn: '1'
id: 6f29
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D IIO Hot Plug (rev 03)'
- bus: '00'
dev: '05'
fn: '2'
id: 6f2a
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D IIO RAS/Control Status/Global Errors (rev 03)'
- bus: '00'
dev: '05'
fn: '4'
id: 6f2c
name: 'PIC: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D I/O APIC (rev
03)'
- bus: '00'
dev: '14'
fn: '0'
id: 8c31
name: 'USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB
xHCI (rev 05)'
- bus: '00'
dev: 1d
fn: '0'
id: 8c26
name: 'USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB
EHCI #1 (rev 05)'
- bus: '00'
dev: 1f
fn: '0'
id: 8c54
name: 'ISA bridge: Intel Corporation C224 Series Chipset Family Server Standard
SKU LPC Controller (rev 05)'
- bus: '00'
dev: 1f
fn: '2'
id: 8c02
name: 'SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port
SATA Controller 1 [AHCI mode] (rev 05)'
- bus: '00'
dev: 1f
fn: '3'
id: 8c22
name: 'SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller
(rev 05)'
- bus: '00'
dev: 1f
fn: '6'
id: 8c24
name: 'Signal processing controller: Intel Corporation 8 Series Chipset Family Thermal
Management Controller (rev 05)'
- bus: '02'
dev: '00'
fn: '0'
id: '1533'
name: 'Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev
03)'
- bus: '03'
dev: '00'
fn: '0'
id: 6f50
name: 'System peripheral: Intel Corporation Xeon Processor D Family QuickData Technology
Register DMA Channel 0'
- bus: '03'
dev: '00'
fn: '1'
id: 6f51
name: 'System peripheral: Intel Corporation Xeon Processor D Family QuickData Technology
Register DMA Channel 1'
- bus: '03'
dev: '00'
fn: '2'
id: 6f52
name: 'System peripheral: Intel Corporation Xeon Processor D Family QuickData Technology
Register DMA Channel 2'
- bus: '03'
dev: '00'
fn: '3'
id: 6f53
name: 'System peripheral: Intel Corporation Xeon Processor D Family QuickData Technology
Register DMA Channel 3'
- bus: '04'
dev: '00'
fn: '0'
id: 10a6
name: 'Unassigned class [ff00]: Intel Corporation 82599EB 10-Gigabit Dummy Function'
- bus: '05'
dev: '00'
fn: '0'
id: '0010'
name: 'Unassigned class [ff00]: Device 1d1c:0010 (rev 10)'
- bus: ff
dev: 0b
fn: '0'
id: 6f81
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R3 QPI Link 0/1 (rev 03)'
- bus: ff
dev: 0b
fn: '1'
id: 6f36
name: 'Performance counters: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R3 QPI Link 0/1 (rev 03)'
- bus: ff
dev: 0b
fn: '2'
id: 6f37
name: 'Performance counters: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R3 QPI Link 0/1 (rev 03)'
- bus: ff
dev: 0b
fn: '3'
id: 6f76
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R3 QPI Link Debug (rev 03)'
- bus: ff
dev: 0c
fn: '0'
id: 6fe0
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0c
fn: '1'
id: 6fe1
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0c
fn: '2'
id: 6fe2
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0c
fn: '3'
id: 6fe3
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0f
fn: '0'
id: 6ff8
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0f
fn: '4'
id: 6ffc
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0f
fn: '5'
id: 6ffd
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: 0f
fn: '6'
id: 6ffe
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Caching Agent (rev 03)'
- bus: ff
dev: '10'
fn: '0'
id: 6f1d
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R2PCIe Agent (rev 03)'
- bus: ff
dev: '10'
fn: '1'
id: 6f34
name: 'Performance counters: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D R2PCIe Agent (rev 03)'
- bus: ff
dev: '10'
fn: '5'
id: 6f1e
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Ubox (rev 03)'
- bus: ff
dev: '10'
fn: '6'
id: 6f7d
name: 'Performance counters: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Ubox (rev 03)'
- bus: ff
dev: '10'
fn: '7'
id: 6f1f
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Ubox (rev 03)'
- bus: ff
dev: '12'
fn: '0'
id: 6fa0
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Home Agent 0 (rev 03)'
- bus: ff
dev: '12'
fn: '1'
id: 6f30
name: 'Performance counters: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Home Agent 0 (rev 03)'
- bus: ff
dev: '13'
fn: '0'
id: 6fa8
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Target Address/Thermal/RAS (rev 03)'
- bus: ff
dev: '13'
fn: '1'
id: 6f71
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Target Address/Thermal/RAS (rev 03)'
- bus: ff
dev: '13'
fn: '2'
id: 6faa
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel Target Address Decoder (rev 03)'
- bus: ff
dev: '13'
fn: '3'
id: 6fab
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel Target Address Decoder (rev 03)'
- bus: ff
dev: '13'
fn: '4'
id: 6fac
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel Target Address Decoder (rev 03)'
- bus: ff
dev: '13'
fn: '5'
id: 6fad
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel Target Address Decoder (rev 03)'
- bus: ff
dev: '13'
fn: '6'
id: 6fae
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Channel 0/1 Broadcast (rev 03)'
- bus: ff
dev: '13'
fn: '7'
id: 6faf
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Global Broadcast (rev 03)'
- bus: ff
dev: '14'
fn: '0'
id: 6fb0
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 0 Thermal Control (rev 03)'
- bus: ff
dev: '14'
fn: '1'
id: 6fb1
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 1 Thermal Control (rev 03)'
- bus: ff
dev: '14'
fn: '2'
id: 6fb2
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 0 Error (rev 03)'
- bus: ff
dev: '14'
fn: '3'
id: 6fb3
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 1 Error (rev 03)'
- bus: ff
dev: '14'
fn: '4'
id: 6fbc
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Channel 0/1 Interface (rev 03)'
- bus: ff
dev: '14'
fn: '5'
id: 6fbd
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Channel 0/1 Interface (rev 03)'
- bus: ff
dev: '14'
fn: '6'
id: 6fbe
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Channel 0/1 Interface (rev 03)'
- bus: ff
dev: '14'
fn: '7'
id: 6fbf
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D DDRIO Channel 0/1 Interface (rev 03)'
- bus: ff
dev: '15'
fn: '0'
id: 6fb4
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 2 Thermal Control (rev 03)'
- bus: ff
dev: '15'
fn: '1'
id: 6fb5
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 3 Thermal Control (rev 03)'
- bus: ff
dev: '15'
fn: '2'
id: 6fb6
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 2 Error (rev 03)'
- bus: ff
dev: '15'
fn: '3'
id: 6fb7
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Memory Controller 0 - Channel 3 Error (rev 03)'
- bus: ff
dev: 1e
fn: '0'
id: 6f98
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1e
fn: '1'
id: 6f99
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1e
fn: '2'
id: 6f9a
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1e
fn: '3'
id: 6fc0
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1e
fn: '4'
id: 6f9c
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1f
fn: '0'
id: 6f88
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'
- bus: ff
dev: 1f
fn: '2'
id: 6f8a
name: 'System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon
D Power Control Unit (rev 03)'

View File

@ -0,0 +1,499 @@
{
"chassis": {
"name": "Wedge100BF-32QS-O-AC-F-BF",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
}
],
"fan_drawers": [
{
"name": "fantray-1",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
}
]
}
],
"psus": [
{
"name": "psu-1"
},
{
"name": "psu-2"
}
],
"thermals": [
{
"name": "com_e_driver-i2c-4-33:memory-temp"
},
{
"name": "com_e_driver-i2c-4-33:cpu-temp"
},
{
"name": "pfe1100-i2c-7-59:temp1"
},
{
"name": "pfe1100-i2c-7-59:temp2"
},
{
"name": "pfe1100-i2c-7-5a:temp1"
},
{
"name": "pfe1100-i2c-7-5a:temp2"
},
{
"name": "tmp75-i2c-3-48:outlet-middle-temp"
},
{
"name": "tmp75-i2c-3-49:inlet-middle-temp"
},
{
"name": "tmp75-i2c-3-4a:inlet-left-temp"
},
{
"name": "tmp75-i2c-3-4b:switch-temp"
},
{
"name": "tmp75-i2c-3-4c:inlet-right-temp"
},
{
"name": "tmp75-i2c-8-48:outlet-right-temp"
},
{
"name": "tmp75-i2c-8-49:outlet-left-temp"
},
{
"name": "coretemp-isa-0000:package-id-0"
},
{
"name": "coretemp-isa-0000:core-0"
},
{
"name": "coretemp-isa-0000:core-1"
},
{
"name": "coretemp-isa-0000:core-2"
},
{
"name": "coretemp-isa-0000:core-3"
},
{
"name": "pch_haswell-virtual-0:temp1"
}
],
"sfps": [
{
"name": "sfp1"
},
{
"name": "sfp2"
},
{
"name": "sfp3"
},
{
"name": "sfp4"
},
{
"name": "sfp5"
},
{
"name": "sfp6"
},
{
"name": "sfp7"
},
{
"name": "sfp8"
},
{
"name": "sfp9"
},
{
"name": "sfp10"
},
{
"name": "sfp11"
},
{
"name": "sfp12"
},
{
"name": "sfp13"
},
{
"name": "sfp14"
},
{
"name": "sfp15"
},
{
"name": "sfp16"
},
{
"name": "sfp17"
},
{
"name": "sfp18"
},
{
"name": "sfp19"
},
{
"name": "sfp20"
},
{
"name": "sfp21"
},
{
"name": "sfp22"
},
{
"name": "sfp23"
},
{
"name": "sfp24"
},
{
"name": "sfp25"
},
{
"name": "sfp26"
},
{
"name": "sfp27"
},
{
"name": "sfp28"
},
{
"name": "sfp29"
},
{
"name": "sfp30"
},
{
"name": "sfp31"
},
{
"name": "sfp32"
}
]
},
"interfaces": {
"Ethernet0": {
"index": "1,1,1,1",
"lanes": "0,1,2,3",
"breakout_modes": {
"1x100G[40G]": ["Ethernet0"],
"2x50G": ["Ethernet0", "Ethernet2"],
"4x25G[10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3"]
}
},
"Ethernet4": {
"index": "2,2,2,2",
"lanes": "4,5,6,7",
"breakout_modes": {
"1x100G[40G]": ["Ethernet4"],
"2x50G": ["Ethernet4", "Ethernet6"],
"4x25G[10G]": ["Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"]
}
},
"Ethernet8": {
"index": "3,3,3,3",
"lanes": "8,9,10,11",
"breakout_modes": {
"1x100G[40G]": ["Ethernet8"],
"2x50G": ["Ethernet8", "Ethernet10"],
"4x25G[10G]": ["Ethernet8", "Ethernet9", "Ethernet10", "Ethernet11"]
}
},
"Ethernet12": {
"index": "4,4,4,4",
"lanes": "12,13,14,15",
"breakout_modes": {
"1x100G[40G]": ["Ethernet12"],
"2x50G": ["Ethernet12", "Ethernet14"],
"4x25G[10G]": ["Ethernet12", "Ethernet13", "Ethernet14", "Ethernet15"]
}
},
"Ethernet16": {
"index": "5,5,5,5",
"lanes": "16,17,18,19",
"breakout_modes": {
"1x100G[40G]": ["Ethernet16"],
"2x50G": ["Ethernet16", "Ethernet18"],
"4x25G[10G]": ["Ethernet16", "Ethernet17", "Ethernet18", "Ethernet19"]
}
},
"Ethernet20": {
"index": "6,6,6,6",
"lanes": "20,21,22,23",
"breakout_modes": {
"1x100G[40G]": ["Ethernet20"],
"2x50G": ["Ethernet20", "Ethernet22"],
"4x25G[10G]": ["Ethernet20", "Ethernet21", "Ethernet22", "Ethernet23"]
}
},
"Ethernet24": {
"index": "7,7,7,7",
"lanes": "24,25,26,27",
"breakout_modes": {
"1x100G[40G]": ["Ethernet24"],
"2x50G": ["Ethernet24", "Ethernet26"],
"4x25G[10G]": ["Ethernet24", "Ethernet25", "Ethernet26", "Ethernet27"]
}
},
"Ethernet28": {
"index": "8,8,8,8",
"lanes": "28,29,30,31",
"breakout_modes": {
"1x100G[40G]": ["Ethernet28"],
"2x50G": ["Ethernet28", "Ethernet30"],
"4x25G[10G]": ["Ethernet28", "Ethernet29", "Ethernet30", "Ethernet31"]
}
},
"Ethernet32": {
"index": "9,9,9,9",
"lanes": "32,33,34,35",
"breakout_modes": {
"1x100G[40G]": ["Ethernet32"],
"2x50G": ["Ethernet32", "Ethernet34"],
"4x25G[10G]": ["Ethernet32", "Ethernet33", "Ethernet34", "Ethernet35"]
}
},
"Ethernet36": {
"index": "10,10,10,10",
"lanes": "36,37,38,39",
"breakout_modes": {
"1x100G[40G]": ["Ethernet36"],
"2x50G": ["Ethernet36", "Ethernet38"],
"4x25G[10G]": ["Ethernet36", "Ethernet37", "Ethernet38", "Ethernet39"]
}
},
"Ethernet40": {
"index": "11,11,11,11",
"lanes": "40,41,42,43",
"breakout_modes": {
"1x100G[40G]": ["Ethernet40"],
"2x50G": ["Ethernet40", "Ethernet42"],
"4x25G[10G]": ["Ethernet40", "Ethernet41", "Ethernet42", "Ethernet43"]
}
},
"Ethernet44": {
"index": "12,12,12,12",
"lanes": "44,45,46,47",
"breakout_modes": {
"1x100G[40G]": ["Ethernet44"],
"2x50G": ["Ethernet44", "Ethernet46"],
"4x25G[10G]": ["Ethernet44", "Ethernet45", "Ethernet46", "Ethernet47"]
}
},
"Ethernet48": {
"index": "13,13,13,13",
"lanes": "48,49,50,51",
"breakout_modes": {
"1x100G[40G]": ["Ethernet48"],
"2x50G": ["Ethernet48", "Ethernet50"],
"4x25G[10G]": ["Ethernet48", "Ethernet49", "Ethernet50", "Ethernet51"]
}
},
"Ethernet52": {
"index": "14,14,14,14",
"lanes": "52,53,54,55",
"breakout_modes": {
"1x100G[40G]": ["Ethernet52"],
"2x50G": ["Ethernet52", "Ethernet54"],
"4x25G[10G]": ["Ethernet52", "Ethernet53", "Ethernet54", "Ethernet55"]
}
},
"Ethernet56": {
"index": "15,15,15,15",
"lanes": "56,57,58,59",
"breakout_modes": {
"1x100G[40G]": ["Ethernet56"],
"2x50G": ["Ethernet56", "Ethernet58"],
"4x25G[10G]": ["Ethernet56", "Ethernet57", "Ethernet58", "Ethernet59"]
}
},
"Ethernet60": {
"index": "16,16,16,16",
"lanes": "60,61,62,63",
"breakout_modes": {
"1x100G[40G]": ["Ethernet60"],
"2x50G": ["Ethernet60", "Ethernet62"],
"4x25G[10G]": ["Ethernet60", "Ethernet61", "Ethernet62", "Ethernet63"]
}
},
"Ethernet64": {
"index": "17,17,17,17",
"lanes": "64,65,66,67",
"breakout_modes": {
"1x100G[40G]": ["Ethernet64"],
"2x50G": ["Ethernet64", "Ethernet66"],
"4x25G[10G]": ["Ethernet64", "Ethernet65", "Ethernet66", "Ethernet67"]
}
},
"Ethernet68": {
"index": "18,18,18,18",
"lanes": "68,69,70,71",
"breakout_modes": {
"1x100G[40G]": ["Ethernet68"],
"2x50G": ["Ethernet68", "Ethernet70"],
"4x25G[10G]": ["Ethernet68", "Ethernet69", "Ethernet70", "Ethernet71"]
}
},
"Ethernet72": {
"index": "19,19,19,19",
"lanes": "72,73,74,75",
"breakout_modes": {
"1x100G[40G]": ["Ethernet72"],
"2x50G": ["Ethernet72", "Ethernet74"],
"4x25G[10G]": ["Ethernet72", "Ethernet73", "Ethernet74", "Ethernet75"]
}
},
"Ethernet76": {
"index": "20,20,20,20",
"lanes": "76,77,78,79",
"breakout_modes": {
"1x100G[40G]": ["Ethernet76"],
"2x50G": ["Ethernet76", "Ethernet78"],
"4x25G[10G]": ["Ethernet76", "Ethernet77", "Ethernet78", "Ethernet79"]
}
},
"Ethernet80": {
"index": "21,21,21,21",
"lanes": "80,81,82,83",
"breakout_modes": {
"1x100G[40G]": ["Ethernet80"],
"2x50G": ["Ethernet80", "Ethernet82"],
"4x25G[10G]": ["Ethernet80", "Ethernet81", "Ethernet82", "Ethernet83"]
}
},
"Ethernet84": {
"index": "22,22,22,22",
"lanes": "84,85,86,87",
"breakout_modes": {
"1x100G[40G]": ["Ethernet84"],
"2x50G": ["Ethernet84", "Ethernet86"],
"4x25G[10G]": ["Ethernet84", "Ethernet85", "Ethernet86", "Ethernet87"]
}
},
"Ethernet88": {
"index": "23,23,23,23",
"lanes": "88,89,90,91",
"breakout_modes": {
"1x100G[40G]": ["Ethernet88"],
"2x50G": ["Ethernet88", "Ethernet90"],
"4x25G[10G]": ["Ethernet88", "Ethernet89", "Ethernet90", "Ethernet91"]
}
},
"Ethernet92": {
"index": "24,24,24,24",
"lanes": "92,93,94,95",
"breakout_modes": {
"1x100G[40G]": ["Ethernet92"],
"2x50G": ["Ethernet92", "Ethernet94"],
"4x25G[10G]": ["Ethernet92", "Ethernet93", "Ethernet94", "Ethernet95"]
}
},
"Ethernet96": {
"index": "25,25,25,25",
"lanes": "96,97,98,99",
"breakout_modes": {
"1x100G[40G]": ["Ethernet96"],
"2x50G": ["Ethernet96", "Ethernet98"],
"4x25G[10G]": ["Ethernet96", "Ethernet97", "Ethernet98", "Ethernet99"]
}
},
"Ethernet100": {
"index": "26,26,26,26",
"lanes": "100,101,102,103",
"breakout_modes": {
"1x100G[40G]": ["Ethernet100"],
"2x50G": ["Ethernet100", "Ethernet102"],
"4x25G[10G]": ["Ethernet100", "Ethernet101", "Ethernet102", "Ethernet103"]
}
},
"Ethernet104": {
"index": "27,27,27,27",
"lanes": "104,105,106,107",
"breakout_modes": {
"1x100G[40G]": ["Ethernet104"],
"2x50G": ["Ethernet104", "Ethernet106"],
"4x25G[10G]": ["Ethernet104", "Ethernet105", "Ethernet106", "Ethernet107"]
}
},
"Ethernet108": {
"index": "28,28,28,28",
"lanes": "108,109,110,111",
"breakout_modes": {
"1x100G[40G]": ["Ethernet108"],
"2x50G": ["Ethernet108", "Ethernet110"],
"4x25G[10G]": ["Ethernet108", "Ethernet109", "Ethernet110", "Ethernet111"]
}
},
"Ethernet112": {
"index": "29,29,29,29",
"lanes": "112,113,114,115",
"breakout_modes": {
"1x100G[40G]": ["Ethernet112"],
"2x50G": ["Ethernet112", "Ethernet114"],
"4x25G[10G]": ["Ethernet112", "Ethernet113", "Ethernet112", "Ethernet113"]
}
},
"Ethernet116": {
"index": "30,30,30,30",
"lanes": "116,117,118,119",
"breakout_modes": {
"1x100G[40G]": ["Ethernet116"],
"2x50G": ["Ethernet116", "Ethernet118"],
"4x25G[10G]": ["Ethernet116", "Ethernet117", "Ethernet118", "Ethernet119"]
}
},
"Ethernet120": {
"index": "31,31,31,31",
"lanes": "120,121,122,123",
"breakout_modes": {
"1x100G[40G]": ["Ethernet120"],
"2x50G": ["Ethernet120", "Ethernet122"],
"4x25G[10G]": ["Ethernet120", "Ethernet121", "Ethernet122", "Ethernet123"]
}
},
"Ethernet124": {
"index": "32,32,32,32",
"lanes": "124,125,126,127",
"breakout_modes": {
"1x100G[40G]": ["Ethernet124"],
"2x50G": ["Ethernet124", "Ethernet126"],
"4x25G[10G]": ["Ethernet124", "Ethernet125", "Ethernet126", "Ethernet127"]
}
}
}
}

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1,8 @@
{
"chassis": {
"Wedge100BF-32QS-O-AC-F": {
"component": {
}
}
}
}

View File

@ -0,0 +1,9 @@
{
"skip_pcied": false,
"skip_fancontrol": true,
"skip_thermalctld": false,
"skip_ledd": true,
"skip_xcvrd": false,
"skip_psud": false,
"skip_syseepromd": false
}

View File

@ -1 +1 @@
Arista-7050-QX-32S t1
Arista-7050QX-32S t1

View File

@ -1,4 +1,4 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1
host_as_route_disable=1

View File

@ -1,4 +1,4 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1
host_as_route_disable=1

View File

@ -395,7 +395,7 @@ port_phy_addr=0xff
robust_hash_disable_egress_vlan=1
robust_hash_disable_mpls=1
robust_hash_disable_vlan=1
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
sai_tunnel_support=1
serdes_core_rx_polarity_flip_physical{1}=0x8
serdes_core_rx_polarity_flip_physical{5}=0x2

View File

@ -0,0 +1,3 @@
# Increase PCIe timeout value to 210ms
setpci -s01:00.0 CAP_EXP+0x28.B=6
setpci -s01:00.1 CAP_EXP+0x28.B=6

View File

@ -0,0 +1,12 @@
{
"chassis": {
"name": "DCS-7800A-SUP1A",
"components": [],
"fans": [],
"fan_drawers": [],
"psus": [],
"thermals": [],
"sfps": []
},
"interfaces": {}
}

View File

@ -0,0 +1,173 @@
{
"chassis": {
"name": "7800R3-48CQ2-LC",
"components": [],
"fans": [],
"fan_drawers": [],
"psus": [],
"thermals": [
{
"name": "Cpu temp sensor"
},
{
"name": "Center back"
},
{
"name": "Fap0 core0"
},
{
"name": "Fap0 core1"
},
{
"name": "PCIE"
}
],
"sfps": [
{
"name": "qsfp1"
},
{
"name": "qsfp2"
},
{
"name": "qsfp3"
},
{
"name": "qsfp4"
},
{
"name": "qsfp5"
},
{
"name": "qsfp6"
},
{
"name": "qsfp7"
},
{
"name": "qsfp8"
},
{
"name": "qsfp9"
},
{
"name": "qsfp10"
},
{
"name": "qsfp11"
},
{
"name": "qsfp12"
},
{
"name": "qsfp13"
},
{
"name": "qsfp14"
},
{
"name": "qsfp15"
},
{
"name": "qsfp16"
},
{
"name": "qsfp17"
},
{
"name": "qsfp18"
},
{
"name": "qsfp19"
},
{
"name": "qsfp20"
},
{
"name": "qsfp21"
},
{
"name": "qsfp22"
},
{
"name": "qsfp23"
},
{
"name": "qsfp24"
},
{
"name": "qsfp25"
},
{
"name": "qsfp26"
},
{
"name": "qsfp27"
},
{
"name": "qsfp28"
},
{
"name": "qsfp29"
},
{
"name": "qsfp30"
},
{
"name": "qsfp31"
},
{
"name": "qsfp32"
},
{
"name": "qsfp33"
},
{
"name": "qsfp34"
},
{
"name": "qsfp35"
},
{
"name": "qsfp36"
},
{
"name": "qsfp37"
},
{
"name": "qsfp38"
},
{
"name": "qsfp39"
},
{
"name": "qsfp40"
},
{
"name": "qsfp41"
},
{
"name": "qsfp42"
},
{
"name": "qsfp43"
},
{
"name": "qsfp44"
},
{
"name": "qsfp45"
},
{
"name": "qsfp46"
},
{
"name": "qsfp47"
},
{
"name": "qsfp48"
}
]
},
"interfaces": {}
}

View File

@ -0,0 +1 @@
../x86_64-arista_7800r3_48cq2_lc/platform.json

View File

@ -21,10 +21,9 @@
"name": "counter-rotating-fan-6"
}
],
"fan_drawers":[
"fan_drawers": [
{
"name": "fantray",
"num_fans" : 6,
"name": "fantray-1",
"fans": [
{
"name": "counter-rotating-fan-1"
@ -57,13 +56,49 @@
],
"thermals": [
{
"name": "tmp75-i2c-3-4b:switch-temp"
"name": "com_e_driver-i2c-4-33:cpu-temp"
},
{
"name": "com_e_driver-i2c-4-33:memory-temp"
},
{
"name": "com_e_driver-i2c-4-33:cpu-temp"
"name": "psu_driver-i2c-7-59:psu2-temp1"
},
{
"name": "psu_driver-i2c-7-59:psu2-temp2"
},
{
"name": "psu_driver-i2c-7-59:psu2-temp3"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp1"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp2"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp3"
},
{
"name": "tmp75-i2c-3-48:chip-temp"
},
{
"name": "tmp75-i2c-3-49:exhaust2-temp"
},
{
"name": "tmp75-i2c-3-4a:exhaust-temp"
},
{
"name": "tmp75-i2c-3-4b:intake-temp"
},
{
"name": "tmp75-i2c-3-4c:tofino-temp"
},
{
"name": "tmp75-i2c-3-4d:intake2-temp"
},
{
"name": "coretemp-isa-0000:package-id-0"
},
{
"name": "coretemp-isa-0000:core-0"
@ -76,128 +111,104 @@
},
{
"name": "coretemp-isa-0000:core-3"
},
{
"name": "coretemp-isa-0000:package-id-0"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp1"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp2"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp3"
},
{
"name": "tmp75-i2c-3-4a:inlet-left-temp"
},
{
"name": "tmp75-i2c-3-4c:inlet-right-temp"
},
{
"name": "tmp75-i2c-3-4d:temp1"
},
{
"name": "tmp75-i2c-3-48:outlet-middle-temp"
},
{
"name": "tmp75-i2c-3-49:inlet-middle-temp"
}
],
"sfps": [
{
"name": "Ethernet0"
"name": "sfp1"
},
{
"name": "Ethernet8"
"name": "sfp2"
},
{
"name": "Ethernet16"
"name": "sfp3"
},
{
"name": "Ethernet32"
"name": "sfp4"
},
{
"name": "Ethernet40"
"name": "sfp5"
},
{
"name": "Ethernet48"
"name": "sfp6"
},
{
"name": "Ethernet56"
"name": "sfp7"
},
{
"name": "Ethernet64"
"name": "sfp8"
},
{
"name": "Ethernet72"
"name": "sfp9"
},
{
"name": "Ethernet80"
"name": "sfp10"
},
{
"name": "Ethernet88"
"name": "sfp11"
},
{
"name": "Ethernet96"
"name": "sfp12"
},
{
"name": "Ethernet104"
"name": "sfp13"
},
{
"name": "Ethernet112"
"name": "sfp14"
},
{
"name": "Ethernet120"
"name": "sfp15"
},
{
"name": "Ethernet128"
"name": "sfp16"
},
{
"name": "Ethernet136"
"name": "sfp17"
},
{
"name": "Ethernet144"
"name": "sfp18"
},
{
"name": "Ethernet152"
"name": "sfp19"
},
{
"name": "Ethernet160"
"name": "sfp20"
},
{
"name": "Ethernet168"
"name": "sfp21"
},
{
"name": "Ethernet176"
"name": "sfp22"
},
{
"name": "Ethernet184"
"name": "sfp23"
},
{
"name": "Ethernet192"
"name": "sfp24"
},
{
"name": "Ethernet200"
"name": "sfp25"
},
{
"name": "Ethernet208"
"name": "sfp26"
},
{
"name": "Ethernet216"
"name": "sfp27"
},
{
"name": "Ethernet224"
"name": "sfp28"
},
{
"name": "Ethernet232"
"name": "sfp29"
},
{
"name": "Ethernet240"
"name": "sfp30"
},
{
"name": "Ethernet248"
"name": "sfp31"
},
{
"name": "sfp32"
}
]
},
@ -207,7 +218,7 @@
"lanes": "0,1,2,3,4,5,6,7",
"breakout_modes": {
"1x400G[200G]": ["Ethernet0"],
"2x200G[100G,40G]": ["Ethernet0, Ethernet4"],
"2x200G[100G,40G]": ["Ethernet0", "Ethernet4"],
"4x100G[50G]": ["Ethernet0", "Ethernet2", "Ethernet4", "Ethernet6"],
"8x50G[25G,10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],
"1x200G[100G,40G](4)+4x50G[25G,10G](4)": ["Ethernet0", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],

View File

@ -4,6 +4,6 @@
"skip_thermalctld": false,
"skip_ledd": true,
"skip_xcvrd": false,
"skip_psud": true,
"skip_psud": false,
"skip_syseepromd": false
}

View File

@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}

View File

@ -18,10 +18,9 @@
"name": "counter-rotating-fan-5"
}
],
"fan_drawers":[
"fan_drawers": [
{
"name": "fantray",
"num_fans" : 5,
"name": "fantray-1",
"fans": [
{
"name": "counter-rotating-fan-1"
@ -110,100 +109,100 @@
],
"sfps": [
{
"name": "Ethernet0"
"name": "sfp1"
},
{
"name": "Ethernet4"
"name": "sfp2"
},
{
"name": "Ethernet8"
"name": "sfp3"
},
{
"name": "Ethernet12"
"name": "sfp4"
},
{
"name": "Ethernet16"
"name": "sfp5"
},
{
"name": "Ethernet20"
"name": "sfp6"
},
{
"name": "Ethernet24"
"name": "sfp7"
},
{
"name": "Ethernet28"
"name": "sfp8"
},
{
"name": "Ethernet32"
"name": "sfp9"
},
{
"name": "Ethernet36"
"name": "sfp10"
},
{
"name": "Ethernet40"
"name": "sfp11"
},
{
"name": "Ethernet44"
"name": "sfp12"
},
{
"name": "Ethernet48"
"name": "sfp13"
},
{
"name": "Ethernet52"
"name": "sfp14"
},
{
"name": "Ethernet56"
"name": "sfp15"
},
{
"name": "Ethernet60"
"name": "sfp16"
},
{
"name": "Ethernet64"
"name": "sfp17"
},
{
"name": "Ethernet68"
"name": "sfp18"
},
{
"name": "Ethernet72"
"name": "sfp19"
},
{
"name": "Ethernet76"
"name": "sfp20"
},
{
"name": "Ethernet80"
"name": "sfp21"
},
{
"name": "Ethernet84"
"name": "sfp22"
},
{
"name": "Ethernet88"
"name": "sfp23"
},
{
"name": "Ethernet92"
"name": "sfp24"
},
{
"name": "Ethernet96"
"name": "sfp25"
},
{
"name": "Ethernet100"
"name": "sfp26"
},
{
"name": "Ethernet104"
"name": "sfp27"
},
{
"name": "Ethernet108"
"name": "sfp28"
},
{
"name": "Ethernet112"
"name": "sfp29"
},
{
"name": "Ethernet116"
"name": "sfp30"
},
{
"name": "Ethernet120"
"name": "sfp31"
},
{
"name": "Ethernet124"
"name": "sfp32"
}
]
},

View File

@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}

View File

@ -1,4 +1,89 @@
{
"chassis": {
"name": "Mavericks",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
},
{
"name": "counter-rotating-fan-6"
},
{
"name": "counter-rotating-fan-7"
},
{
"name": "counter-rotating-fan-8"
},
{
"name": "counter-rotating-fan-9"
},
{
"name": "counter-rotating-fan-10"
}
],
"fan_drawers": [
{
"name": "fantray-1",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
}
]
},
{
"name": "fantray-2",
"fans": [
{
"name": "counter-rotating-fan-6"
},
{
"name": "counter-rotating-fan-7"
},
{
"name": "counter-rotating-fan-8"
},
{
"name": "counter-rotating-fan-9"
},
{
"name": "counter-rotating-fan-10"
}
]
}
]
},
"psus": [
{
"name": "psu-1"
},
{
"name": "psu-2"
}
],
"interfaces": {
"Ethernet0": {
"index": "1,1,1,1",

View File

@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}

View File

@ -1,4 +1,4 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
help_cli_enable=1
ifp_inports_support_enable=1
ipv6_lpm_128b_enable=0x1

View File

@ -1,9 +1,5 @@
#Enable all ports
port all en=1
sleep 6
#linkscan 250000; port xe,ce linkscan=on
#Load LED
linkscan off
m0 load 0 0x3800 /usr/share/sonic/platform/custom.bin
sleep 10
led auto on; led start
linkscan on

View File

@ -47,16 +47,16 @@ class SfpUtil(SfpUtilBase):
if port_num in self.qsfp_ports:
self._port_name = "QSFP" + str(port_num - self.QSFP_PORT_START + 1)
else:
self._port_name = "SFP" + str(port_num)
self._port_name = "SFP" + str(port_num - self.QSFP_PORT_END)
return self._port_name
# def get_eeprom_dom_raw(self, port_num):
# if port_num in self.qsfp_ports:
# # QSFP DOM EEPROM is also at addr 0x50 and thus also stored in eeprom_ifraw
# return None
# else:
# # Read dom eeprom at addr 0x51
# return self._read_eeprom_devid(port_num, self.DOM_EEPROM_ADDR, 256)
def get_eeprom_dom_raw(self, port_num):
if port_num in self.qsfp_ports:
# QSFP DOM EEPROM is also at addr 0x50 and thus also stored in eeprom_ifraw
return None
else:
# Read dom eeprom as offset 0x100 on optoe eeprom
return self._read_eeprom_devid(port_num, self.DOM_EEPROM_ADDR, 256)
def __init__(self):
# Override port_to_eeprom_mapping for class initialization

View File

@ -38,9 +38,14 @@ class SfpEvent:
for index in range(self.num_sfp):
port_num = index + 1
if port_num <= 32:
port_name = "QSFP{}".format(port_num)
port_type = "qsfp"
sysfs_prs_file = "{}_modprs".format(port_type)
else:
port_name = "SFP{}".format(port_num - 32)
port_type = "sfp"
sysfs_prs_file = "{}_modabs".format(port_type)
sfp_info_obj[index] = {}
sfp_info_obj[index]['intmask_sysfs'] = self.PATH_INTMASK_SYSFS.format(

View File

@ -1,5 +1,5 @@
{
"port_num": 32,
"port_num": 33,
"eeprom_path": "/sys/bus/i2c/devices/i2c-{0}/{0}-0050/eeprom",
"port_i2c_mapping": [
2,
@ -33,12 +33,13 @@
30,
31,
32,
33
33,
34
],
"get_presence": {
"output_source": "sysfs_value",
"sysfs_path": "/sys/devices/platform/switchboard/SFF/{}/qsfp_modprs",
"argument": "$ref:_port_name",
"sysfs_path": "/sys/devices/platform/switchboard/SFF/{}",
"argument": "$ref:_presence_file",
"output_translator": "False if '{}' == '1' else True"
},
"get_lpmode": {
@ -101,6 +102,42 @@
"QSFP29",
"QSFP30",
"QSFP31",
"QSFP32"
"QSFP32",
"SFP1"
],
"_presence_file": [
"QSFP1/qsfp_modprs",
"QSFP2/qsfp_modprs",
"QSFP3/qsfp_modprs",
"QSFP4/qsfp_modprs",
"QSFP5/qsfp_modprs",
"QSFP6/qsfp_modprs",
"QSFP7/qsfp_modprs",
"QSFP8/qsfp_modprs",
"QSFP9/qsfp_modprs",
"QSFP10/qsfp_modprs",
"QSFP11/qsfp_modprs",
"QSFP12/qsfp_modprs",
"QSFP13/qsfp_modprs",
"QSFP14/qsfp_modprs",
"QSFP15/qsfp_modprs",
"QSFP16/qsfp_modprs",
"QSFP17/qsfp_modprs",
"QSFP18/qsfp_modprs",
"QSFP19/qsfp_modprs",
"QSFP20/qsfp_modprs",
"QSFP21/qsfp_modprs",
"QSFP22/qsfp_modprs",
"QSFP23/qsfp_modprs",
"QSFP24/qsfp_modprs",
"QSFP25/qsfp_modprs",
"QSFP26/qsfp_modprs",
"QSFP27/qsfp_modprs",
"QSFP28/qsfp_modprs",
"QSFP29/qsfp_modprs",
"QSFP30/qsfp_modprs",
"QSFP31/qsfp_modprs",
"QSFP32/qsfp_modprs",
"SFP1/sfp_modabs"
]
}

View File

@ -0,0 +1,597 @@
{
"macleds" : {
"polarity" : 1,
"cpumode" : 1,
"maps" : [
{
"port_id" : 32,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port0/brightness"
},
{
"port_id" : 33,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port1/brightness"
},
{
"port_id" : 34,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port2/brightness"
},
{
"port_id" : 35,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port3/brightness"
},
{
"port_id" : 0,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port4/brightness"
},
{
"port_id" : 4,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port5/brightness"
},
{
"port_id" : 8,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port6/brightness"
},
{
"port_id" : 12,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port7/brightness"
},
{
"port_id" : 16,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port8/brightness"
},
{
"port_id" : 20,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port9/brightness"
},
{
"port_id" : 24,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port10/brightness"
},
{
"port_id" : 28,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port11/brightness"
},
{
"port_id" : 40,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port12/brightness"
},
{
"port_id" : 44,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port13/brightness"
},
{
"port_id" : 48,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port14/brightness"
},
{
"port_id" : 52,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port15/brightness"
},
{
"port_id" : 56,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port16/brightness"
},
{
"port_id" : 60,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port17/brightness"
},
{
"port_id" : 64,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port18/brightness"
},
{
"port_id" : 68,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port19/brightness"
},
{
"port_id" : 72,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port20/brightness"
},
{
"port_id" : 73,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port21/brightness"
},
{
"port_id" : 74,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port22/brightness"
},
{
"port_id" : 75,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port23/brightness"
},
{
"port_id" : 120,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port48/brightness"
},
{
"port_id" : 124,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port49/brightness"
},
{
"port_id" : 80,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port50/brightness"
},
{
"port_id" : 84,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port51/brightness"
},
{
"port_id" : 232,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port24/brightness"
},
{
"port_id" : 233,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port25/brightness"
},
{
"port_id" : 234,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port26/brightness"
},
{
"port_id" : 235,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port27/brightness"
},
{
"port_id" : 200,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port28/brightness"
},
{
"port_id" : 204,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port29/brightness"
},
{
"port_id" : 208,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port30/brightness"
},
{
"port_id" : 212,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port31/brightness"
},
{
"port_id" : 216,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port32/brightness"
},
{
"port_id" : 220,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port33/brightness"
},
{
"port_id" : 224,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port34/brightness"
},
{
"port_id" : 228,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port35/brightness"
},
{
"port_id" : 160,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port36/brightness"
},
{
"port_id" : 164,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port37/brightness"
},
{
"port_id" : 168,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port38/brightness"
},
{
"port_id" : 172,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port39/brightness"
},
{
"port_id" : 176,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port40/brightness"
},
{
"port_id" : 180,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port41/brightness"
},
{
"port_id" : 184,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port42/brightness"
},
{
"port_id" : 188,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port43/brightness"
},
{
"port_id" : 192,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port44/brightness"
},
{
"port_id" : 193,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port45/brightness"
},
{
"port_id" : 194,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port46/brightness"
},
{
"port_id" : 195,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port47/brightness"
},
{
"port_id" : 240,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port52/brightness"
},
{
"port_id" : 244,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port53/brightness"
},
{
"port_id" : 280,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port54/brightness"
},
{
"port_id" : 284,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port55/brightness"
},
{
"port_id" : 161,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 162,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 165,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 166,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
}
]
},
"ffe" : {
"board_material" : "BOARD_MATERIAL_M4",
"config" : [
{
"serdes_id" : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75],
"is_dac" : 1,
"speed" : [10000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 46, -8, 0]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 44, -14, -1]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [100000, 25000, 40000, 10000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [100000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [40000, 10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
}
]
}
}

View File

@ -0,0 +1,116 @@
#----------------- SDK Feature Support --------------
[MPLS_SUPPORT] = 1;
[APS_SUPPORT] = 1;
[OAM_SUPPORT] = 1;
[PTP_SUPPORT] = 0;
[SYNCE_SUPPORT] = 0;
[STACKING_SUPPORT] = 1;
[BPE_SUPPORT] = 0;
[IPFIX_SUPPORT] = 1;
[MONITOR_SUPPORT] = 1;
[OVERLAY_SUPPORT] = 1;
[EFD_SUPPORT] = 1;
[FCOE_SUPPORT] = 0;
[TRILL_SUPPORT] = 0;
[WLAN_SUPPORT] = 0;
[NPM_SUPPORT] = 1;
[DOT1AE_SUPPORT] = 1;
[SRV6_SUPPORT] = 0;
[DTEL_SUPPORT] = 1;
[FLEXE_SUPPORT] = 0;
[FDBTOKEN_SUPPORT] = 1;
#----------------- Chip Init Parameter --------------
#Local chip number and global chip id
[Local chip_num] = 1
[Local chip0] = 0
[Local chip1] = 1
[Port_phy_mapping] = 1
#Cut through mode 0: Disable; 1:10/40/100G; 2:1/10/100G; 3:1/10/40G; other:Flex, refer to CUT_THROUGH_BITMAP
[CUT_THROUGH_SPEED] = 0
#Flex cut through mode, speed enable by bitmap, refer to ctc_port_speed_t, Notice: 10M/100M/1G treat as the same speed
[CUT_THROUGH_BITMAP] = 0
#Network cpu port
[CPU_NETWORK_PORT_EN] = 0
[CPU_NETWORK_PORT_ID] = 47
#Enable parity error and multi-bit ecc recover
[ECC_RECOVER_EN] = 0
[TCAM_SCAN_EN] = 0
[SDB_EN] = 0
#----------------- KNET Init Parameter --------------
[KNET_EN] = 0
#----------------- FTM Init Parameter --------------
#0: not use; 1: default; 2: layer3; 3: ipv6
[FTM Profile] = 0
#----------------- Interrupt Init Parameter --------------
#0: pin, 1: msi
[Interrupt_mode] = 1
#----------------- NextHop Init Parameter --------------
#0: SDK work in pizzbox (single chip system), 1: SDK work in multi-chip system
[Nexthop Edit Mode] = 0
[External Nexthop Number] = 16384
[MPLS Tunnel Number] = 1024
[H_ECMP_EN] = 0
#----------------- L2 Init Parameter --------------
[FDB Hw Learning] = 0
[Logic Port Num] = 1024
#0: 128 instance per port, 1: 64 instance per port, 2: 32 instance per port
[STP MODE] = 0
[MAX_FID_NUM] = 5120
#----------------- Stats Init Parameter --------------
[STATS_QUEUE_DEQ_EN] = 1
[STATS_QUEUE_DROP_EN] = 1
[STATS_FLOW_POLICER_EN] = 1
[STATS_VLAN_EN] = 0
[STATS_VRF_EN] = 0
[STATS_POLICER_NUM] = 1024
[STATS_PORT_EN] = 0
[STATS_ECMP_EN] = 0
#----------------- BPE Init Parameter --------------
[BPE_BR_PORT_EXTENDER_EN] = 0
[BPE_BR_UC_MAX_ECID] = 1024
[BPE_BR_MC_MAX_ECID] = 4096
[BPE_BR_PORT_BASE] = 0
#----------------- Ipuc Init Parameter --------------
#0: tcam use prefix 16; 1: tcam use prefix 8
[IPUC_TCAM_PREFIX_8] = 1
#----------------- QoS Init Parameter --------------
#QoS policer number support 1K/2K/4K/8K, default 4K
[QOS_POLICER_NUM] = 4096
#qos queue mode 0: 8(basic)+1(cpu)
#qos queue mode 1: 8(basic)+1(span)+1(mcast)
[QOS_QUEUE_MODE] = 0
#QoS port extend queue number support 0/4, default 0
[QOS_PORT_EXT_QUEUE_NUM] = 0
#QoS CPU reason queue number support 128/64/32, default 128
[QOS_CPU_QUEUE_NUM] = 128
[QOS_INGRESS_VLAN_POLICER_NUM] = 0
[QOS_EGRESS_VLAN_POLICER_NUM] = 0
#QoS the max number of igs/egs reserve macro policer,which ACL entry support micro and macro at the same time
[QOS_INGRESS_MACRO_POLICER_NUM] = 0
[QOS_EGRESS_MACRO_POLICER_NUM] = 0
#QOS service queue mode, default 0,0:logic scr port + dstport enq 1:service id + dstport enq
[QOS_SERVICE_QUEUE_MODE] = 0
#mode 0:svc policer used for service policer
#mode 1:svc policer used for stormctl
[QOS_POLICER_SVC_MODE] = 0
#----------------- Stacking Init Parameter --------------
#0: normal mode; 1: spine-leaf mode
[FABRIC MODE] = 0
[STACKING VERSION] = 1
#----------------- LB hash Init Parameter --------------
#0: support 4 select num; 1: support 8 select num; only TM2 support mode 1
[LB_HASH_MODE] = 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,70 @@
{# Default values which will be used if no actual configura available #}
{% set default_cable = '40m' %}
{% set default_ports_num = 54 -%}
{# Port configuration to cable length look-up table #}
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
{# Roles described in the minigraph #}
{% set ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
}
%}
{%- macro cable_length(port_name) -%}
{%- set cable_len = [] -%}
{%- for local_port in DEVICE_NEIGHBOR -%}
{%- if local_port == port_name -%}
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor_role = neighbor.type -%}
{%- set roles1 = switch_role + '_' + neighbor_role %}
{%- set roles2 = neighbor_role + '_' + switch_role -%}
{%- set roles1 = roles1 | lower -%}
{%- set roles2 = roles2 | lower -%}
{%- if roles1 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles1]) -%}{%- endif -%}
{%- elif roles2 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles2]) -%}{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if cable_len -%}
{{ cable_len.0 }}
{%- else -%}
{{ default_cable }}
{%- endif -%}
{% endmacro %}
{%- if DEVICE_METADATA is defined %}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] %}
{%- endif -%}
{# Generate list of ports if not defined #}
{% if PORT is not defined %}
{% set PORT = [] %}
{% for port_idx in range(1,default_ports_num+1) %}
{% if PORT.append("Ethernet%d" % (port_idx)) %}{% endif %}
{% endfor %}
{% endif -%}
{% set port_names_list = [] %}
{% for port in PORT %}
{%- if port_names_list.append(port) %}{% endif %}
{% endfor %}
{% set port_names = port_names_list | join(',') -%}
{
"CABLE_LENGTH": {
"AZURE": {
{% for port in PORT %}
{% set cable = cable_length(port) -%}
"{{ port }}": "{{ cable }}"{%- if not loop.last -%},{% endif %}
{% endfor %}
}
}
}

View File

@ -0,0 +1,21 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
1000 5m 34816 18432 16384 0
10000 5m 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
1000 40m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
1000 300m 49152 18432 30720 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0

View File

@ -0,0 +1,57 @@
# name lanes alias index speed fec
Ethernet0 32 eth-0-1 0 10000 none
Ethernet1 33 eth-0-2 1 10000 none
Ethernet2 34 eth-0-3 2 10000 none
Ethernet3 35 eth-0-4 3 10000 none
Ethernet4 0 eth-0-5 4 10000 none
Ethernet5 4 eth-0-6 5 10000 none
Ethernet6 8 eth-0-7 6 10000 none
Ethernet7 12 eth-0-8 7 10000 none
Ethernet8 16 eth-0-9 8 10000 none
Ethernet9 20 eth-0-10 9 10000 none
Ethernet10 24 eth-0-11 10 10000 none
Ethernet11 28 eth-0-12 11 10000 none
Ethernet12 40 eth-0-13 12 10000 none
Ethernet13 44 eth-0-14 13 10000 none
Ethernet14 48 eth-0-15 14 10000 none
Ethernet15 52 eth-0-16 15 10000 none
Ethernet16 56 eth-0-17 16 10000 none
Ethernet17 60 eth-0-18 17 10000 none
Ethernet18 64 eth-0-19 18 10000 none
Ethernet19 68 eth-0-20 19 10000 none
Ethernet20 72 eth-0-21 20 10000 none
Ethernet21 73 eth-0-22 21 10000 none
Ethernet22 74 eth-0-23 22 10000 none
Ethernet23 75 eth-0-24 23 10000 none
Ethernet24 232 eth-0-25 24 10000 none
Ethernet25 233 eth-0-26 25 10000 none
Ethernet26 234 eth-0-27 26 10000 none
Ethernet27 235 eth-0-28 27 10000 none
Ethernet28 200 eth-0-29 28 10000 none
Ethernet29 204 eth-0-30 29 10000 none
Ethernet30 208 eth-0-31 30 10000 none
Ethernet31 212 eth-0-32 31 10000 none
Ethernet32 216 eth-0-33 32 10000 none
Ethernet33 220 eth-0-34 33 10000 none
Ethernet34 224 eth-0-35 34 10000 none
Ethernet35 228 eth-0-36 35 10000 none
Ethernet36 160 eth-0-37 36 10000 none
Ethernet37 164 eth-0-38 37 10000 none
Ethernet38 168 eth-0-39 38 10000 none
Ethernet39 172 eth-0-40 39 10000 none
Ethernet40 176 eth-0-41 40 10000 none
Ethernet41 180 eth-0-42 41 10000 none
Ethernet42 184 eth-0-43 42 10000 none
Ethernet43 188 eth-0-44 43 10000 none
Ethernet44 192 eth-0-45 44 10000 none
Ethernet45 193 eth-0-46 45 10000 none
Ethernet46 194 eth-0-47 46 10000 none
Ethernet47 195 eth-0-48 47 10000 none
Ethernet48 120,121,122,123 eth-0-49 48 100000 none
Ethernet49 124,125,126,127 eth-0-50 49 100000 none
Ethernet50 80,81,82,83 eth-0-51 50 100000 none
Ethernet51 84,85,86,87 eth-0-52 51 100000 none
Ethernet52 240,241,242,243 eth-0-53 52 100000 none
Ethernet53 244,245,246,247 eth-0-54 53 100000 none
Ethernet54 280,281,282,283 eth-0-55 54 100000 none
Ethernet55 284,285,286,287 eth-0-56 55 100000 none

View File

@ -0,0 +1 @@
{%- include 'qos_config.j2' %}

View File

@ -0,0 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/V682-48x8c-chip-profile.txt
SAI_HW_PORT_PROFILE_ID_CONFIG_FILE=/usr/share/sonic/hwsku/V682-48x8c-datapath.txt
SAI_PLATFORM_CFG_FILE=/usr/share/sonic/hwsku/V682-48x8c-board.json

View File

@ -0,0 +1 @@
V682-48x8c l2

View File

@ -0,0 +1,10 @@
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon1=devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049 hwmon2=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-9/9-002c hwmon3=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-9/9-002e
DEVNAME=hwmon1=lm77 hwmon2=adt7470 hwmon3=adt7470
FCTEMPS=hwmon2/pwm1=hwmon1/temp1_input hwmon2/pwm2=hwmon1/temp1_input hwmon2/pwm3=hwmon1/temp1_input hwmon2/pwm4=hwmon1/temp1_input hwmon3/pwm1=hwmon1/temp1_input hwmon3/pwm2=hwmon1/temp1_input hwmon3/pwm3=hwmon1/temp1_input hwmon3/pwm4=hwmon1/temp1_input
FCFANS=hwmon2/pwm1=hwmon2/fan1_input hwmon2/pwm2=hwmon2/fan2_input hwmon2/pwm3=hwmon2/fan3_input hwmon2/pwm4=hwmon2/fan4_input hwmon3/pwm1=hwmon3/fan1_input hwmon3/pwm2=hwmon3/fan2_input hwmon3/pwm3=hwmon3/fan3_input hwmon3/pwm4=hwmon3/fan4_input
MINTEMP=hwmon2/pwm1=20 hwmon2/pwm2=20 hwmon2/pwm3=20 hwmon2/pwm4=20 hwmon3/pwm1=20 hwmon3/pwm2=20 hwmon3/pwm3=20 hwmon3/pwm4=20
MAXTEMP=hwmon2/pwm1=60 hwmon2/pwm2=60 hwmon2/pwm3=60 hwmon2/pwm4=60 hwmon3/pwm1=60 hwmon3/pwm2=60 hwmon3/pwm3=60 hwmon3/pwm4=60
MINSTART=hwmon2/pwm1=150 hwmon2/pwm2=150 hwmon2/pwm3=150 hwmon2/pwm4=150 hwmon3/pwm1=150 hwmon3/pwm2=150 hwmon3/pwm3=150 hwmon3/pwm4=150
MINSTOP=hwmon2/pwm1=0 hwmon2/pwm2=0 hwmon2/pwm3=0 hwmon2/pwm4=0 hwmon3/pwm1=0 hwmon3/pwm2=0 hwmon3/pwm3=0 hwmon3/pwm4=0

View File

@ -0,0 +1 @@
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="iommu=pt"

View File

@ -0,0 +1,5 @@
- bus: '05'
dev: '00'
fn: '0'
id: 8180
name: 'Communication controller: Device cb10:8180'

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1,8 @@
{
"chassis": {
"V682-48X8C": {
"component": {
}
}
}
}

View File

@ -0,0 +1,15 @@
#!/usr/bin/env python
import os
import time
def main():
os.system('hwclock -w -f /dev/rtc1')
time.sleep(1)
os.system('i2cset -y 0 0x36 0x23 0')
time.sleep(1)
os.system('i2cset -y 0 0x36 0x23 1')
if __name__ == '__main__':
main()

View File

@ -0,0 +1,35 @@
#!/usr/bin/env python
#############################################################################
# Centec V682-48X8C
#
# Platform and model specific eeprom subclass, inherits from the base class,
# and provides the followings:
# - the eeprom format definition
# - specific encoder/decoder if there is special need
#############################################################################
try:
import os
from sonic_eeprom import eeprom_tlvinfo
from sonic_py_common import device_info
except ImportError as e:
raise ImportError (str(e) + "- required module not found")
USR_SHARE_SONIC_PATH = "/usr/share/sonic"
HOST_DEVICE_PATH = USR_SHARE_SONIC_PATH + "/device"
CONTAINER_PLATFORM_PATH = USR_SHARE_SONIC_PATH + "/platform"
class board(eeprom_tlvinfo.TlvInfoDecoder):
def __init__(self, name, path, cpld_root, ro):
if os.path.isdir(CONTAINER_PLATFORM_PATH):
platform_path = CONTAINER_PLATFORM_PATH
else:
platform = device_info.get_platform()
if platform is None:
raise
platform_path = os.path.join(HOST_DEVICE_PATH, platform)
self.eeprom_path = platform_path + '/eeprom_file'
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,214 @@
#!/usr/bin/env python
#
# led_control.py
#
# Platform-specific LED control functionality for SONiC
#
try:
import os
import re
import syslog
import collections
from sonic_led.led_control_base import LedControlBase
from sonic_py_common import device_info
from subprocess import Popen
except ImportError as e:
raise ImportError(str(e) + " - required module not found")
USR_SHARE_SONIC_PATH = "/usr/share/sonic"
HOST_DEVICE_PATH = USR_SHARE_SONIC_PATH + "/device"
CONTAINER_PLATFORM_PATH = USR_SHARE_SONIC_PATH + "/platform"
def DBG_PRINT(str):
syslog.openlog("centec-led")
syslog.syslog(syslog.LOG_INFO, str)
syslog.closelog()
class LedControl(LedControlBase):
"""Platform specific LED control class"""
# Constructor
def __init__(self):
self.mac_to_led = {
32 : 0,
33 : 1,
34 : 2,
35 : 3,
0 : 4,
4 : 5,
8 : 6,
12 : 7,
16 : 8,
20 : 9,
24 : 10,
28 : 11,
40 : 12,
44 : 13,
48 : 14,
52 : 15,
56 : 16,
60 : 17,
64 : 18,
68 : 19,
72 : 20,
73 : 21,
74 : 22,
75 : 23,
232: 24,
233: 25,
234: 26,
235: 27,
200: 28,
204: 29,
208: 30,
212: 31,
216: 32,
220: 33,
224: 34,
228: 35,
160: 36,
164: 37,
168: 38,
172: 39,
176: 40,
180: 41,
184: 42,
188: 43,
192: 44,
193: 45,
194: 46,
195: 47,
120: 48,
121: -1,
122: -1,
123: -1,
124: 49,
125: -1,
126: -1,
127: -1,
80 : 50,
81 : -1,
82 : -1,
83 : -1,
84 : 51,
85 : -1,
86 : -1,
87 : -1,
240: 52,
241: -1,
242: -1,
243: -1,
244: 53,
245: -1,
246: -1,
247: -1,
280: 54,
281: -1,
282: -1,
283: -1,
284: 55,
285: -1,
286: -1,
287: -1,
}
if os.path.isdir(CONTAINER_PLATFORM_PATH):
platform_path = CONTAINER_PLATFORM_PATH
else:
platform = device_info.get_platform()
if platform is None:
raise
platform_path = os.path.join(HOST_DEVICE_PATH, platform)
port_config_file = "/".join([platform_path, "V682-48x8c", "port_config.ini"])
try:
f = open(port_config_file)
except:
raise
for line in f:
line.strip()
if re.search('^#', line) is not None:
Port_cfg = collections.namedtuple('Port_cfg', line.split()[1:])
break
f.close()
f = open(port_config_file)
self._port_cfgs = [Port_cfg(*tuple((line.strip().split())))
for line in f if re.search('^#', line) is None]
f.close()
self.LED_MODE_UP = [5, 5]
self.LED_MODE_DOWN = [7, 7]
self.f_led = "/sys/class/leds/{}/brightness"
self._initDefaultConfig()
# Helper method to map SONiC port name to index
def _port_name_to_index(self, port_name):
for port_cfg in self._port_cfgs:
if port_name == port_cfg.name:
macs = [int(x) for x in (port_cfg.lanes.split(','))]
led = self.mac_to_led[min(macs)]
if led < 0:
return None
return led
return None
def _port_state_to_mode(self, port_idx, state):
if state == "up":
return self.LED_MODE_UP[1] if port_idx >= 48 else self.LED_MODE_UP[0]
else:
return self.LED_MODE_DOWN[1] if port_idx >= 48 else self.LED_MODE_DOWN[0]
def _port_led_mode_update(self, port_idx, ledMode):
with open(self.f_led.format("port{}".format(port_idx)), 'w') as led_file:
led_file.write(str(ledMode))
def _initSystemLed(self):
try:
cmd = 'i2cset -y 0 0x36 0x2 0x5'
Popen(cmd, shell=True)
DBG_PRINT("init system led to normal")
cmd = 'i2cset -y 0 0x36 0x3 0x1'
Popen(cmd, shell=True)
DBG_PRINT("init idn led to off")
except IOError as e:
DBG_PRINT(str(e))
def _initPanelLed(self):
with open(self.f_led.format("port1"), 'r') as led_file:
shouldInit = (int(led_file.read()) == 0)
if shouldInit == True:
for port_cfg in self._port_cfgs:
macs = [int(x) for x in (port_cfg.lanes.split(','))]
led = self.mac_to_led[min(macs)]
if led < 0:
continue
defmode = self._port_state_to_mode(led, "down")
with open(self.f_led.format("port{}".format(led)), 'w') as led_file:
led_file.write(str(defmode))
DBG_PRINT("init port{} led to mode={}".format(led, defmode))
def _initDefaultConfig(self):
DBG_PRINT("start init led")
self._initSystemLed()
self._initPanelLed()
DBG_PRINT("init led done")
# Concrete implementation of port_link_state_change() method
def port_link_state_change(self, portname, state):
port_idx = self._port_name_to_index(portname)
if port_idx is None:
return
ledMode = self._port_state_to_mode(port_idx, state)
with open(self.f_led.format("port{}".format(port_idx)), 'r') as led_file:
saveMode = int(led_file.read())
if ledMode == saveMode:
return
self._port_led_mode_update(port_idx, ledMode)
DBG_PRINT("update {} led mode from {} to {}".format(portname, saveMode, ledMode))

View File

@ -0,0 +1,62 @@
#!/usr/bin/env python
#############################################################################
# Centec
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
from subprocess import Popen, PIPE, STDOUT
try:
from sonic_psu.psu_base import PsuBase
except ImportError as e:
raise ImportError (str(e) + "- required module not found")
class PsuUtil(PsuBase):
"""Platform-specific PSUutil class"""
def __init__(self):
PsuBase.__init__(self)
def get_num_psus(self):
"""
Retrieves the number of PSUs available on the device
:return: An integer, the number of PSUs available on the device
"""
return 2
def get_psu_status(self, index):
"""
Retrieves the oprational status of power supply unit (PSU) defined
by 1-based index <index>
:param index: An integer, 1-based index of the PSU of which to query status
:return: Boolean, True if PSU is operating properly, False if PSU is faulty
"""
if index is None:
return False
cmd = 'i2cget -y 0 0x36 0x1e'
status = int(Popen(cmd, stdout=PIPE, stderr=STDOUT, shell=True).stdout.readline(), 16)
powergood = ((status & (1 << (3 * (index - 1) + 2))) != 0)
return powergood
def get_psu_presence(self, index):
"""
Retrieves the presence status of power supply unit (PSU) defined
by 1-based index <index>
:param index: An integer, 1-based index of the PSU of which to query status
:return: Boolean, True if PSU is plugged, False if not
"""
if index is None:
return False
cmd = 'i2cget -y 0 0x36 0x1e'
status = int(Popen(cmd, stdout=PIPE, stderr=STDOUT, shell=True).stdout.readline(), 16)
presence = ((status & (1 << (3 * (index - 1) + 1))) == 0)
return presence

View File

@ -0,0 +1,3 @@
{
}

View File

@ -0,0 +1,597 @@
{
"macleds" : {
"polarity" : 1,
"cpumode" : 1,
"maps" : [
{
"port_id" : 32,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port0/brightness"
},
{
"port_id" : 33,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port1/brightness"
},
{
"port_id" : 34,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port2/brightness"
},
{
"port_id" : 35,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port3/brightness"
},
{
"port_id" : 0,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port4/brightness"
},
{
"port_id" : 4,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port5/brightness"
},
{
"port_id" : 8,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port6/brightness"
},
{
"port_id" : 12,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port7/brightness"
},
{
"port_id" : 16,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port8/brightness"
},
{
"port_id" : 20,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port9/brightness"
},
{
"port_id" : 24,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port10/brightness"
},
{
"port_id" : 28,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port11/brightness"
},
{
"port_id" : 40,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port12/brightness"
},
{
"port_id" : 44,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port13/brightness"
},
{
"port_id" : 48,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port14/brightness"
},
{
"port_id" : 52,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port15/brightness"
},
{
"port_id" : 56,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port16/brightness"
},
{
"port_id" : 60,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port17/brightness"
},
{
"port_id" : 64,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port18/brightness"
},
{
"port_id" : 68,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port19/brightness"
},
{
"port_id" : 72,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port20/brightness"
},
{
"port_id" : 73,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port21/brightness"
},
{
"port_id" : 74,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port22/brightness"
},
{
"port_id" : 75,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port23/brightness"
},
{
"port_id" : 120,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port48/brightness"
},
{
"port_id" : 124,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port49/brightness"
},
{
"port_id" : 80,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port50/brightness"
},
{
"port_id" : 84,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port51/brightness"
},
{
"port_id" : 232,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port24/brightness"
},
{
"port_id" : 233,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port25/brightness"
},
{
"port_id" : 234,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port26/brightness"
},
{
"port_id" : 235,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port27/brightness"
},
{
"port_id" : 200,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port28/brightness"
},
{
"port_id" : 204,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port29/brightness"
},
{
"port_id" : 208,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port30/brightness"
},
{
"port_id" : 212,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port31/brightness"
},
{
"port_id" : 216,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port32/brightness"
},
{
"port_id" : 220,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port33/brightness"
},
{
"port_id" : 224,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port34/brightness"
},
{
"port_id" : 228,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port35/brightness"
},
{
"port_id" : 160,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port36/brightness"
},
{
"port_id" : 164,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port37/brightness"
},
{
"port_id" : 168,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port38/brightness"
},
{
"port_id" : 172,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port39/brightness"
},
{
"port_id" : 176,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port40/brightness"
},
{
"port_id" : 180,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port41/brightness"
},
{
"port_id" : 184,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port42/brightness"
},
{
"port_id" : 188,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port43/brightness"
},
{
"port_id" : 192,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port44/brightness"
},
{
"port_id" : 193,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port45/brightness"
},
{
"port_id" : 194,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port46/brightness"
},
{
"port_id" : 195,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port47/brightness"
},
{
"port_id" : 240,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port52/brightness"
},
{
"port_id" : 244,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port53/brightness"
},
{
"port_id" : 280,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port54/brightness"
},
{
"port_id" : 284,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port55/brightness"
},
{
"port_id" : 161,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 162,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 165,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 166,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
}
]
},
"ffe" : {
"board_material" : "BOARD_MATERIAL_M4",
"config" : [
{
"serdes_id" : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75],
"is_dac" : 1,
"speed" : [10000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 46, -8, 0]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 44, -14, -1]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [100000, 25000, 40000, 10000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [100000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [40000, 10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
}
]
}
}

View File

@ -0,0 +1,116 @@
#----------------- SDK Feature Support --------------
[MPLS_SUPPORT] = 1;
[APS_SUPPORT] = 1;
[OAM_SUPPORT] = 1;
[PTP_SUPPORT] = 0;
[SYNCE_SUPPORT] = 0;
[STACKING_SUPPORT] = 1;
[BPE_SUPPORT] = 0;
[IPFIX_SUPPORT] = 1;
[MONITOR_SUPPORT] = 1;
[OVERLAY_SUPPORT] = 1;
[EFD_SUPPORT] = 1;
[FCOE_SUPPORT] = 0;
[TRILL_SUPPORT] = 0;
[WLAN_SUPPORT] = 0;
[NPM_SUPPORT] = 1;
[DOT1AE_SUPPORT] = 1;
[SRV6_SUPPORT] = 0;
[DTEL_SUPPORT] = 1;
[FLEXE_SUPPORT] = 0;
[FDBTOKEN_SUPPORT] = 1;
#----------------- Chip Init Parameter --------------
#Local chip number and global chip id
[Local chip_num] = 1
[Local chip0] = 0
[Local chip1] = 1
[Port_phy_mapping] = 1
#Cut through mode 0: Disable; 1:10/40/100G; 2:1/10/100G; 3:1/10/40G; other:Flex, refer to CUT_THROUGH_BITMAP
[CUT_THROUGH_SPEED] = 0
#Flex cut through mode, speed enable by bitmap, refer to ctc_port_speed_t, Notice: 10M/100M/1G treat as the same speed
[CUT_THROUGH_BITMAP] = 0
#Network cpu port
[CPU_NETWORK_PORT_EN] = 0
[CPU_NETWORK_PORT_ID] = 47
#Enable parity error and multi-bit ecc recover
[ECC_RECOVER_EN] = 0
[TCAM_SCAN_EN] = 0
[SDB_EN] = 0
#----------------- KNET Init Parameter --------------
[KNET_EN] = 0
#----------------- FTM Init Parameter --------------
#0: not use; 1: default; 2: layer3; 3: ipv6
[FTM Profile] = 0
#----------------- Interrupt Init Parameter --------------
#0: pin, 1: msi
[Interrupt_mode] = 1
#----------------- NextHop Init Parameter --------------
#0: SDK work in pizzbox (single chip system), 1: SDK work in multi-chip system
[Nexthop Edit Mode] = 0
[External Nexthop Number] = 16384
[MPLS Tunnel Number] = 1024
[H_ECMP_EN] = 0
#----------------- L2 Init Parameter --------------
[FDB Hw Learning] = 0
[Logic Port Num] = 1024
#0: 128 instance per port, 1: 64 instance per port, 2: 32 instance per port
[STP MODE] = 0
[MAX_FID_NUM] = 5120
#----------------- Stats Init Parameter --------------
[STATS_QUEUE_DEQ_EN] = 1
[STATS_QUEUE_DROP_EN] = 1
[STATS_FLOW_POLICER_EN] = 1
[STATS_VLAN_EN] = 0
[STATS_VRF_EN] = 0
[STATS_POLICER_NUM] = 1024
[STATS_PORT_EN] = 0
[STATS_ECMP_EN] = 0
#----------------- BPE Init Parameter --------------
[BPE_BR_PORT_EXTENDER_EN] = 0
[BPE_BR_UC_MAX_ECID] = 1024
[BPE_BR_MC_MAX_ECID] = 4096
[BPE_BR_PORT_BASE] = 0
#----------------- Ipuc Init Parameter --------------
#0: tcam use prefix 16; 1: tcam use prefix 8
[IPUC_TCAM_PREFIX_8] = 1
#----------------- QoS Init Parameter --------------
#QoS policer number support 1K/2K/4K/8K, default 4K
[QOS_POLICER_NUM] = 4096
#qos queue mode 0: 8(basic)+1(cpu)
#qos queue mode 1: 8(basic)+1(span)+1(mcast)
[QOS_QUEUE_MODE] = 0
#QoS port extend queue number support 0/4, default 0
[QOS_PORT_EXT_QUEUE_NUM] = 0
#QoS CPU reason queue number support 128/64/32, default 128
[QOS_CPU_QUEUE_NUM] = 128
[QOS_INGRESS_VLAN_POLICER_NUM] = 0
[QOS_EGRESS_VLAN_POLICER_NUM] = 0
#QoS the max number of igs/egs reserve macro policer,which ACL entry support micro and macro at the same time
[QOS_INGRESS_MACRO_POLICER_NUM] = 0
[QOS_EGRESS_MACRO_POLICER_NUM] = 0
#QOS service queue mode, default 0,0:logic scr port + dstport enq 1:service id + dstport enq
[QOS_SERVICE_QUEUE_MODE] = 0
#mode 0:svc policer used for service policer
#mode 1:svc policer used for stormctl
[QOS_POLICER_SVC_MODE] = 0
#----------------- Stacking Init Parameter --------------
#0: normal mode; 1: spine-leaf mode
[FABRIC MODE] = 0
[STACKING VERSION] = 1
#----------------- LB hash Init Parameter --------------
#0: support 4 select num; 1: support 8 select num; only TM2 support mode 1
[LB_HASH_MODE] = 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,70 @@
{# Default values which will be used if no actual configura available #}
{% set default_cable = '40m' %}
{% set default_ports_num = 54 -%}
{# Port configuration to cable length look-up table #}
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
{# Roles described in the minigraph #}
{% set ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
}
%}
{%- macro cable_length(port_name) -%}
{%- set cable_len = [] -%}
{%- for local_port in DEVICE_NEIGHBOR -%}
{%- if local_port == port_name -%}
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor_role = neighbor.type -%}
{%- set roles1 = switch_role + '_' + neighbor_role %}
{%- set roles2 = neighbor_role + '_' + switch_role -%}
{%- set roles1 = roles1 | lower -%}
{%- set roles2 = roles2 | lower -%}
{%- if roles1 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles1]) -%}{%- endif -%}
{%- elif roles2 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles2]) -%}{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if cable_len -%}
{{ cable_len.0 }}
{%- else -%}
{{ default_cable }}
{%- endif -%}
{% endmacro %}
{%- if DEVICE_METADATA is defined %}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] %}
{%- endif -%}
{# Generate list of ports if not defined #}
{% if PORT is not defined %}
{% set PORT = [] %}
{% for port_idx in range(1,default_ports_num+1) %}
{% if PORT.append("Ethernet%d" % (port_idx)) %}{% endif %}
{% endfor %}
{% endif -%}
{% set port_names_list = [] %}
{% for port in PORT %}
{%- if port_names_list.append(port) %}{% endif %}
{% endfor %}
{% set port_names = port_names_list | join(',') -%}
{
"CABLE_LENGTH": {
"AZURE": {
{% for port in PORT %}
{% set cable = cable_length(port) -%}
"{{ port }}": "{{ cable }}"{%- if not loop.last -%},{% endif %}
{% endfor %}
}
}
}

View File

@ -0,0 +1,21 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
1000 5m 34816 18432 16384 0
10000 5m 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
1000 40m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
1000 300m 49152 18432 30720 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0

View File

@ -0,0 +1,57 @@
# name lanes alias index speed fec
Ethernet0 32 eth-0-1 0 25000 none
Ethernet1 33 eth-0-2 1 25000 none
Ethernet2 34 eth-0-3 2 25000 none
Ethernet3 35 eth-0-4 3 25000 none
Ethernet4 0 eth-0-5 4 25000 none
Ethernet5 4 eth-0-6 5 25000 none
Ethernet6 8 eth-0-7 6 25000 none
Ethernet7 12 eth-0-8 7 25000 none
Ethernet8 16 eth-0-9 8 25000 none
Ethernet9 20 eth-0-10 9 25000 none
Ethernet10 24 eth-0-11 10 25000 none
Ethernet11 28 eth-0-12 11 25000 none
Ethernet12 40 eth-0-13 12 25000 none
Ethernet13 44 eth-0-14 13 25000 none
Ethernet14 48 eth-0-15 14 25000 none
Ethernet15 52 eth-0-16 15 25000 none
Ethernet16 56 eth-0-17 16 25000 none
Ethernet17 60 eth-0-18 17 25000 none
Ethernet18 64 eth-0-19 18 25000 none
Ethernet19 68 eth-0-20 19 25000 none
Ethernet20 72 eth-0-21 20 25000 none
Ethernet21 73 eth-0-22 21 25000 none
Ethernet22 74 eth-0-23 22 25000 none
Ethernet23 75 eth-0-24 23 25000 none
Ethernet24 232 eth-0-25 24 25000 none
Ethernet25 233 eth-0-26 25 25000 none
Ethernet26 234 eth-0-27 26 25000 none
Ethernet27 235 eth-0-28 27 25000 none
Ethernet28 200 eth-0-29 28 25000 none
Ethernet29 204 eth-0-30 29 25000 none
Ethernet30 208 eth-0-31 30 25000 none
Ethernet31 212 eth-0-32 31 25000 none
Ethernet32 216 eth-0-33 32 25000 none
Ethernet33 220 eth-0-34 33 25000 none
Ethernet34 224 eth-0-35 34 25000 none
Ethernet35 228 eth-0-36 35 25000 none
Ethernet36 160 eth-0-37 36 25000 none
Ethernet37 164 eth-0-38 37 25000 none
Ethernet38 168 eth-0-39 38 25000 none
Ethernet39 172 eth-0-40 39 25000 none
Ethernet40 176 eth-0-41 40 25000 none
Ethernet41 180 eth-0-42 41 25000 none
Ethernet42 184 eth-0-43 42 25000 none
Ethernet43 188 eth-0-44 43 25000 none
Ethernet44 192 eth-0-45 44 25000 none
Ethernet45 193 eth-0-46 45 25000 none
Ethernet46 194 eth-0-47 46 25000 none
Ethernet47 195 eth-0-48 47 25000 none
Ethernet48 120,121,122,123 eth-0-49 48 100000 none
Ethernet49 124,125,126,127 eth-0-50 49 100000 none
Ethernet50 80,81,82,83 eth-0-51 50 100000 none
Ethernet51 84,85,86,87 eth-0-52 51 100000 none
Ethernet52 240,241,242,243 eth-0-53 52 100000 none
Ethernet53 244,245,246,247 eth-0-54 53 100000 none
Ethernet54 280,281,282,283 eth-0-55 54 100000 none
Ethernet55 284,285,286,287 eth-0-56 55 100000 none

View File

@ -0,0 +1 @@
{%- include 'qos_config.j2' %}

View File

@ -0,0 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/V682-48y8c-chip-profile.txt
SAI_HW_PORT_PROFILE_ID_CONFIG_FILE=/usr/share/sonic/hwsku/V682-48y8c-datapath.txt
SAI_PLATFORM_CFG_FILE=/usr/share/sonic/hwsku/V682-48y8c-board.json

View File

@ -0,0 +1 @@
V682-48y8c l2

View File

@ -0,0 +1,10 @@
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon1=devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049 hwmon2=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-9/9-002c hwmon3=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-9/9-002e
DEVNAME=hwmon1=lm77 hwmon2=adt7470 hwmon3=adt7470
FCTEMPS=hwmon2/pwm1=hwmon1/temp1_input hwmon2/pwm2=hwmon1/temp1_input hwmon2/pwm3=hwmon1/temp1_input hwmon2/pwm4=hwmon1/temp1_input hwmon3/pwm1=hwmon1/temp1_input hwmon3/pwm2=hwmon1/temp1_input hwmon3/pwm3=hwmon1/temp1_input hwmon3/pwm4=hwmon1/temp1_input
FCFANS=hwmon2/pwm1=hwmon2/fan1_input hwmon2/pwm2=hwmon2/fan2_input hwmon2/pwm3=hwmon2/fan3_input hwmon2/pwm4=hwmon2/fan4_input hwmon3/pwm1=hwmon3/fan1_input hwmon3/pwm2=hwmon3/fan2_input hwmon3/pwm3=hwmon3/fan3_input hwmon3/pwm4=hwmon3/fan4_input
MINTEMP=hwmon2/pwm1=20 hwmon2/pwm2=20 hwmon2/pwm3=20 hwmon2/pwm4=20 hwmon3/pwm1=20 hwmon3/pwm2=20 hwmon3/pwm3=20 hwmon3/pwm4=20
MAXTEMP=hwmon2/pwm1=60 hwmon2/pwm2=60 hwmon2/pwm3=60 hwmon2/pwm4=60 hwmon3/pwm1=60 hwmon3/pwm2=60 hwmon3/pwm3=60 hwmon3/pwm4=60
MINSTART=hwmon2/pwm1=150 hwmon2/pwm2=150 hwmon2/pwm3=150 hwmon2/pwm4=150 hwmon3/pwm1=150 hwmon3/pwm2=150 hwmon3/pwm3=150 hwmon3/pwm4=150
MINSTOP=hwmon2/pwm1=0 hwmon2/pwm2=0 hwmon2/pwm3=0 hwmon2/pwm4=0 hwmon3/pwm1=0 hwmon3/pwm2=0 hwmon3/pwm3=0 hwmon3/pwm4=0

View File

@ -0,0 +1 @@
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="iommu=pt"

View File

@ -0,0 +1,5 @@
- bus: '05'
dev: '00'
fn: '0'
id: 8180
name: 'Communication controller: Device cb10:8180'

Some files were not shown because too many files have changed in this diff Show More