Merge remote-tracking branch 'remotes/AzureSonic/master' into sonicSaiv1.3

* Resolve conflicts
This commit is contained in:
Sagar Balani 2018-05-14 11:40:15 -07:00
commit 01eca58507
528 changed files with 45453 additions and 5860 deletions

5
.gitignore vendored
View File

@ -23,6 +23,9 @@ src/libnl3/*
!src/libnl3/Makefile
src/libteam/*
!src/libteam/Makefile
src/lldpd/*
!src/lldpd/Makefile
!src/lldpd/patch/
src/mpdecimal/*
!src/mpdecimal/Makefile
src/python3/*
@ -35,6 +38,7 @@ src/sonic-device-data/src/device/
src/sonic-device-data/src/debian/
src/supervisor/*
!src/supervisor/Makefile
!src/supervisor/patch/
src/thrift/*
!src/thrift/Makefile
@ -53,6 +57,7 @@ dockers/docker-router-advertiser/Dockerfile
dockers/docker-snmp-sv2/Dockerfile
dockers/docker-teamd/Dockerfile
dockers/docker-sonic-mgmt/Dockerfile
dockers/docker-sonic-telemetry/Dockerfile
platform/*/docker-syncd-*/Dockerfile
platform/*/docker-syncd-*-rpc/Dockerfile
platform/vs/docker-sonic-vs/Dockerfile

12
.gitmodules vendored Normal file → Executable file
View File

@ -26,9 +26,6 @@
[submodule "src/sonic-py-swsssdk"]
path = src/sonic-py-swsssdk
url = https://github.com/Azure/sonic-py-swsssdk.git
[submodule "src/lldpd"]
path = src/lldpd
url = https://github.com/vincentbernat/lldpd.git
[submodule "src/sonic-snmpagent"]
path = src/sonic-snmpagent
url = https://github.com/Azure/sonic-snmpagent
@ -50,6 +47,9 @@
[submodule "platform/broadcom/sonic-platform-modules-ingrasys"]
path = platform/broadcom/sonic-platform-modules-ingrasys
url = https://github.com/Ingrasys-sonic/sonic-platform-modules-ingrasys
[submodule "src/sonic-platform-common"]
path = src/sonic-platform-common
url = https://github.com/Azure/sonic-platform-common
[submodule "src/sonic-platform-daemons"]
path = src/sonic-platform-daemons
url = https://github.com/Azure/sonic-platform-daemons
@ -71,6 +71,12 @@
[submodule "platform/nephos/sonic-platform-modules-ingrasys"]
path = platform/nephos/sonic-platform-modules-ingrasys
url = https://github.com/Ingrasys-sonic/sonic-platform-modules-ingrasys-nephos.git
[submodule "platform/broadcom/sonic-platform-modules-quanta"]
path = platform/broadcom/sonic-platform-modules-quanta
url = https://github.com/QuantaSwitchONIE/sonic-platform-modules-quanta.git
[submodule "platform/broadcom/sonic-platform-modules-mitac"]
path = platform/broadcom/sonic-platform-modules-mitac
url = https://github.com/MiTAC-EBU/sonic-platform-modules-mitac.git
[submodule "platform/centec/sonic-platform-modules-e582"]
path = platform/centec/sonic-platform-modules-e582
url = https://github.com/CentecNetworks/sonic-platform-modules-e582

View File

@ -8,11 +8,14 @@
# * ENABLE_DHCP_GRAPH_SERVICE: Enables get-graph service to fetch minigraph files
# through http.
# * SHUTDOWN_BGP_ON_START: Sets admin-down state for all bgp peerings after restart.
# * ENABLE_PFCWD_ON_START: Enable PFC Watchdog (PFCWD) on server-facing ports
# * by default for TOR switch.
# * SONIC_ENABLE_SYNCD_RPC: Enables rpc-based syncd builds.
# * USERNAME: Desired username -- default at rules/config
# * PASSWORD: Desired password -- default at rules/config
# * KEEP_SLAVE_ON: Keeps slave container up after building-process concludes.
# * SOURCE_FOLDER: host path to be mount as /var/src, only effective when KEEP_SLAVE_ON=yes
# * SOURCE_FOLDER: host path to be mount as /var/$(USER)/src, only effective when KEEP_SLAVE_ON=yes
# * SONIC_BUILD_JOB: Specifying number of concurrent build job(s) to run
#
###############################################################################
@ -34,10 +37,14 @@ SLAVE_IMAGE = sonic-slave-$(USER)
DOCKER_RUN := docker run --rm=true --privileged \
-v $(PWD):/sonic \
-w /sonic \
-e "http_proxy=$(http_proxy)" \
-e "https_proxy=$(https_proxy)" \
-i$(if $(TERM),t,)
DOCKER_BASE_BUILD = docker build --no-cache \
-t $(SLAVE_BASE_IMAGE) \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
sonic-slave && \
docker tag $(SLAVE_BASE_IMAGE):latest $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG)
@ -57,11 +64,16 @@ SONIC_BUILD_INSTRUCTION := make \
BUILD_NUMBER=$(BUILD_NUMBER) \
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
SONIC_ENABLE_PFCWD_ON_START=$(ENABLE_PFCWD_ON_START) \
ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC) \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME)
USERNAME=$(USERNAME) \
SONIC_BUILD_JOBS=$(SONIC_BUILD_JOBS) \
HTTP_PROXY=$(http_proxy) \
HTTPS_PROXY=$(https_proxy) \
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY)
.PHONY: sonic-slave-build sonic-slave-bash init
.PHONY: sonic-slave-build sonic-slave-bash init reset
.DEFAULT_GOAL := all
@ -74,7 +86,7 @@ SONIC_BUILD_INSTRUCTION := make \
$(DOCKER_BUILD) ; }
ifeq "$(KEEP_SLAVE_ON)" "yes"
ifdef SOURCE_FOLDER
@$(DOCKER_RUN) -v $(SOURCE_FOLDER):/var/src $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
@$(DOCKER_RUN) -v $(SOURCE_FOLDER):/var/$(USER)/src $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
else
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
endif
@ -96,5 +108,18 @@ sonic-slave-bash :
@$(DOCKER_RUN) -t $(SLAVE_IMAGE):$(SLAVE_TAG) bash
init :
git submodule update --init --recursive
git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $$(realpath --relative-to=. $$(cut -d" " -f2 .git))" > .git'
@git submodule update --init --recursive
@git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $$(realpath --relative-to=. $$(cut -d" " -f2 .git))" > .git'
reset :
@echo && echo -n "Warning! All local changes will be lost. Proceed? [y/N]: "
@read ans && \
if [ $$ans == y ]; then \
git clean -xfdf; \
git reset --hard; \
git submodule foreach --recursive git clean -xfdf; \
git submodule foreach --recursive git reset --hard; \
git submodule update --init --recursive;\
else \
echo "Reset aborted"; \
fi

View File

@ -60,13 +60,13 @@ and directories with more complcated components, that provide their own Makefile
Every **platform/[VENDOR]/** directory is a derived part of buildimage frontend, that defines rules and targets for a concrete vendor.
### Build output
**target/** is basically a build output. You can find all biuld artifacts there.
**target/** is basically a build output. You can find all build artifacts there.
## Recipes and target groups
Now let's go over a definition of recipes and target groups.
**Recipe** is a small makefile that defines a target and set of variables for building it.
If you want to add a new target to buildimage (.deb package or docker image), you have to create a recipe for this target.
**Target group** is a set of targets that are built according to the same rulels.
**Target group** is a set of targets that are built according to the same rules.
Every recipe sets a target group to which this target belongs.
### Recipe example
@ -119,7 +119,7 @@ SONIC_PYTHON_STDEB_DEBS += $(SOME_NEW_DEB) # add package to this target group
**SONIC_MAKE_DEBS**
This is a bit more flexible case.
If you have to do some specific type of build or apply pathes prior to build, just define your owm Makefile and add it to buildomage.
If you have to do some specific type of build or apply pathes prior to build, just define your own Makefile and add it to buildimage.
Define:
```make
SOME_NEW_DEB = some_new_deb.deb # name of your package
@ -194,7 +194,7 @@ Although every target is built inside a sonic-slave container, which exits at th
```
$ make sonic-slave-bash
```
It is very useful for debugging when you add a new target and facing some trubles.
It is very useful for debugging when you add a new target and facing some troubles.
sonic-slave environment is built only once, but if sonic-slave/Dockerfile was updated, you can rebuild it with this command:
```

View File

@ -1,14 +1,23 @@
*master*: Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-all)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-all)
Nephos: [![Nephos](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-all)
P4: [![P4](https://sonic-jenkins.westus2.cloudapp.azure.com/job/p4/job/buildimage-p4-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/p4/job/buildimage-p4-all)
VS: [![VS](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all)
*201712*:
Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201712/)
Barefoot: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/barefoot/job/buildimage-bf-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/barefoot/job/buildimage-bf-201712/)
Centec: [![Centec](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-201712/)
Nephos: [![Nephos](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-201712/)
Marvell: [![Marvell](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-201712/)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201712/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201712/)
*201709*:
Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201709/)
Cavium: [![Cavium](https://sonic-jenkins.westus2.cloudapp.azure.com/job/cavium/job/buildimage-cavm-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/cavium/job/buildimage-cavm-all/)
Centec: [![Centec](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-all/)
Nephos: [![Nephos](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-all/)
Marvell: [![Marvell](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-all/)
Cavium: [![Cavium](https://sonic-jenkins.westus2.cloudapp.azure.com/job/cavium/job/buildimage-cavm-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/cavium/job/buildimage-cavm-201709/)
Centec: [![Centec](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/centec/job/buildimage-centec-201709/)
Nephos: [![Nephos](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/job/buildimage-nephos-201709/)
Marvell: [![Marvell](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/marvell/job/buildimage-mrvl-201709/)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201709/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201709/)
# sonic-buildimage
@ -30,12 +39,17 @@ Please refer to [SONiC roadmap](https://github.com/Azure/SONiC/wiki/Sonic-Roadma
## Clone or fetch the code repository with all git submodules
To clone the code repository recursively, assuming git version 1.9 or newer:
git clone --recursive https://github.com/Azure/sonic-buildimage.git
git clone https://github.com/Azure/sonic-buildimage.git
## Usage
To build SONiC installer image and docker images, run the following commands:
cd sonic-buildimage
# (Optional) Checkout a specific branch. By default, it uses master branch
git checkout [branch_name]
# Execute make init once after cloning the repo, or fetched remote repo with submodule updates
make init
@ -44,8 +58,12 @@ To build SONiC installer image and docker images, run the following commands:
make
**NOTE**: We recommend reserving 50G free space to build one platform.
**NOTE**:
- Recommend reserving 50G free space to build one platform.
- Use `http_proxy=[your_proxy] https_proxy=[your_proxy] make` to enable http(s) proxy in the build process.
- Add your user account to `docker` group and use your user account to make. `root` or `sudo` are not supported.
The SONiC installer contains all docker images needed. SONiC uses one image for all devices of a same ASIC vendor. The supported ASIC vendors are:
- PLATFORM=broadcom

View File

@ -68,7 +68,7 @@ touch $FILESYSTEM_ROOT/$PLATFORM_DIR/firsttime
## Build a basic Debian system by debootstrap
echo '[INFO] Debootstrap...'
sudo debootstrap --variant=minbase --arch amd64 jessie $FILESYSTEM_ROOT http://ftp.us.debian.org/debian
sudo http_proxy=$http_proxy debootstrap --variant=minbase --arch amd64 jessie $FILESYSTEM_ROOT http://debian-archive.trafficmanager.net/debian
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...'
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname"
@ -79,6 +79,9 @@ sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '127.0.0.1 localhos
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c 'echo "proc /proc proc defaults 0 0" >> /etc/fstab'
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c 'echo "sysfs /sys sysfs defaults 0 0" >> /etc/fstab'
## Setup proxy
[ -n "$http_proxy" ] && sudo /bin/bash -c "echo 'Acquire::http::Proxy \"$http_proxy\";' > $FILESYSTEM_ROOT/etc/apt/apt.conf.d/01proxy"
## Note: mounting is necessary to makedev and install linux image
echo '[INFO] Mount all'
## Output all the mounted device for troubleshooting
@ -111,7 +114,7 @@ echo '[INFO] Install SONiC linux kernel image'
## Note: duplicate apt-get command to ensure every line return zero
sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/initramfs-tools_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/linux-image-3.16.0-4-amd64_*.deb || \
sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/linux-image-3.16.0-5-amd64_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
## Update initramfs for booting with squashfs+aufs
@ -130,6 +133,10 @@ sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/setfacl
sudo cp files/initramfs-tools/arista-net $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-premount/arista-net
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-premount/arista-net
# Hook into initramfs: resize root partition after migration from another NOS to SONiC on Dell switches
sudo cp files/initramfs-tools/resize-rootfs $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-premount/resize-rootfs
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-premount/resize-rootfs
## Hook into initramfs: after partition mount and loop file mount
## 1. Prepare layered file system
## 2. Bind-mount docker working directory (docker aufs cannot work over aufs rootfs)
@ -137,12 +144,18 @@ sudo cp files/initramfs-tools/union-mount $FILESYSTEM_ROOT/etc/initramfs-tools/s
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/union-mount
sudo cp files/initramfs-tools/varlog $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/varlog
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/varlog
# Management interface (eth0) dhcp can be optionally turned off (during a migration from another NOS to SONiC)
sudo cp files/initramfs-tools/mgmt-intf-dhcp $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/mgmt-intf-dhcp
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/mgmt-intf-dhcp
sudo cp files/initramfs-tools/union-fsck $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
## Install latest intel igb driver
sudo cp target/debs/igb.ko $FILESYSTEM_ROOT/lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/intel/igb/igb.ko
sudo cp target/debs/igb.ko $FILESYSTEM_ROOT/lib/modules/3.16.0-5-amd64/kernel/drivers/net/ethernet/intel/igb/igb.ko
## Install latest intel ixgbe driver
sudo cp target/debs/ixgbe.ko $FILESYSTEM_ROOT/lib/modules/3.16.0-5-amd64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko
## Install latest intel ixgbe driver
sudo cp target/debs/ixgbe.ko $FILESYSTEM_ROOT/lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko
@ -213,13 +226,19 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
less \
unzip \
gdisk \
grub2-common
sysfsutils \
grub2-common \
ethtool \
screen
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y download \
grub-pc-bin
sudo mv $FILESYSTEM_ROOT/grub-pc-bin*.deb $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub
sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/libwrap0_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
## Disable kexec supported reboot which was installed by default
sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/kexec
@ -229,6 +248,8 @@ sudo cp files/sshd/host-ssh-keygen.sh $FILESYSTEM_ROOT/usr/local/bin/
sudo cp -f files/sshd/sshd.service $FILESYSTEM_ROOT/lib/systemd/system/ssh.service
## Config sshd
sudo augtool --autosave "set /files/etc/ssh/sshd_config/UseDNS no" -r $FILESYSTEM_ROOT
sudo sed -i 's/^ListenAddress ::/#ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
## Config monit
sudo sed -i '
@ -287,11 +308,12 @@ set /files/etc/sysctl.conf/net.ipv6.conf.all.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_ra_defrtr 0
set /files/etc/sysctl.conf/net.core.rmem_max 2097152
set /files/etc/sysctl.conf/net.core.wmem_max 2097152
" -r $FILESYSTEM_ROOT
## docker-py is needed by Ansible docker module
sudo LANG=C chroot $FILESYSTEM_ROOT easy_install pip
sudo LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT easy_install pip
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'
## Note: keep pip installed for maintainance purpose
## Create /var/run/redis folder for docker-database to mount
@ -314,11 +336,11 @@ sudo cp files/dhcp/dhclient.conf $FILESYSTEM_ROOT/etc/dhcp/
## Version file
sudo mkdir -p $FILESYSTEM_ROOT/etc/sonic
sudo tee $FILESYSTEM_ROOT/etc/sonic/sonic_version.yml > /dev/null <<EOF
build_version: $(sonic_get_version)
debian_version: $(cat $FILESYSTEM_ROOT/etc/debian_version)
kernel_version: $kversion
build_version: '$(sonic_get_version)'
debian_version: '$(cat $FILESYSTEM_ROOT/etc/debian_version)'
kernel_version: '$kversion'
asic_type: $sonic_asic_platform
commit_id: $(git rev-parse --short HEAD)
commit_id: '$(git rev-parse --short HEAD)'
build_date: $(date -u)
build_number: ${BUILD_NUMBER:-0}
built_by: $USER@$BUILD_HOSTNAME
@ -342,6 +364,9 @@ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoclean
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get clean
sudo LANG=C chroot $FILESYSTEM_ROOT bash -c 'rm -rf /usr/share/doc/* /usr/share/locale/* /var/lib/apt/lists/* /tmp/*'
## Clean up proxy
[ -n "$http_proxy" ] && sudo rm -f $FILESYSTEM_ROOT/etc/apt/apt.conf.d/01proxy
## Umount all
echo '[INFO] Umount all'
## Display all process details access /proc

View File

@ -56,7 +56,7 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
echo "Creating SONiC raw partition : $OUTPUT_RAW_IMAGE of size $RAW_IMAGE_DISK_SIZE MB"
fallocate -l "$RAW_IMAGE_DISK_SIZE"M $OUTPUT_RAW_IMAGE
## Generate a compressed 8GB partition dump that can be used to 'dd' in-lieu of using the onie-nos-installer
## Generate a partition dump that can be used to 'dd' in-lieu of using the onie-nos-installer
## Run the installer
## The 'build' install mode of the installer is used to generate this dump.
sudo chmod a+x $OUTPUT_ONIE_IMAGE

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -1014,224 +1014,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE0</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE1</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE2</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE3</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE4</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE5</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE6</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE7</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE8</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE9</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE10</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE11</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE12</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE13</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE14</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE15</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE16</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE17</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE18</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE19</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE20</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE21</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE22</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE23</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE24</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE25</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE26</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE27</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE28</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE29</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE30</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>tenGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>tenGigE31</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>tenGigE1</StartPort>
@ -1239,7 +1239,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS5712-54X</HwSku>
</Device>
</Devices>
@ -1247,7 +1247,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1269,6 +1269,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS5712-54X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
1: "57-0038",
2: "58-003b",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -16,87 +16,91 @@ class SfpUtil(SfpUtilBase):
PORT_START = 0
PORT_END = 71
PORTS_IN_BLOCK = 72
QSFP_PORT_START = 72
QSFP_PORT_START = 48
QSFP_PORT_END = 72
BASE_VAL_PATH = "/sys/class/i2c-adapter/i2c-{0}/{1}-0050/"
BASE_OOM_PATH = "/sys/bus/i2c/devices/{0}-0050/"
BASE_CPLD2_PATH = "/sys/bus/i2c/devices/0-0061/"
BASE_CPLD3_PATH = "/sys/bus/i2c/devices/0-0062/"
_port_to_is_present = {}
_port_to_lp_mode = {}
_port_to_eeprom_mapping = {}
_port_to_i2c_mapping = {
0: [2, 2],
1: [3, 3],
2: [4, 4],
3: [5, 5],
4: [6, 6],
5: [7, 7],
6: [8, 8],
7: [9, 9],
8: [10, 10],
9: [11, 11],
10: [12, 12],
11: [13, 13],
12: [14, 14],
13: [15, 15],
14: [16, 16],
15: [17, 17],
16: [18, 18],
17: [19, 19],
18: [20, 20],
19: [21, 21],
20: [22, 22],
21: [23, 23],
22: [24, 24],
23: [25, 25],
24: [26, 26],
25: [27, 27],
26: [28, 28],
27: [29, 29],
28: [30, 30],
29: [31, 31],
30: [32, 32],
31: [33, 33],
32: [34, 34],
33: [35, 35],
34: [36, 36],
35: [37, 37],
36: [38, 38],
37: [39, 39],
38: [40, 40],
39: [41, 41],
40: [42, 42],
41: [43, 43],
42: [44, 44],
43: [45, 45],
44: [46, 46],
45: [47, 47],
46: [48, 48],
47: [49, 49],
48: [50, 50], #QSFP49
49: [50, 50],
50: [50, 50],
51: [50, 50],
52: [52, 52], #QSFP50
53: [52, 52],
54: [52, 52],
55: [52, 52],
56: [54, 54], #QSFP51
57: [54, 54],
58: [54, 54],
59: [54, 54],
60: [51, 51], #QSFP52
61: [51, 51],
62: [51, 51],
63: [51, 51],
0: [1, 2],
1: [2, 3],
2: [3, 4],
3: [4, 5],
4: [5, 6],
5: [6, 7],
6: [7, 8],
7: [8, 9],
8: [9, 10],
9: [10, 11],
10: [11, 12],
11: [12, 13],
12: [13, 14],
13: [14, 15],
14: [15, 16],
15: [16, 17],
16: [17, 18],
17: [18, 19],
18: [19, 20],
19: [20, 21],
20: [21, 22],
21: [22, 23],
22: [23, 24],
23: [24, 25],
24: [25, 26],
25: [26, 27],
26: [27, 28],
27: [28, 29],
28: [29, 30],
29: [30, 31],
30: [31, 32],
31: [32, 33],
32: [33, 34],
33: [34, 35],
34: [35, 36],
35: [36, 37],
36: [37, 38],
37: [38, 39],
38: [39, 40],
39: [40, 41],
40: [41, 42],
41: [42, 43],
42: [43, 44],
43: [44, 45],
44: [45, 46],
45: [46, 47],
46: [47, 48],
47: [48, 49],
48: [49, 50],#QSFP49
49: [49, 50],
50: [49, 50],
51: [49, 50],
52: [50, 52],#QSFP50
53: [50, 52],
54: [50, 52],
55: [50, 52],
56: [51, 54],#QSFP51
57: [51, 54],
58: [51, 54],
59: [51, 54],
60: [52, 51],#QSFP52
61: [52, 51],
62: [52, 51],
63: [52, 51],
64: [53, 53], #QSFP53
65: [53, 53],
66: [53, 53],
67: [53, 53],
68: [55, 55], #QSFP54
69: [55, 55],
70: [55, 55],
71: [55, 55],
68: [54, 55],#QSFP54
69: [54, 55],
70: [54, 55],
71: [54, 55],
}
@property
@ -107,6 +111,14 @@ class SfpUtil(SfpUtilBase):
def port_end(self):
return self.PORT_END
@property
def qsfp_port_start(self):
return self.QSFP_PORT_START
@property
def qsfp_port_end(self):
return self.QSFP_PORT_END
@property
def qsfp_ports(self):
return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)
@ -116,12 +128,12 @@ class SfpUtil(SfpUtilBase):
return self._port_to_eeprom_mapping
def __init__(self):
eeprom_path = self.BASE_VAL_PATH + "sfp_eeprom"
eeprom_path = self.BASE_OOM_PATH + "eeprom"
for x in range(0, self.port_end+1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(
self._port_to_i2c_mapping[x][0],
self._port_to_i2c_mapping[x][1])
self._port_to_i2c_mapping[x][1]
)
SfpUtilBase.__init__(self)
@ -130,8 +142,13 @@ class SfpUtil(SfpUtilBase):
if port_num < self.port_start or port_num > self.port_end:
return False
present_path = self.BASE_VAL_PATH + "sfp_is_present"
self.__port_to_is_present = present_path.format(self._port_to_i2c_mapping[port_num][0], self._port_to_i2c_mapping[port_num][1])
if port_num < 24:
present_path = self.BASE_CPLD2_PATH + "module_present_" + str(self._port_to_i2c_mapping[port_num][0])
else:
present_path = self.BASE_CPLD3_PATH + "module_present_" + str(self._port_to_i2c_mapping[port_num][0])
self.__port_to_is_present = present_path
try:
val_file = open(self.__port_to_is_present)
@ -148,11 +165,64 @@ class SfpUtil(SfpUtilBase):
return False
def get_low_power_mode(self, port_num):
raise NotImplementedError
def get_low_power_mode(self, port_num):
if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
return False
lp_mode_path = self.BASE_CPLD3_PATH + "module_lp_mode_" + str(self._port_to_i2c_mapping[port_num][0])
try:
val_file = open(lp_mode_path)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
def set_low_power_mode(self, port_num, lpmode):
raise NotImplementedError
content = val_file.readline().rstrip()
val_file.close()
# content is a string, either "0" or "1"
if content == "1":
return True
return False
def set_low_power_mode(self, port_num, lpmode):
if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
return False
lp_mode_path = self.BASE_CPLD3_PATH + "module_lp_mode_" + str(self._port_to_i2c_mapping[port_num][0])
try:
reg_file = open(lp_mode_path, 'r+')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
if lpmode is True:
reg_value = '1'
else:
reg_value = '0'
reg_file.write(reg_value)
reg_file.close()
return True
def reset(self, port_num):
raise NotImplementedError
if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
return False
mod_rst_path = lp_mode_path = self.BASE_CPLD3_PATH + "module_reset_" + str(self._port_to_i2c_mapping[port_num][0])
try:
reg_file = open(mod_rst_path, 'r+')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = '1'
reg_file.write(reg_value)
reg_file.close()
return True

View File

@ -0,0 +1,58 @@
# name lanes alias index
Ethernet0 8 Ethernet1/1 0
Ethernet1 9 Ethernet2/1 1
Ethernet2 10 Ethernet3/1 2
Ethernet3 11 Ethernet4/1 3
Ethernet4 12 Ethernet5/1 4
Ethernet5 13 Ethernet6/1 5
Ethernet6 14 Ethernet7/1 6
Ethernet7 15 Ethernet8/1 7
Ethernet8 16 Ethernet9/1 8
Ethernet9 17 Ethernet10/1 9
Ethernet10 18 Ethernet11/1 10
Ethernet11 19 Ethernet12/1 11
Ethernet12 20 Ethernet13/1 12
Ethernet13 21 Ethernet14/1 13
Ethernet14 22 Ethernet15/1 14
Ethernet15 23 Ethernet16/1 15
Ethernet16 32 Ethernet17/1 16
Ethernet17 33 Ethernet18/1 17
Ethernet18 34 Ethernet19/1 18
Ethernet19 35 Ethernet20/1 19
Ethernet20 40 Ethernet21/1 20
Ethernet21 41 Ethernet22/1 21
Ethernet22 42 Ethernet23/1 22
Ethernet23 43 Ethernet24/1 23
Ethernet24 48 Ethernet25/1 24
Ethernet25 49 Ethernet26/1 25
Ethernet26 50 Ethernet27/1 26
Ethernet27 51 Ethernet28/1 27
Ethernet28 56 Ethernet29/1 28
Ethernet29 57 Ethernet30/1 29
Ethernet30 58 Ethernet31/1 30
Ethernet31 59 Ethernet32/1 31
Ethernet32 64 Ethernet33/1 32
Ethernet33 65 Ethernet34/1 33
Ethernet34 66 Ethernet35/1 34
Ethernet35 67 Ethernet36/1 35
Ethernet36 68 Ethernet37/1 36
Ethernet37 69 Ethernet38/1 37
Ethernet38 70 Ethernet39/1 38
Ethernet39 71 Ethernet40/1 39
Ethernet40 72 Ethernet41/1 40
Ethernet41 73 Ethernet42/1 41
Ethernet42 74 Ethernet43/1 42
Ethernet43 75 Ethernet44/1 43
Ethernet44 76 Ethernet45/1 44
Ethernet45 77 Ethernet46/1 45
Ethernet46 78 Ethernet47/1 46
Ethernet47 79 Ethernet48/1 47
Ethernet48 80 Ethernet49/1 48
Ethernet49 81 Ethernet50/1 49
Ethernet50 82 Ethernet51/1 50
Ethernet51 83 Ethernet52/1 51
Ethernet52 84,85,86,87 Ethernet53/1 52
Ethernet53 104,105,106,107 Ethernet54/1 53
Ethernet54 108,109,110,111 Ethernet55/1 54
Ethernet55 112,113,114,115 Ethernet56/1 55
Ethernet56 116,117,118,119 Ethernet57/1 56

View File

@ -0,0 +1,55 @@
# name lanes alias index
Ethernet0 8 Ethernet1/1 0
Ethernet1 9 Ethernet2/1 1
Ethernet2 10 Ethernet3/1 2
Ethernet3 11 Ethernet4/1 3
Ethernet4 12 Ethernet5/1 4
Ethernet5 13 Ethernet6/1 5
Ethernet6 14 Ethernet7/1 6
Ethernet7 15 Ethernet8/1 7
Ethernet8 16 Ethernet9/1 8
Ethernet9 17 Ethernet10/1 9
Ethernet10 18 Ethernet11/1 10
Ethernet11 19 Ethernet12/1 11
Ethernet12 20 Ethernet13/1 12
Ethernet13 21 Ethernet14/1 13
Ethernet14 22 Ethernet15/1 14
Ethernet15 23 Ethernet16/1 15
Ethernet16 32 Ethernet17/1 16
Ethernet17 33 Ethernet18/1 17
Ethernet18 34 Ethernet19/1 18
Ethernet19 35 Ethernet20/1 19
Ethernet20 40 Ethernet21/1 20
Ethernet21 41 Ethernet22/1 21
Ethernet22 42 Ethernet23/1 22
Ethernet23 43 Ethernet24/1 23
Ethernet24 48 Ethernet25/1 24
Ethernet25 49 Ethernet26/1 25
Ethernet26 50 Ethernet27/1 26
Ethernet27 51 Ethernet28/1 27
Ethernet28 56 Ethernet29/1 28
Ethernet29 57 Ethernet30/1 29
Ethernet30 58 Ethernet31/1 30
Ethernet31 59 Ethernet32/1 31
Ethernet32 64 Ethernet33/1 32
Ethernet33 65 Ethernet34/1 33
Ethernet34 66 Ethernet35/1 34
Ethernet35 67 Ethernet36/1 35
Ethernet36 68 Ethernet37/1 36
Ethernet37 69 Ethernet38/1 37
Ethernet38 70 Ethernet39/1 38
Ethernet39 71 Ethernet40/1 39
Ethernet40 72 Ethernet41/1 40
Ethernet41 73 Ethernet42/1 41
Ethernet42 74 Ethernet43/1 42
Ethernet43 75 Ethernet44/1 43
Ethernet44 76 Ethernet45/1 44
Ethernet45 77 Ethernet46/1 45
Ethernet46 78 Ethernet47/1 46
Ethernet47 79 Ethernet48/1 47
Ethernet48 80,81,82,83 Ethernet49/1 48
Ethernet49 84,85,86,87 Ethernet50/1 49
Ethernet50 104,105,106,107 Ethernet51/1 50
Ethernet51 108,109,110,111 Ethernet52/1 51
Ethernet52 112,113,114,115 Ethernet53/1 52
Ethernet53 116,117,118,119 Ethernet54/1 56

View File

@ -0,0 +1,153 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "1",
"1": "0",
"3": "3",
"4": "4"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"3": "3",
"4": "4"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "1",
"1": "0",
"3": "3",
"4": "4"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"1",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"516096",
"red_min_threshold":"516096",
"yellow_max_threshold":"516096",
"yellow_min_threshold":"516096",
"green_max_threshold": "184128",
"green_min_threshold": "184128"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"516096",
"red_min_threshold":"516096",
"yellow_max_threshold":"516096",
"yellow_min_threshold":"516096",
"green_max_threshold": "184128",
"green_min_threshold": "184128"
}
},
"QUEUE": {
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]",
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -0,0 +1,2 @@
SAI_INIT_CONFIG_FILE=/etc/nps/tau-as7116-4806.cfg
SAI_DSH_CONFIG_FILE=/etc/nps/tau-as7116-4806.dsh

View File

@ -0,0 +1,3 @@
CONSOLE_PORT=0x3f8
CONSOLE_DEV=0
CONSOLE_SPEED=115200

View File

@ -0,0 +1,20 @@
#This configuration file is for customer init value feature. Please refer to mtk_cfg.h/mtk_cfg.c for detail.
#1. The lines beginning with # are comment lines. The lines beginning with number are the setting lines.
#2. There are five parameters which can be set.
# 1) the first is unit.
# 2) the second is NPS_CFG_TYPE_XXX. Refer to NPS_CFG_TYPE_T.
# 3) the 3-5 are {param0, param1, value} pairs. Refer to NPS_CFG_VALUE_T. Support HEX format.
# 4) the (unit, NPS_CFG_TYPE_XXX, param0, param1) group is the key to get the correspingding value.
# There should be no same (unit, NPS_CFG_TYPE_XXX, param0, param1) group.
#3. User must follow correct format to apply the setting. Please refer to below commentted example(#0 NPS_CFG_TYPE_L2_ADDR_MODE 0 0 1);
#4. Usage under the linux shell:
# 1) ./image-path/image-name -c cfg-path/NPS_Ari_EVB_24.cfg : mamually specify directory path if they are not in current work dirctory.
# 2) ./image-name -c NPS_Ari_EVB_24.cfg : the image and the NPS_Ari_EVB_24.cfg are in the current work directory.
#unit NPS_CFG_TYPE_XXX param0 param1 value
#---- ---------------- ------ ------ -----
0 NPS_CFG_TYPE_USE_UNIT_PORT 0 0 1
0 NPS_CFG_TYPE_LED_CFG 0 0 3
0 NPS_CFG_TYPE_USER_BUF_CTRL 0 0 1
0 NPS_CFG_TYPE_CPI_PORT_MODE 129 0 1
0 NPS_CFG_TYPE_CPI_PORT_MODE 130 0 1

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,155 @@
#!/usr/bin/env python
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class SfpUtil(SfpUtilBase):
"""Platform specific SfpUtill class"""
_port_start = 0
_port_end = 53
_qsfp_port_start = 48
_ports_in_block = 54
_port_to_eeprom_mapping = {}
_port_to_i2c_mapping = {
0 : 37,
1 : 38,
2 : 39,
3 : 40,
4 : 41,
5 : 42,
6 : 43,
7 : 44,
8 : 45,
9 : 46,
10 : 47,
11 : 48,
12 : 49,
13 : 50,
14 : 51,
15 : 52,
16 : 53,
17 : 54,
18 : 55,
19 : 56,
20 : 57,
21 : 58,
22 : 59,
23 : 60,
24 : 61,
25 : 62,
26 : 63,
27 : 64,
28 : 65,
29 : 66,
30 : 67,
31 : 68,
32 : 69,
33 : 70,
34 : 71,
35 : 72,
36 : 73,
37 : 74,
38 : 75,
39 : 76,
40 : 77,
41 : 78,
42 : 79,
43 : 80,
44 : 81,
45 : 82,
46 : 83,
47 : 84,
48 : 21,
49 : 22,
50 : 23,
51 : 24,
52 : 25,
53 : 26,
}
_qsfp_ports = range(_qsfp_port_start, _ports_in_block + 1)
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
for x in range(self._port_start, self._port_end + 1):
port_eeprom_path = eeprom_path.format(self._port_to_i2c_mapping[x])
if x == 53:
self._port_to_eeprom_mapping[56] = port_eeprom_path # ugly!!!!
else:
self._port_to_eeprom_mapping[x] = port_eeprom_path
SfpUtilBase.__init__(self)
def reset(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset"
port_ps = path.format(self._port_to_i2c_mapping[port_num])
try:
reg_file = open(port_ps, 'w')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
#toggle reset
reg_file.seek(0)
reg_file.write('1')
time.sleep(1)
reg_file.seek(0)
reg_file.write('0')
reg_file.close()
return True
def set_low_power_mode(self, port_nuM, lpmode):
raise NotImplementedError
def get_low_power_mode(self, port_num):
raise NotImplementedError
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(self._port_to_i2c_mapping[port_num])
try:
reg_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = reg_file.readline().rstrip()
if reg_value == '1':
return True
return False
@property
def port_start(self):
return self._port_start
@property
def port_end(self):
return self._port_end
@property
def qsfp_ports(self):
return self._qsfp_ports
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping

View File

@ -1,12 +1,13 @@
#!/usr/bin/env python
try:
from sonic_sfp.sfputilbase import sfputilbase
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class sfputil(sfputilbase):
class sfputil(SfpUtilBase):
"""Platform specific sfputil class"""
port_start = 0
@ -51,10 +52,76 @@ class sfputil(sfputilbase):
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self, port_num):
def __init__(self):
# Override port_to_eeprom_mapping for class initialization
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
for x in range(self.port_start, self.port_end + 1):
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1])
self.port_to_eeprom_mapping[x] = port_eeprom_path
sfputilbase.__init__(self, port_num)
SfpUtilBase.__init__(self)
def reset(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
try:
reg_file = open(port_ps, 'w')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
#toggle reset
reg_file.seek(0)
reg_file.write('1')
time.sleep(1)
reg_file.seek(0)
reg_file.write('0')
reg_file.close()
return True
def set_low_power_mode(self, port_nuM, lpmode):
raise NotImplementedErro
def get_low_power_mode(self, port_num):
raise NotImplementedErro
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
try:
reg_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = reg_file.readline().rstrip()
if reg_value == '1':
return True
return False
@property
def port_start(self):
return self._port_start
@property
def port_end(self):
return self._port_end
@property
def qsfp_ports(self):
return range(0, self.ports_in_block + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping

View File

@ -1,55 +1,55 @@
# name lanes alias
Ethernet0 41 twentyfiveGigE1
Ethernet1 42 twentyfiveGigE2
Ethernet2 43 twentyfiveGigE3
Ethernet3 44 twentyfiveGigE4
Ethernet4 49 twentyfiveGigE5
Ethernet5 50 twentyfiveGigE6
Ethernet6 51 twentyfiveGigE7
Ethernet7 52 twentyfiveGigE8
Ethernet8 53 twentyfiveGigE9
Ethernet9 54 twentyfiveGigE10
Ethernet10 55 twentyfiveGigE11
Ethernet11 56 twentyfiveGigE12
Ethernet12 65 twentyfiveGigE13
Ethernet13 66 twentyfiveGigE14
Ethernet14 67 twentyfiveGigE15
Ethernet15 68 twentyfiveGigE16
Ethernet16 33 twentyfiveGigE17
Ethernet17 34 twentyfiveGigE18
Ethernet18 35 twentyfiveGigE19
Ethernet19 36 twentyfiveGigE20
Ethernet20 37 twentyfiveGigE21
Ethernet21 38 twentyfiveGigE22
Ethernet22 39 twentyfiveGigE23
Ethernet23 40 twentyfiveGigE24
Ethernet24 69 twentyfiveGigE25
Ethernet25 70 twentyfiveGigE26
Ethernet26 71 twentyfiveGigE27
Ethernet27 72 twentyfiveGigE28
Ethernet28 81 twentyfiveGigE29
Ethernet29 82 twentyfiveGigE30
Ethernet30 83 twentyfiveGigE31
Ethernet31 84 twentyfiveGigE32
Ethernet32 85 twentyfiveGigE33
Ethernet33 86 twentyfiveGigE34
Ethernet34 87 twentyfiveGigE35
Ethernet35 88 twentyfiveGigE36
Ethernet36 97 twentyfiveGigE37
Ethernet37 98 twentyfiveGigE38
Ethernet38 99 twentyfiveGigE39
Ethernet39 100 twentyfiveGigE40
Ethernet40 101 twentyfiveGigE41
Ethernet41 102 twentyfiveGigE42
Ethernet42 103 twentyfiveGigE43
Ethernet43 104 twentyfiveGigE44
Ethernet44 105 twentyfiveGigE45
Ethernet45 106 twentyfiveGigE46
Ethernet46 107 twentyfiveGigE47
Ethernet47 108 twentyfiveGigE48
Ethernet48 5,6,7,8 hundredGigE49
Ethernet52 1,2,3,4 hundredGigE50
Ethernet56 109,110,111,112 hundredGigE51
Ethernet60 21,22,23,24 hundredGigE52
Ethernet64 9,10,11,12 hundredGigE53
Ethernet68 117,118,119,120 hundredGigE54
# name lanes alias index
Ethernet0 41 twentyfiveGigE1 0
Ethernet1 42 twentyfiveGigE2 1
Ethernet2 43 twentyfiveGigE3 2
Ethernet3 44 twentyfiveGigE4 3
Ethernet4 49 twentyfiveGigE5 4
Ethernet5 50 twentyfiveGigE6 5
Ethernet6 51 twentyfiveGigE7 6
Ethernet7 52 twentyfiveGigE8 7
Ethernet8 53 twentyfiveGigE9 8
Ethernet9 54 twentyfiveGigE10 9
Ethernet10 55 twentyfiveGigE11 10
Ethernet11 56 twentyfiveGigE12 11
Ethernet12 65 twentyfiveGigE13 12
Ethernet13 66 twentyfiveGigE14 13
Ethernet14 67 twentyfiveGigE15 14
Ethernet15 68 twentyfiveGigE16 15
Ethernet16 33 twentyfiveGigE17 16
Ethernet17 34 twentyfiveGigE18 17
Ethernet18 35 twentyfiveGigE19 18
Ethernet19 36 twentyfiveGigE20 19
Ethernet20 37 twentyfiveGigE21 20
Ethernet21 38 twentyfiveGigE22 21
Ethernet22 39 twentyfiveGigE23 22
Ethernet23 40 twentyfiveGigE24 23
Ethernet24 69 twentyfiveGigE25 24
Ethernet25 70 twentyfiveGigE26 25
Ethernet26 71 twentyfiveGigE27 26
Ethernet27 72 twentyfiveGigE28 27
Ethernet28 81 twentyfiveGigE29 28
Ethernet29 82 twentyfiveGigE30 29
Ethernet30 83 twentyfiveGigE31 30
Ethernet31 84 twentyfiveGigE32 31
Ethernet32 85 twentyfiveGigE33 32
Ethernet33 86 twentyfiveGigE34 33
Ethernet34 87 twentyfiveGigE35 34
Ethernet35 88 twentyfiveGigE36 35
Ethernet36 97 twentyfiveGigE37 36
Ethernet37 98 twentyfiveGigE38 37
Ethernet38 99 twentyfiveGigE39 38
Ethernet39 100 twentyfiveGigE40 39
Ethernet40 101 twentyfiveGigE41 40
Ethernet41 102 twentyfiveGigE42 41
Ethernet42 103 twentyfiveGigE43 42
Ethernet43 104 twentyfiveGigE44 43
Ethernet44 105 twentyfiveGigE45 44
Ethernet45 106 twentyfiveGigE46 45
Ethernet46 107 twentyfiveGigE47 46
Ethernet47 108 twentyfiveGigE48 47
Ethernet48 5,6,7,8 hundredGigE49 48
Ethernet52 1,2,3,4 hundredGigE50 52
Ethernet56 109,110,111,112 hundredGigE51 56
Ethernet60 21,22,23,24 hundredGigE52 60
Ethernet64 9,10,11,12 hundredGigE53 64
Ethernet68 117,118,119,120 hundredGigE54 68

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -924,224 +924,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet0</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet1</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet2</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet3</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet5</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet6</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet7</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet9</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet10</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet11</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet13</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet14</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet15</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet17</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet18</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet19</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet21</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet22</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet23</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet25</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet26</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet27</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet29</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet30</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet31</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1149,7 +1149,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7312-54X</HwSku>
</Device>
</Devices>
@ -1157,7 +1157,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1179,6 +1179,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7312-54X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
#Two i2c buses might get flipped order, check them both.
if not os.path.exists(self.eeprom_path):
self.eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
2: "11-0053",
1: "10-0050",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -0,0 +1,215 @@
# sfputil.py
#
# Platform-specific SFP transceiver interface for SONiC
#
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 71
PORTS_IN_BLOCK = 72
QSFP_PORT_START = 48
QSFP_PORT_END = 72
BASE_VAL_PATH = "/sys/class/i2c-adapter/i2c-{0}/{1}-0050/"
_port_to_is_present = {}
_port_to_lp_mode = {}
_port_to_eeprom_mapping = {}
_cpld_mapping = {
0: "4-0060",
1: "5-0062",
2: "6-0064",
}
_port_to_i2c_mapping = {
0: 18,
1: 19,
2: 20,
3: 21,
4: 22,
5: 23,
6: 24,
7: 25,
8: 26,
9: 27,
10: 28,
11: 29,
12: 30,
13: 31,
14: 32,
15: 33,
16: 34,
17: 35,
18: 36,
19: 37,
20: 38,
21: 39,
22: 40,
23: 41,
24: 42,
25: 43,
26: 44,
27: 45,
28: 46,
29: 47,
30: 48,
31: 49,
32: 50,
33: 51,
34: 52,
35: 53,
36: 54,
37: 55,
38: 56,
39: 57,
40: 58,
41: 59,
42: 60,
43: 61,
44: 62,
45: 63,
46: 64,
47: 65,
48: 66, #QSFP49
49: 66,
50: 66,
51: 66,
52: 67, #QSFP50
53: 67,
54: 67,
55: 67,
56: 68, #QSFP51
57: 68,
58: 68,
59: 68,
60: 69, #QSFP52
61: 69,
62: 69,
63: 69,
64: 70, #QSFP53
65: 70,
66: 70,
67: 70,
68: 71, #QSFP54
69: 71,
70: 71,
71: 71,
}
@property
def port_start(self):
return self.PORT_START
@property
def port_end(self):
return self.PORT_END
@property
def qsfp_port_start(self):
return self.QSFP_PORT_START
@property
def qsfp_port_end(self):
return self.QSFP_PORT_END
@property
def qsfp_ports(self):
return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom'
for x in range(0, self.port_end+1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(
self._port_to_i2c_mapping[x])
SfpUtilBase.__init__(self)
# For port 48~51 are QSFP, here presumed they're all split to 4 lanes.
def get_cage_num(self, port_num):
cage_num = port_num
if (port_num >= self.QSFP_PORT_START):
cage_num = (port_num - self.QSFP_PORT_START)/4
cage_num = cage_num + self.QSFP_PORT_START
return cage_num
# For cage 0~23 and 48~51 are at cpld2, others are at cpld3.
def get_cpld_num(self, port_num):
cpld_i = 1
cage_num = self.get_cage_num(port_num)
if (port_num > 23 and port_num < self.QSFP_PORT_START):
cpld_i = 2
if (cage_num >= 52):
cpld_i = 2
return cpld_i
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
cage_num = self.get_cage_num(port_num)
cpld_i = self.get_cpld_num(port_num)
cpld_ps = self._cpld_mapping[cpld_i]
path = "/sys/bus/i2c/devices/{0}/module_present_{1}"
port_ps = path.format(cpld_ps, cage_num+1)
try:
val_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = val_file.readline().rstrip()
val_file.close()
# content is a string, either "0" or "1"
if content == "1":
return True
return False
def get_low_power_mode(self, port_num):
raise NotImplementedError
def set_low_power_mode(self, port_num, lpmode):
raise NotImplementedError
def reset(self, port_num):
if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
return False
cage_num = self.get_cage_num(port_num)
cpld_i = self.get_cpld_num(port_num)
cpld_ps = self._cpld_mapping[cpld_i]
path = "/sys/bus/i2c/devices/{0}/module_reset_{1}"
port_ps = path.format(cpld_ps, cage_num+1)
try:
reg_file = open(port_ps, 'w')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = '0'
reg_file.write(reg_value)
reg_file.close()
return True

View File

@ -0,0 +1,55 @@
# name lanes alias index
Ethernet0 41 twentyfiveGigE1 0
Ethernet1 42 twentyfiveGigE2 1
Ethernet2 43 twentyfiveGigE3 2
Ethernet3 44 twentyfiveGigE4 3
Ethernet4 49 twentyfiveGigE5 4
Ethernet5 50 twentyfiveGigE6 5
Ethernet6 51 twentyfiveGigE7 6
Ethernet7 52 twentyfiveGigE8 7
Ethernet8 53 twentyfiveGigE9 8
Ethernet9 54 twentyfiveGigE10 9
Ethernet10 55 twentyfiveGigE11 10
Ethernet11 56 twentyfiveGigE12 11
Ethernet12 65 twentyfiveGigE13 12
Ethernet13 66 twentyfiveGigE14 13
Ethernet14 67 twentyfiveGigE15 14
Ethernet15 68 twentyfiveGigE16 15
Ethernet16 33 twentyfiveGigE17 16
Ethernet17 34 twentyfiveGigE18 17
Ethernet18 35 twentyfiveGigE19 18
Ethernet19 36 twentyfiveGigE20 19
Ethernet20 37 twentyfiveGigE21 20
Ethernet21 38 twentyfiveGigE22 21
Ethernet22 39 twentyfiveGigE23 22
Ethernet23 40 twentyfiveGigE24 23
Ethernet24 69 twentyfiveGigE25 24
Ethernet25 70 twentyfiveGigE26 25
Ethernet26 71 twentyfiveGigE27 26
Ethernet27 72 twentyfiveGigE28 27
Ethernet28 81 twentyfiveGigE29 28
Ethernet29 82 twentyfiveGigE30 29
Ethernet30 83 twentyfiveGigE31 30
Ethernet31 84 twentyfiveGigE32 31
Ethernet32 85 twentyfiveGigE33 32
Ethernet33 86 twentyfiveGigE34 33
Ethernet34 87 twentyfiveGigE35 34
Ethernet35 88 twentyfiveGigE36 35
Ethernet36 97 twentyfiveGigE37 36
Ethernet37 98 twentyfiveGigE38 37
Ethernet38 99 twentyfiveGigE39 38
Ethernet39 100 twentyfiveGigE40 39
Ethernet40 101 twentyfiveGigE41 40
Ethernet41 102 twentyfiveGigE42 41
Ethernet42 103 twentyfiveGigE43 42
Ethernet43 104 twentyfiveGigE44 43
Ethernet44 105 twentyfiveGigE45 44
Ethernet45 106 twentyfiveGigE46 45
Ethernet46 107 twentyfiveGigE47 46
Ethernet47 108 twentyfiveGigE48 47
Ethernet48 5,6,7,8 hundredGigE49 48
Ethernet52 1,2,3,4 hundredGigE50 52
Ethernet56 109,110,111,112 hundredGigE51 56
Ethernet60 21,22,23,24 hundredGigE52 60
Ethernet64 9,10,11,12 hundredGigE53 64
Ethernet68 117,118,119,120 hundredGigE54 68

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/td3-as7326-48x25G+8x100G.config.bcm

View File

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

View File

@ -0,0 +1,79 @@
# accton_as7326_56x 48x25G+8x100G SDK port LED macro init SOC
s CMIC_LEDUP0_DATA_RAM 0
s CMIC_LEDUP1_DATA_RAM 0
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=63 REMAP_PORT_1=63 REMAP_PORT_2=63 REMAP_PORT_3=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=63 REMAP_PORT_5=63 REMAP_PORT_6=63 REMAP_PORT_7=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=27 REMAP_PORT_9=26 REMAP_PORT_10=25 REMAP_PORT_11=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63 REMAP_PORT_13=63 REMAP_PORT_14=63 REMAP_PORT_15=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=63 REMAP_PORT_17=63 REMAP_PORT_18=63 REMAP_PORT_19=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=31 REMAP_PORT_21=30 REMAP_PORT_22=29 REMAP_PORT_23=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=15 REMAP_PORT_25=14 REMAP_PORT_26=13 REMAP_PORT_27=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=19 REMAP_PORT_29=18 REMAP_PORT_30=17 REMAP_PORT_31=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=63 REMAP_PORT_33=63 REMAP_PORT_34=63 REMAP_PORT_35=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=63 REMAP_PORT_37=63 REMAP_PORT_38=63 REMAP_PORT_39=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=35 REMAP_PORT_41=34 REMAP_PORT_42=33 REMAP_PORT_43=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=63 REMAP_PORT_45=63 REMAP_PORT_46=63 REMAP_PORT_47=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=23 REMAP_PORT_49=22 REMAP_PORT_50=21 REMAP_PORT_51=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11 REMAP_PORT_53=10 REMAP_PORT_54=9 REMAP_PORT_55=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7 REMAP_PORT_57=6 REMAP_PORT_58=5 REMAP_PORT_59=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3 REMAP_PORT_61=2 REMAP_PORT_62=1 REMAP_PORT_63=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=19 REMAP_PORT_1=18 REMAP_PORT_2=17 REMAP_PORT_3=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=23 REMAP_PORT_5=22 REMAP_PORT_6=21 REMAP_PORT_7=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=3 REMAP_PORT_9=2 REMAP_PORT_10=1 REMAP_PORT_11=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63 REMAP_PORT_13=63 REMAP_PORT_14=63 REMAP_PORT_15=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=7 REMAP_PORT_17=6 REMAP_PORT_18=5 REMAP_PORT_19=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=11 REMAP_PORT_21=10 REMAP_PORT_22=9 REMAP_PORT_23=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=63 REMAP_PORT_25=63 REMAP_PORT_26=63 REMAP_PORT_27=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=63 REMAP_PORT_29=63 REMAP_PORT_30=63 REMAP_PORT_31=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=15 REMAP_PORT_33=14 REMAP_PORT_34=13 REMAP_PORT_35=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=27 REMAP_PORT_37=26 REMAP_PORT_38=25 REMAP_PORT_39=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=63 REMAP_PORT_41=63 REMAP_PORT_42=63 REMAP_PORT_43=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=63 REMAP_PORT_45=63 REMAP_PORT_46=63 REMAP_PORT_47=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=31 REMAP_PORT_49=30 REMAP_PORT_50=29 REMAP_PORT_51=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=35 REMAP_PORT_53=34 REMAP_PORT_54=33 REMAP_PORT_55=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=63 REMAP_PORT_57=63 REMAP_PORT_58=63 REMAP_PORT_59=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=63 REMAP_PORT_62=63 REMAP_PORT_63=63
led 0 stop
led 0 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 7E \
02 FB 42 24 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 0 start
led auto on
led 1 stop
led 1 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 7E \
02 FB 42 24 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 1 start
led auto on

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
2: "13-0053",
1: "17-0051",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -0,0 +1,203 @@
# sfputil.py
#
# Platform-specific SFP transceiver interface for SONiC
#
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 81
PORTS_IN_BLOCK = 82
QSFP_PORT_START = 48
QSFP_PORT_END = 82
BASE_VAL_PATH = "/sys/class/i2c-adapter/i2c-{0}/{1}-0050/"
_port_to_is_present = {}
_port_to_lp_mode = {}
_port_to_eeprom_mapping = {}
_cpld_mapping = {
1: "12-0062",
2: "18-0060",
3: "19-0064",
}
_port_to_i2c_mapping = {
0: 42,
1: 41,
2: 44,
3: 43,
4: 47,
5: 45,
6: 46,
7: 50,
8: 48,
9: 49,
10: 51,
11: 52,
12: 53,
13: 56,
14: 55,
15: 54,
16: 58,
17: 57,
18: 59,
19: 60,
20: 61,
21: 63,
22: 62,
23: 64,
24: 66,
25: 68,
26: 65,
27: 67,
28: 69,
29: 71,
30: 72,
31: 70,
32: 74,
33: 73,
34: 76,
35: 75,
36: 77,
37: 79,
38: 78,
39: 80,
40: 81,
41: 82,
42: 84,
43: 85,
44: 83,
45: 87,
46: 88,
47: 86,
48: 25, #QSFP49
49: 25,
50: 25,
51: 25,
52: 26, #QSFP50
53: 26,
54: 26,
55: 26,
56: 27, #QSFP51
57: 26,
58: 26,
59: 26,
60: 28, #QSFP52
61: 26,
62: 26,
63: 26,
64: 29, #QSFP53
65: 26,
66: 26,
67: 26,
68: 30, #QSFP54
69: 26,
70: 26,
71: 26,
72: 31, #QSFP55
73: 26,
74: 26,
75: 26,
76: 32, #QSFP56
77: 26,
78: 26,
79: 26,
80: 22,
81: 23}
@property
def port_start(self):
return self.PORT_START
@property
def port_end(self):
return self.PORT_END
@property
def qsfp_port_start(self):
return self.QSFP_PORT_START
@property
def qsfp_port_end(self):
return self.QSFP_PORT_END
@property
def qsfp_ports(self):
return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom'
for x in range(0, self.port_end+1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(
self._port_to_i2c_mapping[x])
SfpUtilBase.__init__(self)
# For port 48~51 are QSFP, here presumed they're all split to 4 lanes.
def get_cage_num(self, port_num):
cage_num = port_num
if (port_num >= self.QSFP_PORT_START):
cage_num = (port_num - self.QSFP_PORT_START)/4
cage_num = cage_num + self.QSFP_PORT_START
return cage_num
# For cage 0~23 and 48~51 are at cpld2, others are at cpld3.
def get_cpld_num(self, port_num):
cpld_i = 1
cage_num = self.get_cage_num(port_num)
if (port_num > 29):
cpld_i = 2
return cpld_i
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
cage_num = self.get_cage_num(port_num)
cpld_i = self.get_cpld_num(port_num)
#print "[ROY] cpld:%d" % cpld_i
cpld_ps = self._cpld_mapping[cpld_i]
path = "/sys/bus/i2c/devices/{0}/module_present_{1}"
port_ps = path.format(cpld_ps, cage_num+1)
try:
val_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = val_file.readline().rstrip()
val_file.close()
# content is a string, either "0" or "1"
if content == "1":
return True
return False
def get_low_power_mode(self, port_num):
raise NotImplementedError
def set_low_power_mode(self, port_num, lpmode):
raise NotImplementedError
def reset(self, port_num):
raise NotImplementedError

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet0</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet36</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet40</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet44</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet48</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet52</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet56</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet60</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet64</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet68</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet72</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet76</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet80</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet84</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet88</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet92</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet96</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet100</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet104</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet108</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet112</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet116</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet120</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet124</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>AS7512</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1074,6 +1074,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>AS7512</HwSku>
</DeviceMiniGraph>

View File

@ -1,25 +1,72 @@
#! /usr/bin/python
try:
from sonic_sfp.sfputilbase import sfputilbase
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class sfputil(sfputilbase):
class SfpUtil(SfpUtilBase):
"""Platform specific sfputil class"""
port_start = 0
port_end = 31
_port_start = 0
_port_end = 31
ports_in_block = 32
port_to_eeprom_mapping = {}
_port_to_eeprom_mapping = {}
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self, port_num):
def __init__(self):
# Override port_to_eeprom_mapping for class initialization
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
for x in range(self.port_start, self.port_end + 1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + 18)
sfputilbase.__init__(self, port_num)
self._port_to_eeprom_mapping[x] = eeprom_path.format(x + 18)
SfpUtilBase.__init__(self)
def reset(self, port_num):
raise NotImplementedErro
def set_low_power_mode(self, port_nuM, lpmode):
raise NotImplementedErro
def get_low_power_mode(self, port_num):
raise NotImplementedErro
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(port_num+18)
try:
reg_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = reg_file.readline().rstrip()
if reg_value == '1':
return True
return False
@property
def port_start(self):
return self._port_start
@property
def port_end(self):
return self._port_end
@property
def qsfp_ports(self):
return range(0, self.ports_in_block + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping

View File

@ -0,0 +1,9 @@
INTERVAL=10
FCTEMPS=/sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/sys_temp
FCFANS=/sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan1_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan2_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan3_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan4_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan5_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan6_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan11_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan12_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan13_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan14_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan15_input /sys/bus/i2c/devices/2-0066/pwm1=/sys/bus/i2c/devices/2-0066/fan16_input
MINTEMP=/sys/bus/i2c/devices/2-0066/pwm1=135
MAXTEMP=/sys/bus/i2c/devices/2-0066/pwm1=160
MINSTART=/sys/bus/i2c/devices/2-0066/pwm1=100
MINSTOP=/sys/bus/i2c/devices/2-0066/pwm1=32
MINPWM=/sys/bus/i2c/devices/2-0066/pwm1=32
MAXPWM=/sys/bus/i2c/devices/2-0066/pwm1=69

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet0</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet36</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet40</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet44</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet48</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet52</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet56</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet60</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet64</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet68</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet72</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet76</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet80</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet84</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet88</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet92</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet96</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet100</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet104</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet108</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet112</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet116</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet120</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet124</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7712-32X</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1069,6 +1069,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7712-32X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
1: "11-0053",
2: "10-0050",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -53,7 +53,7 @@ class SfpUtil(SfpUtilBase):
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom'
for x in range(0, self._port_end + 1):
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1])
self._port_to_eeprom_mapping[x] = port_eeprom_path
@ -64,9 +64,9 @@ class SfpUtil(SfpUtilBase):
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
path = "/sys/bus/i2c/devices/4-0060/module_reset_{0}"
port_ps = path.format(port_num+1)
try:
reg_file = open(port_ps, 'w')
except IOError as e:
@ -83,18 +83,18 @@ class SfpUtil(SfpUtilBase):
return True
def set_low_power_mode(self, port_nuM, lpmode):
raise NotImplementedErro
raise NotImplementedError
def get_low_power_mode(self, port_num):
raise NotImplementedErro
raise NotImplementedError
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
path = "/sys/bus/i2c/devices/4-0060/module_present_{0}"
port_ps = path.format(port_num+1)
try:

View File

@ -0,0 +1,23 @@
# libsensors configuration file for AS7712-32X
# ------------------------------------------------
#
#Comment out the following for sku-sensors-data.yml
#chip "ym2651-*"
# label power1 "PSU Output Power"
# label temp1 "Power Supply Temp"
# label fan1 "Fan Speed"
#
#chip "as7712_32x_fan-*"
# label fan1 "Fan tray 1 front"
# label fan2 "Fan tray 2 front"
# label fan3 "Fan tray 3 front"
# label fan4 "Fan tray 4 front"
# label fan5 "Fan tray 5 front"
# label fan6 "Fan tray 6 front"
# label fan11 "Fan tray 1 rear"
# label fan12 "Fan tray 2 rear"
# label fan13 "Fan tray 3 rear"
# label fan14 "Fan tray 4 rear"
# label fan15 "Fan tray 5 rear"
# label fan16 "Fan tray 6 rear"

View File

@ -0,0 +1,41 @@
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=31 REMAP_PORT_1=30 REMAP_PORT_2=29 REMAP_PORT_3=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=27 REMAP_PORT_5=26 REMAP_PORT_6=25 REMAP_PORT_7=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=23 REMAP_PORT_9=22 REMAP_PORT_10=21 REMAP_PORT_11=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=19 REMAP_PORT_13=18 REMAP_PORT_14=17 REMAP_PORT_15=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=63 REMAP_PORT_17=62 REMAP_PORT_18=61 REMAP_PORT_19=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=59 REMAP_PORT_21=58 REMAP_PORT_22=57 REMAP_PORT_23=56
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=55 REMAP_PORT_25=54 REMAP_PORT_26=53 REMAP_PORT_27=52
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=51 REMAP_PORT_29=50 REMAP_PORT_30=49 REMAP_PORT_31=48
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=47 REMAP_PORT_33=46 REMAP_PORT_34=45 REMAP_PORT_35=44
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=43 REMAP_PORT_37=42 REMAP_PORT_38=41 REMAP_PORT_39=40
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=39 REMAP_PORT_41=38 REMAP_PORT_42=37 REMAP_PORT_43=36
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=35 REMAP_PORT_45=34 REMAP_PORT_46=33 REMAP_PORT_47=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15 REMAP_PORT_49=14 REMAP_PORT_50=13 REMAP_PORT_51=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11 REMAP_PORT_53=10 REMAP_PORT_54=9 REMAP_PORT_55=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7 REMAP_PORT_57=6 REMAP_PORT_58=5 REMAP_PORT_59=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3 REMAP_PORT_61=2 REMAP_PORT_62=1 REMAP_PORT_63=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=35 REMAP_PORT_1=34 REMAP_PORT_2=33 REMAP_PORT_3=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=39 REMAP_PORT_5=38 REMAP_PORT_6=37 REMAP_PORT_7=36
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=43 REMAP_PORT_9=42 REMAP_PORT_10=41 REMAP_PORT_11=40
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=47 REMAP_PORT_13=46 REMAP_PORT_14=45 REMAP_PORT_15=44
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=3 REMAP_PORT_17=2 REMAP_PORT_18=1 REMAP_PORT_19=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=7 REMAP_PORT_21=6 REMAP_PORT_22=5 REMAP_PORT_23=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=11 REMAP_PORT_25=10 REMAP_PORT_26=9 REMAP_PORT_27=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=15 REMAP_PORT_29=14 REMAP_PORT_30=13 REMAP_PORT_31=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=19 REMAP_PORT_33=18 REMAP_PORT_34=17 REMAP_PORT_35=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=23 REMAP_PORT_37=22 REMAP_PORT_38=21 REMAP_PORT_39=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=27 REMAP_PORT_41=26 REMAP_PORT_42=25 REMAP_PORT_43=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=31 REMAP_PORT_45=30 REMAP_PORT_46=29 REMAP_PORT_47=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51 REMAP_PORT_49=50 REMAP_PORT_50=49 REMAP_PORT_51=48
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55 REMAP_PORT_53=54 REMAP_PORT_54=53 REMAP_PORT_55=52
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59 REMAP_PORT_57=58 REMAP_PORT_58=57 REMAP_PORT_59=56
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60
led 0 prog 02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC 3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF 52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC 98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 84 67 98 57 80 18 71 EB 67 98 67 84 57 67 84 67 84 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 0 start
led 1 prog 02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC 3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF 52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC 98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 84 67 98 57 80 18 71 EB 67 98 67 84 57 67 84 67 84 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 1 start
led auto on

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet0</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet36</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet40</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet44</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet48</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet52</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet56</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet60</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet64</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet68</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet72</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet76</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet80</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet84</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet88</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet92</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet96</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet100</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet104</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet108</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet112</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet116</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet120</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet124</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7716-32X</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1069,6 +1069,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7716-32X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/1-0056/eeprom"
#Two i2c buses might get flipped order, check them both.
if not os.path.exists(self.eeprom_path):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
1: "18-0053",
2: "17-0050",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -0,0 +1,134 @@
# sfputil.py
#
# Platform-specific SFP transceiver interface for SONiC
#
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 31
PORTS_IN_BLOCK = 32
BASE_OOM_PATH = "/sys/bus/i2c/devices/{0}-0050/"
BASE_CPLD_PATH = "/sys/bus/i2c/devices/11-0060/"
_port_to_is_present = {}
_port_to_lp_mode = {}
_port_to_eeprom_mapping = {}
_port_to_i2c_mapping = {
0: [1, 29],
1: [2, 30],
2: [3, 31],
3: [4, 32],
4: [5, 34],
5: [6, 33],
6: [7, 36],
7: [8, 35],
8: [9, 25],
9: [10, 26],
10: [11, 27],
11: [12, 28],
12: [14, 37],
13: [15, 38],
14: [16, 39],
15: [17, 40],
16: [18, 41],
17: [19, 42],
18: [20, 43],
19: [21, 44],
20: [22, 53],
21: [23, 54],
22: [24, 55],
23: [25, 56],
24: [26, 45],
25: [27, 46],
26: [28, 47],
27: [29, 48],
28: [30, 49],
29: [31, 50],
30: [32, 51],
31: [33, 52],
}
@property
def port_start(self):
return self.PORT_START
@property
def port_end(self):
return self.PORT_END
@property
def qsfp_ports(self):
return range(self.PORT_START, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping
def __init__(self):
eeprom_path = self.BASE_OOM_PATH + "eeprom"
for x in range(0, self.port_end+1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(
self._port_to_i2c_mapping[x][1]
)
SfpUtilBase.__init__(self)
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
present_path = self.BASE_CPLD_PATH + "module_present_" + str(port_num+1)
self.__port_to_is_present = present_path
try:
val_file = open(self.__port_to_is_present)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = val_file.readline().rstrip()
val_file.close()
# content is a string, either "0" or "1"
if content == "1":
return True
return False
def get_low_power_mode(self, port_num):
raise NotImplementedError
def set_low_power_mode(self, port_num, lpmode):
raise NotImplementedError
def reset(self, port_num):
if port_num < self.port_start or port_num > self.port_end:
return False
mod_rst_path = self.BASE_CPLD_PATH + "module_reset_" + str(port_num+1)
self.__port_to_mod_rst = mod_rst_path
try:
reg_file = open(self.__port_to_mod_rst, 'r+')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = '1'
reg_file.write(reg_value)
reg_file.close()
return True

View File

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

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-as7716-32x100G.config.bcm

View File

@ -0,0 +1,3 @@
CONSOLE_PORT=0x3f8
CONSOLE_DEV=0
CONSOLE_SPEED=115200

View File

@ -0,0 +1,41 @@
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=31 REMAP_PORT_1=30 REMAP_PORT_2=29 REMAP_PORT_3=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=27 REMAP_PORT_5=26 REMAP_PORT_6=25 REMAP_PORT_7=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=23 REMAP_PORT_9=22 REMAP_PORT_10=21 REMAP_PORT_11=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=19 REMAP_PORT_13=18 REMAP_PORT_14=17 REMAP_PORT_15=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=63 REMAP_PORT_17=62 REMAP_PORT_18=61 REMAP_PORT_19=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=59 REMAP_PORT_21=58 REMAP_PORT_22=57 REMAP_PORT_23=56
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=55 REMAP_PORT_25=54 REMAP_PORT_26=53 REMAP_PORT_27=52
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=51 REMAP_PORT_29=50 REMAP_PORT_30=49 REMAP_PORT_31=48
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=47 REMAP_PORT_33=46 REMAP_PORT_34=45 REMAP_PORT_35=44
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=43 REMAP_PORT_37=42 REMAP_PORT_38=41 REMAP_PORT_39=40
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=39 REMAP_PORT_41=38 REMAP_PORT_42=37 REMAP_PORT_43=36
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=35 REMAP_PORT_45=34 REMAP_PORT_46=33 REMAP_PORT_47=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15 REMAP_PORT_49=14 REMAP_PORT_50=13 REMAP_PORT_51=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11 REMAP_PORT_53=10 REMAP_PORT_54=9 REMAP_PORT_55=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7 REMAP_PORT_57=6 REMAP_PORT_58=5 REMAP_PORT_59=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3 REMAP_PORT_61=2 REMAP_PORT_62=1 REMAP_PORT_63=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=35 REMAP_PORT_1=34 REMAP_PORT_2=33 REMAP_PORT_3=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=39 REMAP_PORT_5=38 REMAP_PORT_6=37 REMAP_PORT_7=36
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=43 REMAP_PORT_9=42 REMAP_PORT_10=41 REMAP_PORT_11=40
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=47 REMAP_PORT_13=46 REMAP_PORT_14=45 REMAP_PORT_15=44
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=3 REMAP_PORT_17=2 REMAP_PORT_18=1 REMAP_PORT_19=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=7 REMAP_PORT_21=6 REMAP_PORT_22=5 REMAP_PORT_23=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=11 REMAP_PORT_25=10 REMAP_PORT_26=9 REMAP_PORT_27=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=15 REMAP_PORT_29=14 REMAP_PORT_30=13 REMAP_PORT_31=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=19 REMAP_PORT_33=18 REMAP_PORT_34=17 REMAP_PORT_35=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=23 REMAP_PORT_37=22 REMAP_PORT_38=21 REMAP_PORT_39=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=27 REMAP_PORT_41=26 REMAP_PORT_42=25 REMAP_PORT_43=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=31 REMAP_PORT_45=30 REMAP_PORT_46=29 REMAP_PORT_47=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51 REMAP_PORT_49=50 REMAP_PORT_50=49 REMAP_PORT_51=48
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55 REMAP_PORT_53=54 REMAP_PORT_54=53 REMAP_PORT_55=52
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59 REMAP_PORT_57=58 REMAP_PORT_58=57 REMAP_PORT_59=56
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60
led 0 prog 02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC 3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF 52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC 98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 84 67 98 57 80 18 71 EB 67 98 67 84 57 67 84 67 84 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 0 start
led 1 prog 02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC 3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF 52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC 98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 84 67 98 57 80 18 71 EB 67 98 67 84 57 67 84 67 84 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 1 start
led auto on

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
#Two i2c buses might get flipped order, check them both.
if not os.path.exists(self.eeprom_path):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
1: "0-0053",
2: "0-0050",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -0,0 +1,138 @@
# sfputil.py
#
# Platform-specific SFP transceiver interface for SONiC
#
try:
import time
import os
import sys, getopt
import commands
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 31
PORTS_IN_BLOCK = 32
BASE_OOM_PATH = "/sys/bus/i2c/devices/{0}-0050/"
BASE_CPLD_PATH = "/sys/bus/i2c/devices/0-0060/"
BASE_I2C_PATH = "/sys/bus/i2c/devices/"
_port_to_is_present = {}
_port_to_lp_mode = {}
_port_to_eeprom_mapping = {}
_port_to_i2c_mapping = {
0: [1, 29],
1: [2, 30],
2: [3, 31],
3: [4, 32],
4: [5, 34],
5: [6, 33],
6: [7, 36],
7: [8, 35],
8: [9, 25],
9: [10, 26],
10: [11, 27],
11: [12, 28],
12: [14, 37],
13: [15, 38],
14: [16, 39],
15: [17, 40],
16: [18, 41],
17: [19, 42],
18: [20, 43],
19: [21, 44],
20: [22, 53],
21: [23, 54],
22: [24, 55],
23: [25, 56],
24: [26, 45],
25: [27, 46],
26: [28, 47],
27: [29, 48],
28: [30, 49],
29: [31, 50],
30: [32, 51],
31: [33, 52],
}
@property
def port_start(self):
return self.PORT_START
@property
def port_end(self):
return self.PORT_END
@property
def qsfp_ports(self):
return range(self.PORT_START, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
present_path = self.BASE_CPLD_PATH + "module_present_" + str(port_num+1)
self.__port_to_is_present = present_path
try:
val_file = open(self.__port_to_is_present)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = val_file.readline().rstrip()
val_file.close()
# content is a string, either "0" or "1"
if content == "1":
return True
return False
def __init__(self):
eeprom_path = self.BASE_I2C_PATH
for x in range(0, self.port_end+1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(
self._port_to_i2c_mapping[x][1]
)
if(x < 9):
if(self.get_presence(x)==1):
self.port_to_eeprom_mapping[x] = self.BASE_I2C_PATH + "0-000" +str(x+1) + "/eeprom"
else:
if(self.get_presence(x)==1):
self.port_to_eeprom_mapping[x] = self.BASE_I2C_PATH + "0-00" +str(x+1)+ "/eeprom"
SfpUtilBase.__init__(self)
def get_low_power_mode(self, port_num):
raise NotImplementedError
def set_low_power_mode(self, port_num, lpmode):
raise NotImplementedError
def reset(self, port_num):
if port_num < self.port_start or port_num > self.port_end:
return False
mod_rst_cmd = "ipmitool raw 0x34 0x11 " + str(port_num+1) + " 0x11 0x1"
(status, output) = commands.getstatusoutput (mod_rst_cmd)
return True

View File

@ -0,0 +1,65 @@
# name lanes alias
Ethernet0 73,74,75,76 hundredGigE1
Ethernet4 65,66,67,68 hundredGigE2
Ethernet8 81,82,83,84 hundredGigE3
Ethernet12 89,90,91,92 hundredGigE4
Ethernet16 105,106,107,108 hundredGigE5
Ethernet20 97,98,99,100 hundredGigE6
Ethernet24 113,114,115,116 hundredGigE7
Ethernet28 121,122,123,124 hundredGigE8
Ethernet32 41,42,43,44 hundredGigE9
Ethernet36 33,34,35,36 hundredGigE10
Ethernet40 49,50,51,52 hundredGigE11
Ethernet44 57,58,59,60 hundredGigE12
Ethernet48 137,138,139,140 hundredGigE13
Ethernet52 129,130,131,132 hundredGigE14
Ethernet56 145,146,147,148 hundredGigE15
Ethernet60 153,154,155,156 hundredGigE16
Ethernet64 173,174,175,176 hundredGigE17
Ethernet68 165,166,167,168 hundredGigE18
Ethernet72 181,182,183,184 hundredGigE19
Ethernet76 189,190,191,192 hundredGigE20
Ethernet80 13,14,15,16 hundredGigE21
Ethernet84 5,6,7,8 hundredGigE22
Ethernet88 29,30,31,32 hundredGigE23
Ethernet92 21,22,23,24 hundredGigE24
Ethernet96 205,206,207,208 hundredGigE25
Ethernet100 197,198,199,200 hundredGigE26
Ethernet104 213,214,215,216 hundredGigE27
Ethernet108 221,222,223,224 hundredGigE28
Ethernet112 229,230,231,232 hundredGigE29
Ethernet116 237,238,239,240 hundredGigE30
Ethernet120 245,246,247,248 hundredGigE31
Ethernet124 253,254,255,256 hundredGigE32
Ethernet128 69,70,71,72 hundredGigE33
Ethernet132 77,78,79,80 hundredGigE34
Ethernet136 93,94,95,96 hundredGigE35
Ethernet140 85,86,87,88 hundredGigE36
Ethernet144 101,102,103,104 hundredGigE37
Ethernet148 109,110,111,112 hundredGigE38
Ethernet152 125,126,127,128 hundredGigE39
Ethernet156 117,118,119,120 hundredGigE40
Ethernet160 37,38,39,40 hundredGigE41
Ethernet164 45,46,47,48 hundredGigE42
Ethernet168 61,62,63,64 hundredGigE43
Ethernet172 53,54,55,56 hundredGigE44
Ethernet176 133,134,135,136 hundredGigE45
Ethernet180 141,142,143,144 hundredGigE46
Ethernet184 157,158,159,160 hundredGigE47
Ethernet188 149,150,151,152 hundredGigE48
Ethernet192 161,162,163,164 hundredGigE49
Ethernet196 169,170,171,172 hundredGigE50
Ethernet200 185,186,187,188 hundredGigE51
Ethernet204 177,178,179,180 hundredGigE52
Ethernet208 1,2,3,4 hundredGigE53
Ethernet212 9,10,11,12 hundredGigE54
Ethernet216 25,26,27,28 hundredGigE55
Ethernet220 17,18,19,20 hundredGigE56
Ethernet224 193,194,195,196 hundredGigE57
Ethernet228 201,202,203,204 hundredGigE58
Ethernet232 217,218,219,220 hundredGigE59
Ethernet236 209,210,211,212 hundredGigE60
Ethernet240 225,226,227,228 hundredGigE61
Ethernet244 233,234,235,236 hundredGigE62
Ethernet248 249,250,251,252 hundredGigE63
Ethernet252 241,242,243,244 hundredGigE64

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th2-as7816-64x100G.config.bcm

View File

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

View File

@ -0,0 +1,155 @@
m CMIC_LEDUP0_CLK_PARAMS REFRESH_CYCLE_PERIOD=0xc00000
m CMIC_LEDUP1_CLK_PARAMS REFRESH_CYCLE_PERIOD=0xc00000
m CMIC_LEDUP2_CLK_PARAMS REFRESH_CYCLE_PERIOD=0xc00000
m CMIC_LEDUP3_CLK_PARAMS REFRESH_CYCLE_PERIOD=0xc00000
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=63 REMAP_PORT_1=62 REMAP_PORT_2=61 REMAP_PORT_3=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=59 REMAP_PORT_5=58 REMAP_PORT_6=57 REMAP_PORT_7=56
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=55 REMAP_PORT_9=54 REMAP_PORT_10=53 REMAP_PORT_11=52
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=51 REMAP_PORT_13=50 REMAP_PORT_14=49 REMAP_PORT_15=48
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=47 REMAP_PORT_17=46 REMAP_PORT_18=45 REMAP_PORT_19=44
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=43 REMAP_PORT_21=42 REMAP_PORT_22=41 REMAP_PORT_23=40
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=39 REMAP_PORT_25=38 REMAP_PORT_26=37 REMAP_PORT_27=36
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=35 REMAP_PORT_29=34 REMAP_PORT_30=33 REMAP_PORT_31=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=31 REMAP_PORT_33=30 REMAP_PORT_34=29 REMAP_PORT_35=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=27 REMAP_PORT_37=26 REMAP_PORT_38=25 REMAP_PORT_39=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=23 REMAP_PORT_41=22 REMAP_PORT_42=21 REMAP_PORT_43=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=19 REMAP_PORT_45=18 REMAP_PORT_46=17 REMAP_PORT_47=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15 REMAP_PORT_49=14 REMAP_PORT_50=13 REMAP_PORT_51=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11 REMAP_PORT_53=10 REMAP_PORT_54=9 REMAP_PORT_55=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7 REMAP_PORT_57=6 REMAP_PORT_58=5 REMAP_PORT_59=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3 REMAP_PORT_61=2 REMAP_PORT_62=1 REMAP_PORT_63=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=3 REMAP_PORT_1=2 REMAP_PORT_2=1 REMAP_PORT_3=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=7 REMAP_PORT_5=6 REMAP_PORT_6=5 REMAP_PORT_7=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=11 REMAP_PORT_9=10 REMAP_PORT_10=9 REMAP_PORT_11=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=15 REMAP_PORT_13=14 REMAP_PORT_14=13 REMAP_PORT_15=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=19 REMAP_PORT_17=18 REMAP_PORT_18=17 REMAP_PORT_19=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=23 REMAP_PORT_21=22 REMAP_PORT_22=21 REMAP_PORT_23=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=27 REMAP_PORT_25=26 REMAP_PORT_26=25 REMAP_PORT_27=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=31 REMAP_PORT_29=30 REMAP_PORT_30=29 REMAP_PORT_31=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=35 REMAP_PORT_33=34 REMAP_PORT_34=33 REMAP_PORT_35=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=39 REMAP_PORT_37=38 REMAP_PORT_38=37 REMAP_PORT_39=36
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=43 REMAP_PORT_41=42 REMAP_PORT_42=41 REMAP_PORT_43=40
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=47 REMAP_PORT_45=46 REMAP_PORT_46=45 REMAP_PORT_47=44
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51 REMAP_PORT_49=50 REMAP_PORT_50=49 REMAP_PORT_51=48
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55 REMAP_PORT_53=54 REMAP_PORT_54=53 REMAP_PORT_55=52
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59 REMAP_PORT_57=58 REMAP_PORT_58=57 REMAP_PORT_59=56
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60
m CMIC_LEDUP2_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=63 REMAP_PORT_1=62 REMAP_PORT_2=61 REMAP_PORT_3=60
m CMIC_LEDUP2_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=59 REMAP_PORT_5=58 REMAP_PORT_6=57 REMAP_PORT_7=56
m CMIC_LEDUP2_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=55 REMAP_PORT_9=54 REMAP_PORT_10=53 REMAP_PORT_11=52
m CMIC_LEDUP2_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=51 REMAP_PORT_13=50 REMAP_PORT_14=49 REMAP_PORT_15=48
m CMIC_LEDUP2_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=47 REMAP_PORT_17=46 REMAP_PORT_18=45 REMAP_PORT_19=44
m CMIC_LEDUP2_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=43 REMAP_PORT_21=42 REMAP_PORT_22=41 REMAP_PORT_23=40
m CMIC_LEDUP2_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=39 REMAP_PORT_25=38 REMAP_PORT_26=37 REMAP_PORT_27=36
m CMIC_LEDUP2_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=35 REMAP_PORT_29=34 REMAP_PORT_30=33 REMAP_PORT_31=32
m CMIC_LEDUP2_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=31 REMAP_PORT_33=30 REMAP_PORT_34=29 REMAP_PORT_35=28
m CMIC_LEDUP2_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=27 REMAP_PORT_37=26 REMAP_PORT_38=25 REMAP_PORT_39=24
m CMIC_LEDUP2_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=23 REMAP_PORT_41=22 REMAP_PORT_42=21 REMAP_PORT_43=20
m CMIC_LEDUP2_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=19 REMAP_PORT_45=18 REMAP_PORT_46=17 REMAP_PORT_47=16
m CMIC_LEDUP2_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15 REMAP_PORT_49=14 REMAP_PORT_50=13 REMAP_PORT_51=12
m CMIC_LEDUP2_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11 REMAP_PORT_53=10 REMAP_PORT_54=9 REMAP_PORT_55=8
m CMIC_LEDUP2_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7 REMAP_PORT_57=6 REMAP_PORT_58=5 REMAP_PORT_59=4
m CMIC_LEDUP2_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3 REMAP_PORT_61=2 REMAP_PORT_62=1 REMAP_PORT_63=0
m CMIC_LEDUP3_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=3 REMAP_PORT_1=2 REMAP_PORT_2=1 REMAP_PORT_3=0
m CMIC_LEDUP3_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=7 REMAP_PORT_5=6 REMAP_PORT_6=5 REMAP_PORT_7=4
m CMIC_LEDUP3_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=11 REMAP_PORT_9=10 REMAP_PORT_10=9 REMAP_PORT_11=8
m CMIC_LEDUP3_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=15 REMAP_PORT_13=14 REMAP_PORT_14=13 REMAP_PORT_15=12
m CMIC_LEDUP3_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=19 REMAP_PORT_17=18 REMAP_PORT_18=17 REMAP_PORT_19=16
m CMIC_LEDUP3_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=23 REMAP_PORT_21=22 REMAP_PORT_22=21 REMAP_PORT_23=20
m CMIC_LEDUP3_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=27 REMAP_PORT_25=26 REMAP_PORT_26=25 REMAP_PORT_27=24
m CMIC_LEDUP3_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=31 REMAP_PORT_29=30 REMAP_PORT_30=29 REMAP_PORT_31=28
m CMIC_LEDUP3_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=35 REMAP_PORT_33=34 REMAP_PORT_34=33 REMAP_PORT_35=32
m CMIC_LEDUP3_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=39 REMAP_PORT_37=38 REMAP_PORT_38=37 REMAP_PORT_39=36
m CMIC_LEDUP3_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=43 REMAP_PORT_41=42 REMAP_PORT_42=41 REMAP_PORT_43=40
m CMIC_LEDUP3_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=47 REMAP_PORT_45=46 REMAP_PORT_46=45 REMAP_PORT_47=44
m CMIC_LEDUP3_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51 REMAP_PORT_49=50 REMAP_PORT_50=49 REMAP_PORT_51=48
m CMIC_LEDUP3_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55 REMAP_PORT_53=54 REMAP_PORT_54=53 REMAP_PORT_55=52
m CMIC_LEDUP3_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59 REMAP_PORT_57=58 REMAP_PORT_58=57 REMAP_PORT_59=56
m CMIC_LEDUP3_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60
led 0 stop
led 0 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 \
02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 1 stop
led 1 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 \
02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 2 stop
led 2 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 \
02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 3 stop
led 3 prog \
02 FD 42 80 02 FF 42 00 02 FE 42 00 02 FA 42 E0 \
02 FB 42 40 06 F9 D2 00 74 1E 02 F9 42 03 67 AC \
67 C3 67 52 86 FE 67 C3 67 52 86 FE 67 C3 67 52 \
86 FE 67 C3 67 52 86 FE 06 FB D6 FE 74 1E 86 FC \
3E FA 06 FE 88 4A 03 71 4C 67 84 57 67 84 57 67 \
98 57 06 FE 88 80 4A 00 27 97 75 4F 90 4A 00 27 \
4A 01 27 B7 97 71 69 77 42 06 F9 D6 FC 74 7C 02 \
F9 4A 07 37 4E 07 02 FC 42 00 4E 07 06 F9 0A 07 \
71 4F 77 42 16 FF 06 FD 17 4D DA 07 74 95 12 FF \
52 00 86 FD 57 86 FF 57 16 FF 06 FD 07 4D DA 07 \
74 A9 12 FF 52 00 86 FD 57 86 FF 57 06 FE C2 FC \
98 98 12 F4 50 C2 FC 98 98 F2 F0 14 06 F4 C2 03 \
88 77 D1 06 FE C2 FC 98 98 F2 E0 14 06 FE C2 03 \
88 18 71 E2 80 18 71 DD 67 98 67 98 57 67 98 67 \
84 57 80 18 71 EB 67 84 67 98 57 67 84 67 84 57 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led auto on
led 0 start
led 1 start
led 2 start
led 3 start

View File

@ -0,0 +1,848 @@
<DeviceMiniGraph xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Search.Autopilot.Evolution">
<CpgDec>
<IsisRouters xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
<PeeringSessions>
</PeeringSessions>
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
</Routers>
</CpgDec>
<DpgDec>
<DeviceDataPlaneInfo>
<IPSecTunnels/>
<LoopbackIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:LoopbackIPInterface>
<Name>HostIP</Name>
<AttachTo>Loopback0</AttachTo>
<a:Prefix xmlns:b="Microsoft.Search.Autopilot.Evolution">
<b:IPPrefix>10.1.0.32/32</b:IPPrefix>
</a:Prefix>
<a:PrefixStr>10.1.0.32/32</a:PrefixStr>
</a:LoopbackIPInterface>
</LoopbackIPInterfaces>
<ManagementIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
</ManagementIPInterfaces>
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE1</AttachTo>
<Prefix>10.0.0.0/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE2</AttachTo>
<Prefix>10.0.0.2/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE3</AttachTo>
<Prefix>10.0.0.4/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE4</AttachTo>
<Prefix>10.0.0.6/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE5</AttachTo>
<Prefix>10.0.0.8/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE6</AttachTo>
<Prefix>10.0.0.10/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE7</AttachTo>
<Prefix>10.0.0.12/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE8</AttachTo>
<Prefix>10.0.0.14/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE9</AttachTo>
<Prefix>10.0.0.16/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE10</AttachTo>
<Prefix>10.0.0.18/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE11</AttachTo>
<Prefix>10.0.0.20/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE12</AttachTo>
<Prefix>10.0.0.22/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE13</AttachTo>
<Prefix>10.0.0.24/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE14</AttachTo>
<Prefix>10.0.0.26/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE15</AttachTo>
<Prefix>10.0.0.28/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE16</AttachTo>
<Prefix>10.0.0.30/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE17</AttachTo>
<Prefix>10.0.0.32/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE18</AttachTo>
<Prefix>10.0.0.34/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE19</AttachTo>
<Prefix>10.0.0.36/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE20</AttachTo>
<Prefix>10.0.0.38/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE21</AttachTo>
<Prefix>10.0.0.40/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE22</AttachTo>
<Prefix>10.0.0.42/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE23</AttachTo>
<Prefix>10.0.0.44/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE24</AttachTo>
<Prefix>10.0.0.46/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE25</AttachTo>
<Prefix>10.0.0.48/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE26</AttachTo>
<Prefix>10.0.0.50/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE27</AttachTo>
<Prefix>10.0.0.52/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE28</AttachTo>
<Prefix>10.0.0.54/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE29</AttachTo>
<Prefix>10.0.0.56/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE30</AttachTo>
<Prefix>10.0.0.58/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE31</AttachTo>
<Prefix>10.0.0.60/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE32</AttachTo>
<Prefix>10.0.0.62/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE33</AttachTo>
<Prefix>10.0.0.64/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE34</AttachTo>
<Prefix>10.0.0.66/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE35</AttachTo>
<Prefix>10.0.0.68/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE36</AttachTo>
<Prefix>10.0.0.70/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE37</AttachTo>
<Prefix>10.0.0.72/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE38</AttachTo>
<Prefix>10.0.0.74/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE39</AttachTo>
<Prefix>10.0.0.76/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE40</AttachTo>
<Prefix>10.0.0.78/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE41</AttachTo>
<Prefix>10.0.0.80/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE42</AttachTo>
<Prefix>10.0.0.82/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE43</AttachTo>
<Prefix>10.0.0.84/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE44</AttachTo>
<Prefix>10.0.0.86/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE45</AttachTo>
<Prefix>10.0.0.88/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE46</AttachTo>
<Prefix>10.0.0.90/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE47</AttachTo>
<Prefix>10.0.0.92/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE48</AttachTo>
<Prefix>10.0.0.94/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE49</AttachTo>
<Prefix>10.0.0.96/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE50</AttachTo>
<Prefix>10.0.0.98/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE51</AttachTo>
<Prefix>10.0.0.100/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE52</AttachTo>
<Prefix>10.0.0.102/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE53</AttachTo>
<Prefix>10.0.0.104/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE54</AttachTo>
<Prefix>10.0.0.106/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE55</AttachTo>
<Prefix>10.0.0.108/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE56</AttachTo>
<Prefix>10.0.0.110/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE57</AttachTo>
<Prefix>10.0.0.112/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE58</AttachTo>
<Prefix>10.0.0.114/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE59</AttachTo>
<Prefix>10.0.0.116/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE60</AttachTo>
<Prefix>10.0.0.118/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE61</AttachTo>
<Prefix>10.0.0.120/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE62</AttachTo>
<Prefix>10.0.0.122/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE63</AttachTo>
<Prefix>10.0.0.124/31</Prefix>
</IPInterface>
<IPInterface>
<Name i:Name="true"/>
<AttachTo>hundredGigE64</AttachTo>
<Prefix>10.0.0.126/31</Prefix>
</IPInterface>
</IPInterfaces>
<DataAcls/>
<AclInterfaces/>
<DownstreamSummaries/>
<DownstreamSummarySet xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</DeviceDataPlaneInfo>
</DpgDec>
<PngDec>
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE1</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE2</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE2</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE3</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE3</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE4</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE4</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE5</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE5</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE6</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE6</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE7</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE7</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE8</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE8</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE9</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE9</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE10</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE10</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE11</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE11</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE12</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE12</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE13</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE13</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE14</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE14</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE15</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE15</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE16</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE16</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE17</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE17</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE18</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE18</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE19</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE19</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE20</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE20</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE21</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE21</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE22</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE22</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE23</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE23</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE24</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE24</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE25</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE25</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE26</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE26</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE27</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE27</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE28</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE28</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE29</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE29</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE30</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE30</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE31</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE31</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE32</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE32</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE33</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE33</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE34</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE34</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE35</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE35</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE36</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE36</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE37</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE37</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE38</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE38</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE39</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE39</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE40</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE40</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE41</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE41</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE42</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE42</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE43</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE43</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE44</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE44</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE45</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE45</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE46</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE46</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE47</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE47</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE48</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE48</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE49</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE49</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE50</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE50</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE51</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE51</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE52</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE52</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE53</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE53</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE54</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE54</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE55</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE55</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE56</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE56</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE57</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE57</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE58</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE58</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE59</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE59</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE60</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE60</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE61</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE61</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE62</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE62</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE63</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE63</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>sonic-target</EndDevice>
<EndPort>hundredGigE64</EndPort>
<StartDevice>sonic</StartDevice>
<StartPort>hundredGigE64</StartPort>
</DeviceLinkBase>
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7816-64X</HwSku>
</Device>
</Devices>
</PngDec>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value></a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>NtpResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value>0.debian.pool.ntp.org;1.debian.pool.ntp.org;2.debian.pool.ntp.org;3.debian.pool.ntp.org</a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>SyslogResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value></a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>ErspanDestinationIpv4</a:Name>
<a:Reference i:nil="true"/>
<a:Value>2.2.2.2</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>sonic</Hostname>
<HwSku>Accton-AS7816-64X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,61 @@
#!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
import os.path
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)
self.psu_path = "/sys/bus/i2c/devices/"
self.psu_presence = "/psu_present"
self.psu_oper_status = "/psu_power_good"
self.psu_mapping = {
1: "10-0053",
2: "9-0050",
}
def get_num_psus(self):
return len(self.psu_mapping)
def get_psu_status(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index]+self.psu_oper_status
try:
with open(node, 'r') as power_status:
status = int(power_status.read())
except IOError:
return False
return status == 1
def get_psu_presence(self, index):
if index is None:
return False
status = 0
node = self.psu_path + self.psu_mapping[index] + self.psu_presence
try:
with open(node, 'r') as presence_status:
status = int(presence_status.read())
except IOError:
return False
return status == 1

View File

@ -0,0 +1,155 @@
#!/usr/bin/env python
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class SfpUtil(SfpUtilBase):
"""Platform specific SfpUtill class"""
_port_start = 0
_port_end = 63
ports_in_block = 64
_port_to_eeprom_mapping = {}
port_to_i2c_mapping = {
61 : 25,
62 : 26,
63 : 27,
64 : 28,
55 : 29,
56 : 30,
53 : 31,
54 : 32,
9 : 33,
10 : 34,
11 : 35,
12 : 36,
1 : 37,
2 : 38,
3 : 39,
4 : 40,
6 : 41,
5 : 42,
8 : 43,
7 : 44,
13 : 45,
14 : 46,
15 : 47,
16 : 48,
17 : 49,
18 : 50,
19 : 51,
20 : 52,
25 : 53,
26 : 54,
27 : 55,
28 : 56,
29 : 57,
30 : 58,
31 : 59,
32 : 60,
21 : 61,
22 : 62,
23 : 63,
24 : 64,
41 : 65,
42 : 66,
43 : 67,
44 : 68,
33 : 69,
34 : 70,
35 : 71,
36 : 72,
45 : 73,
46 : 74,
47 : 75,
48 : 76,
37 : 77,
38 : 78,
39 : 79,
40 : 80,
57 : 81,
58 : 82,
59 : 83,
60 : 84,
49 : 85,
50 : 86,
51 : 87,
52 : 88,}
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
for x in range(0, self._port_end + 1):
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1])
self._port_to_eeprom_mapping[x] = port_eeprom_path
SfpUtilBase.__init__(self)
def reset(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/19-0060/module_reset_{0}"
port_ps = path.format(port_num+1)
try:
reg_file = open(port_ps, 'w')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
#HW will clear reset after set.
reg_file.seek(0)
reg_file.write('1')
reg_file.close()
return True
def set_low_power_mode(self, port_nuM, lpmode):
raise NotImplementedError
def get_low_power_mode(self, port_num):
raise NotImplementedError
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
try:
reg_file = open(port_ps)
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = reg_file.readline().rstrip()
if reg_value == '1':
return True
return False
@property
def port_start(self):
return self._port_start
@property
def port_end(self):
return self._port_end
@property
def qsfp_ports(self):
return range(0, self.ports_in_block + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping

View File

@ -0,0 +1,128 @@
{# Default values which will be used if no actual configura available #}
{% set default_cable = '300m' %}
{% set default_speed = '100G' %}
{% set default_ports_num = 32 -%}
{# 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(0,default_ports_num) %}
{% if PORT.append("Ethernet%d" % (port_idx*4)) %}{% 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 %}
}
},
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "12766208",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "12766208",
"type": "egress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "8072396",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"xon":"18432",
"xoff":"40560",
"size":"41808",
"dynamic_th":"-4",
"xon_offset":"2496"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"12766208"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
"BUFFER_PG": {
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
"{{ port_names }}|0-1": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
},
"BUFFER_QUEUE": {
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
},
"{{ port_names }}|0-1": {
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
}
}
}

View File

@ -92,64 +92,51 @@
}
},
"SCHEDULER": {
"scheduler.0": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1": {
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2": {
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP:AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP:AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP:AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE:AZURE]",
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY": {
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"AZURE_LOSSLESS": {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
"red_max_threshold":"312000",
"red_min_threshold":"104000",
"yellow_max_threshold":"312000",
"yellow_min_threshold":"104000",
"green_max_threshold":"312000",
"green_min_threshold":"104000"
}
},
"QUEUE": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0-1" : {
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:3-4" : {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]",
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0" : {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:1" : {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet1/1</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet2/1</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet3/1</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4/1</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet5/1</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet6/1</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet7/1</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8/1</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet9/1</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet10/1</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet11/1</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12/1</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet13/1</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet14/1</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet15/1</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16/1</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet17/1</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet18/1</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet19/1</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20/1</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet21/1</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet22/1</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet23/1</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24/1</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet25</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet26</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet27</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet29</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet30</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet31</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7050-QX32</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1074,6 +1074,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7050-QX32</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,128 @@
{# Default values which will be used if no actual configura available #}
{% set default_cable = '300m' %}
{% set default_speed = '100G' %}
{% set default_ports_num = 32 -%}
{# 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(0,default_ports_num) %}
{% if PORT.append("Ethernet%d" % (port_idx*4)) %}{% 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 %}
}
},
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "12766208",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "12766208",
"type": "egress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "8072396",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"xon":"18432",
"xoff":"40560",
"size":"41808",
"dynamic_th":"-4",
"xon_offset":"2496"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"12766208"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
"BUFFER_PG": {
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
"{{ port_names }}|0-1": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
},
"BUFFER_QUEUE": {
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
},
"{{ port_names }}|0-1": {
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
}
}
}

View File

@ -0,0 +1,143 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"3": "3",
"4": "4"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"0": "0",
"1": "1",
"3": "3",
"4": "4"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"3": "3",
"4": "4"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"312000",
"red_min_threshold":"104000",
"yellow_max_threshold":"312000",
"yellow_min_threshold":"104000",
"green_max_threshold":"312000",
"green_min_threshold":"104000"
}
},
"QUEUE": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]",
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet1/1</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet2/1</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet3/1</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4/1</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet5/1</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet6/1</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet7/1</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8/1</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet9/1</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet10/1</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet11/1</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12/1</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet13/1</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet14/1</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet15/1</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16/1</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet17/1</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet18/1</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet19/1</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20/1</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet21/1</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet22/1</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet23/1</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24/1</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet25</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet26</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet27</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet29</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet30</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet31</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7050-QX-32S</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1074,6 +1074,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7050-QX-32S</HwSku>
</DeviceMiniGraph>

View File

@ -81,13 +81,13 @@ class LedControl(LedControlBase):
f.write("1")
# Initialize all fan LEDs to green
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon2/fan1_led", "w") as f:
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan1_led", "w") as f:
f.write("1")
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon2/fan2_led", "w") as f:
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan2_led", "w") as f:
f.write("1")
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon2/fan3_led", "w") as f:
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan3_led", "w") as f:
f.write("1")
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon2/fan4_led", "w") as f:
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan4_led", "w") as f:
f.write("1")

View File

@ -29,14 +29,6 @@ chip "max6658-i2c-3-4c"
set temp2_max 75
set temp2_crit 80
chip "pmbus-i2c-3-4e"
label temp1 "Power controller 1 sensor 1"
label temp2 "Power controller 1 sensor 2"
chip "pmbus-i2c-7-4e"
label temp1 "Power controller 2 sensor 1"
label temp2 "Power controller 2 sensor 2"
chip "pmbus-i2c-6-58"
label temp1 "Power supply 1 hotspot sensor"
label temp2 "Power supply 1 inlet temp sensor"

View File

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

View File

@ -0,0 +1,47 @@
{%- set default_cable = '5m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,128,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "11213696",
"type": "ingress",
"mode": "dynamic",
"xoff": "3855488"
},
"egress_lossy_pool": {
"size": "9532224",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"3995680"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}

View File

@ -0,0 +1,47 @@
{%- set default_cable = '40m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,128,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "10443264",
"type": "ingress",
"mode": "dynamic",
"xoff": "4625920"
},
"egress_lossy_pool": {
"size": "8877440",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"3995680"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}

View File

@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1248 2288 35776 -4 2288
25000 5m 1248 2288 53248 -4 2288
40000 5m 1248 2288 66560 -4 2288
50000 5m 1248 2288 90272 -4 2288
100000 5m 1248 2288 165568 -4 2288
10000 40m 1248 2288 37024 -4 2288
25000 40m 1248 2288 53248 -4 2288
40000 40m 1248 2288 71552 -4 2288
50000 40m 1248 2288 96096 -4 2288
100000 40m 1248 2288 177632 -4 2288
10000 300m 1248 2288 46176 -4 2288
25000 300m 1248 2288 79040 -4 2288
40000 300m 1248 2288 108160 -4 2288
50000 300m 1248 2288 141856 -4 2288
100000 300m 1248 2288 268736 -4 2288

View File

@ -0,0 +1,167 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
}
},
"QUEUE": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0-1" : {
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -1 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-32x100G.config.bcm
SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-32x100G-t1.config.bcm

View File

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

View File

@ -0,0 +1,61 @@
{%- set default_cable = '5m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,6) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(10,22) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(24,32) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(6,10) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(22,24) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "11213696",
"type": "ingress",
"mode": "dynamic",
"xoff": "8356608"
},
"egress_lossy_pool": {
"size": "9532224",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"3995680"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}

View File

@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1248 2288 35776 -4 2288
25000 5m 1248 2288 53248 -4 2288
40000 5m 1248 2288 66560 -4 2288
50000 5m 1248 2288 79872 -4 2288
100000 5m 1248 2288 165568 -4 2288
10000 40m 1248 2288 37024 -4 2288
25000 40m 1248 2288 56160 -4 2288
40000 40m 1248 2288 71552 -4 2288
50000 40m 1248 2288 85696 -4 2288
100000 40m 1248 2288 177632 -4 2288
10000 300m 1248 2288 46176 -4 2288
25000 300m 1248 2288 79040 -4 2288
40000 300m 1248 2288 108160 -4 2288
50000 300m 1248 2288 131456 -4 2288
100000 300m 1248 2288 268736 -4 2288

View File

@ -0,0 +1,57 @@
# name lanes alias index speed
Ethernet0 33,34 Ethernet1/1 1 50000
Ethernet2 35,36 Ethernet1/3 1 50000
Ethernet4 37,38 Ethernet2/1 2 50000
Ethernet6 39,40 Ethernet2/3 2 50000
Ethernet8 41,42 Ethernet3/1 3 50000
Ethernet10 43,44 Ethernet3/3 3 50000
Ethernet12 45,46 Ethernet4/1 4 50000
Ethernet14 47,48 Ethernet4/3 4 50000
Ethernet16 49,50 Ethernet5/1 5 50000
Ethernet18 51,52 Ethernet5/3 5 50000
Ethernet20 53,54 Ethernet6/1 6 50000
Ethernet22 55,56 Ethernet6/3 6 50000
Ethernet24 57,58,59,60 Ethernet7/1 7 100000
Ethernet28 61,62,63,64 Ethernet8/1 8 100000
Ethernet32 65,66,67,68 Ethernet9/1 9 100000
Ethernet36 69,70,71,72 Ethernet10/1 10 100000
Ethernet40 73,74 Ethernet11/1 11 50000
Ethernet42 75,76 Ethernet11/3 11 50000
Ethernet44 77,78 Ethernet12/1 12 50000
Ethernet46 79,80 Ethernet12/3 12 50000
Ethernet48 81,82 Ethernet13/1 13 50000
Ethernet50 83,84 Ethernet13/3 13 50000
Ethernet52 85,86 Ethernet14/1 14 50000
Ethernet54 87,88 Ethernet14/3 14 50000
Ethernet56 89,90 Ethernet15/1 15 50000
Ethernet58 91,92 Ethernet15/3 15 50000
Ethernet60 93,94 Ethernet16/1 16 50000
Ethernet62 95,96 Ethernet16/3 16 50000
Ethernet64 97,98 Ethernet17/1 17 50000
Ethernet66 99,100 Ethernet17/3 17 50000
Ethernet68 101,102 Ethernet18/1 18 50000
Ethernet70 103,104 Ethernet18/3 18 50000
Ethernet72 105,106 Ethernet19/1 19 50000
Ethernet74 107,108 Ethernet19/3 19 50000
Ethernet76 109,110 Ethernet20/1 20 50000
Ethernet78 111,112 Ethernet20/3 20 50000
Ethernet80 113,114 Ethernet21/1 21 50000
Ethernet82 115,116 Ethernet21/3 21 50000
Ethernet84 117,118 Ethernet22/1 22 50000
Ethernet86 119,120 Ethernet22/3 22 50000
Ethernet88 121,122,123,124 Ethernet23/1 23 100000
Ethernet92 125,126,127,128 Ethernet24/1 24 100000
Ethernet96 1,2,3,4 Ethernet25/1 25 100000
Ethernet100 5,6,7,8 Ethernet26/1 26 100000
Ethernet104 9,10 Ethernet27/1 27 50000
Ethernet106 11,12 Ethernet27/3 27 50000
Ethernet108 13,14 Ethernet28/1 28 50000
Ethernet110 15,16 Ethernet28/3 28 50000
Ethernet112 17,18 Ethernet29/1 29 50000
Ethernet114 19,20 Ethernet29/3 29 50000
Ethernet116 21,22 Ethernet30/1 30 50000
Ethernet118 23,24 Ethernet30/3 30 50000
Ethernet120 25,26 Ethernet31/1 31 50000
Ethernet122 27,28 Ethernet31/3 31 50000
Ethernet124 29,30 Ethernet32/1 32 50000
Ethernet126 31,32 Ethernet32/3 32 50000

View File

@ -0,0 +1,167 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
}
},
"QUEUE": {
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|0-1": {
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|3-4": {
"scheduler" : "[SCHEDULER|scheduler.0]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|0": {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|1": {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-8x100G+48x50G.config.bcm

View File

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

View File

@ -0,0 +1,47 @@
{%- set default_cable = '5m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,128,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "11213696",
"type": "ingress",
"mode": "dynamic",
"xoff": "3855488"
},
"egress_lossy_pool": {
"size": "9532224",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"3995680"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}

View File

@ -0,0 +1,47 @@
{%- set default_cable = '40m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,128,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "10443264",
"type": "ingress",
"mode": "dynamic",
"xoff": "4625920"
},
"egress_lossy_pool": {
"size": "8877440",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"3995680"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}

View File

@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1248 2288 35776 -4 2288
25000 5m 1248 2288 53248 -4 2288
40000 5m 1248 2288 66560 -4 2288
50000 5m 1248 2288 90272 -4 2288
100000 5m 1248 2288 165568 -4 2288
10000 40m 1248 2288 37024 -4 2288
25000 40m 1248 2288 53248 -4 2288
40000 40m 1248 2288 71552 -4 2288
50000 40m 1248 2288 96096 -4 2288
100000 40m 1248 2288 177632 -4 2288
10000 300m 1248 2288 46176 -4 2288
25000 300m 1248 2288 79040 -4 2288
40000 300m 1248 2288 108160 -4 2288
50000 300m 1248 2288 141856 -4 2288
100000 300m 1248 2288 268736 -4 2288

View File

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

View File

@ -0,0 +1,167 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
}
},
"QUEUE": {
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0-1" : {
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -0,0 +1,13 @@
{# Get sai.profile based on switch_role #}
{%- if DEVICE_METADATA is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
{%- if switch_role.lower() == 'torrouter' %}
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-32x40G.config.bcm' -%}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-32x40G-t1.config.bcm' -%}
{%- endif %}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-32x40G-t1.config.bcm' -%}
{%- endif %}
{# Write the contents of sai_ profile_filename to sai.profile file #}
{{ sai_profile_contents }}

View File

@ -5,14 +5,14 @@
<BGPSession>
<StartRouter>ARISTA01T0</StartRouter>
<StartPeer>10.0.0.33</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.32</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.0</StartPeer>
<EndRouter>ARISTA01T2</EndRouter>
<EndPeer>10.0.0.1</EndPeer>
@ -23,14 +23,14 @@
<BGPSession>
<StartRouter>ARISTA02T0</StartRouter>
<StartPeer>10.0.0.35</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.34</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.2</StartPeer>
<EndRouter>ARISTA02T2</EndRouter>
<EndPeer>10.0.0.3</EndPeer>
@ -41,14 +41,14 @@
<BGPSession>
<StartRouter>ARISTA03T0</StartRouter>
<StartPeer>10.0.0.37</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.36</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.4</StartPeer>
<EndRouter>ARISTA03T2</EndRouter>
<EndPeer>10.0.0.5</EndPeer>
@ -59,14 +59,14 @@
<BGPSession>
<StartRouter>ARISTA04T0</StartRouter>
<StartPeer>10.0.0.39</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.38</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.6</StartPeer>
<EndRouter>ARISTA04T2</EndRouter>
<EndPeer>10.0.0.7</EndPeer>
@ -77,14 +77,14 @@
<BGPSession>
<StartRouter>ARISTA05T0</StartRouter>
<StartPeer>10.0.0.41</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.40</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.8</StartPeer>
<EndRouter>ARISTA05T2</EndRouter>
<EndPeer>10.0.0.9</EndPeer>
@ -95,14 +95,14 @@
<BGPSession>
<StartRouter>ARISTA06T0</StartRouter>
<StartPeer>10.0.0.43</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.42</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.10</StartPeer>
<EndRouter>ARISTA06T2</EndRouter>
<EndPeer>10.0.0.11</EndPeer>
@ -113,14 +113,14 @@
<BGPSession>
<StartRouter>ARISTA07T0</StartRouter>
<StartPeer>10.0.0.45</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.44</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.12</StartPeer>
<EndRouter>ARISTA07T2</EndRouter>
<EndPeer>10.0.0.13</EndPeer>
@ -131,14 +131,14 @@
<BGPSession>
<StartRouter>ARISTA08T0</StartRouter>
<StartPeer>10.0.0.47</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.46</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.14</StartPeer>
<EndRouter>ARISTA08T2</EndRouter>
<EndPeer>10.0.0.15</EndPeer>
@ -149,14 +149,14 @@
<BGPSession>
<StartRouter>ARISTA09T0</StartRouter>
<StartPeer>10.0.0.49</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.48</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.16</StartPeer>
<EndRouter>ARISTA09T2</EndRouter>
<EndPeer>10.0.0.17</EndPeer>
@ -167,14 +167,14 @@
<BGPSession>
<StartRouter>ARISTA10T0</StartRouter>
<StartPeer>10.0.0.51</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.50</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.18</StartPeer>
<EndRouter>ARISTA10T2</EndRouter>
<EndPeer>10.0.0.19</EndPeer>
@ -185,14 +185,14 @@
<BGPSession>
<StartRouter>ARISTA11T0</StartRouter>
<StartPeer>10.0.0.53</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.52</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.20</StartPeer>
<EndRouter>ARISTA11T2</EndRouter>
<EndPeer>10.0.0.21</EndPeer>
@ -203,14 +203,14 @@
<BGPSession>
<StartRouter>ARISTA12T0</StartRouter>
<StartPeer>10.0.0.55</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.54</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.22</StartPeer>
<EndRouter>ARISTA12T2</EndRouter>
<EndPeer>10.0.0.23</EndPeer>
@ -221,14 +221,14 @@
<BGPSession>
<StartRouter>ARISTA13T0</StartRouter>
<StartPeer>10.0.0.57</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.56</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.24</StartPeer>
<EndRouter>ARISTA13T2</EndRouter>
<EndPeer>10.0.0.25</EndPeer>
@ -239,14 +239,14 @@
<BGPSession>
<StartRouter>ARISTA14T0</StartRouter>
<StartPeer>10.0.0.59</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.58</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.26</StartPeer>
<EndRouter>ARISTA14T2</EndRouter>
<EndPeer>10.0.0.27</EndPeer>
@ -257,14 +257,14 @@
<BGPSession>
<StartRouter>ARISTA15T0</StartRouter>
<StartPeer>10.0.0.61</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.60</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.28</StartPeer>
<EndRouter>ARISTA15T2</EndRouter>
<EndPeer>10.0.0.29</EndPeer>
@ -275,14 +275,14 @@
<BGPSession>
<StartRouter>ARISTA16T0</StartRouter>
<StartPeer>10.0.0.63</StartPeer>
<EndRouter>switch1</EndRouter>
<EndRouter>sonic</EndRouter>
<EndPeer>10.0.0.62</EndPeer>
<Multihop>1</Multihop>
<HoldTime>180</HoldTime>
<KeepAliveTime>60</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>switch1</StartRouter>
<StartRouter>sonic</StartRouter>
<StartPeer>10.0.0.30</StartPeer>
<EndRouter>ARISTA16T2</EndRouter>
<EndPeer>10.0.0.31</EndPeer>
@ -294,7 +294,7 @@
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>65100</a:ASN>
<a:Hostname>switch1</a:Hostname>
<a:Hostname>sonic</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.0.0.33</Address>
@ -639,7 +639,7 @@
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
@ -814,224 +814,224 @@
<DeviceInterfaceLinks>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet1/1</EndPort>
<StartDevice>ARISTA01T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet2/1</EndPort>
<StartDevice>ARISTA02T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet3/1</EndPort>
<StartDevice>ARISTA03T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet4/1</EndPort>
<StartDevice>ARISTA04T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet5/1</EndPort>
<StartDevice>ARISTA05T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet6/1</EndPort>
<StartDevice>ARISTA06T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet7/1</EndPort>
<StartDevice>ARISTA07T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet8/1</EndPort>
<StartDevice>ARISTA08T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet9/1</EndPort>
<StartDevice>ARISTA09T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet10/1</EndPort>
<StartDevice>ARISTA10T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet11/1</EndPort>
<StartDevice>ARISTA11T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet12/1</EndPort>
<StartDevice>ARISTA12T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet13/1</EndPort>
<StartDevice>ARISTA13T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet14/1</EndPort>
<StartDevice>ARISTA14T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet15/1</EndPort>
<StartDevice>ARISTA15T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet16/1</EndPort>
<StartDevice>ARISTA16T2</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet17/1</EndPort>
<StartDevice>ARISTA01T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet18/1</EndPort>
<StartDevice>ARISTA02T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet19/1</EndPort>
<StartDevice>ARISTA03T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet20/1</EndPort>
<StartDevice>ARISTA04T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet21/1</EndPort>
<StartDevice>ARISTA05T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet22/1</EndPort>
<StartDevice>ARISTA06T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet23/1</EndPort>
<StartDevice>ARISTA07T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet24/1</EndPort>
<StartDevice>ARISTA08T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet25/1</EndPort>
<StartDevice>ARISTA09T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet26/1</EndPort>
<StartDevice>ARISTA10T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet27/1</EndPort>
<StartDevice>ARISTA11T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet28/1</EndPort>
<StartDevice>ARISTA12T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet29/1</EndPort>
<StartDevice>ARISTA13T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet30/1</EndPort>
<StartDevice>ARISTA14T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet31/1</EndPort>
<StartDevice>ARISTA15T0</StartDevice>
<StartPort>Ethernet1</StartPort>
</DeviceLinkBase>
<DeviceLinkBase>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>switch1</EndDevice>
<EndDevice>sonic</EndDevice>
<EndPort>Ethernet32/1</EndPort>
<StartDevice>ARISTA16T0</StartDevice>
<StartPort>Ethernet1</StartPort>
@ -1039,7 +1039,7 @@
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7060CX-32S-C32</HwSku>
</Device>
</Devices>
@ -1047,7 +1047,7 @@
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch1</a:Name>
<a:Name>sonic</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
@ -1074,6 +1074,6 @@
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch1</Hostname>
<Hostname>sonic</Hostname>
<HwSku>Arista-7060CX-32S-C32</HwSku>
</DeviceMiniGraph>

View File

@ -40,14 +40,6 @@ chip "max6658-i2c-3-4c"
set temp2_max 75
set temp2_crit 80
chip "pmbus-i2c-3-4e"
label temp1 "Power controller 1 sensor 1"
label temp2 "Power controller 1 sensor 2"
chip "pmbus-i2c-7-4e"
label temp1 "Power controller 2 sensor 1"
label temp2 "Power controller 2 sensor 2"
chip "pmbus-i2c-6-58"
label temp1 "Power supply 1 hotspot sensor"
label temp2 "Power supply 1 inlet temp sensor"

View File

@ -1,67 +1,67 @@
# name lanes alias index
Ethernet0 77,78,79,80 Ethernet1/1 1
Ethernet4 65,66,67,68 Ethernet2/1 2
Ethernet8 85,86,87,88 Ethernet3/1 3
Ethernet12 89,90,91,92 Ethernet4/1 4
Ethernet16 109,110,111,112 Ethernet5/1 5
Ethernet20 97,98,99,100 Ethernet6/1 6
Ethernet24 5,6,7,8 Ethernet7/1 7
Ethernet28 13,14,15,16 Ethernet8/1 8
Ethernet32 25,26,27,28 Ethernet9/1 9
Ethernet36 21,22,23,24 Ethernet10/1 10
Ethernet40 37,38,39,40 Ethernet11/1 11
Ethernet44 45,46,47,48 Ethernet12/1 12
Ethernet48 57,58,59,60 Ethernet13/1 13
Ethernet52 53,54,55,56 Ethernet14/1 14
Ethernet56 117,118,119,120 Ethernet15/1 15
Ethernet60 121,122,123,124 Ethernet16/1 16
Ethernet64 141,142,143,144 Ethernet17/1 17
Ethernet68 133,134,135,136 Ethernet18/1 18
Ethernet72 197,198,199,200 Ethernet19/1 19
Ethernet76 205,206,207,208 Ethernet20/1 20
Ethernet80 217,218,219,220 Ethernet21/1 21
Ethernet84 213,214,215,216 Ethernet22/1 22
Ethernet88 229,230,231,232 Ethernet23/1 23
Ethernet92 237,238,239,240 Ethernet24/1 24
Ethernet96 249,250,251,252 Ethernet25/1 25
Ethernet100 245,246,247,248 Ethernet26/1 26
Ethernet104 149,150,151,152 Ethernet27/1 27
Ethernet108 153,154,155,156 Ethernet28/1 28
Ethernet112 173,174,175,176 Ethernet29/1 29
Ethernet116 161,162,163,164 Ethernet30/1 30
Ethernet120 181,182,183,184 Ethernet31/1 31
Ethernet124 185,186,187,188 Ethernet32/1 32
Ethernet128 69,70,71,72 Ethernet33/1 33
Ethernet132 73,74,75,76 Ethernet34/1 34
Ethernet136 93,94,95,96 Ethernet35/1 35
Ethernet140 81,82,83,84 Ethernet36/1 36
Ethernet144 101,102,103,104 Ethernet37/1 37
Ethernet148 105,106,107,108 Ethernet38/1 38
Ethernet152 9,10,11,12 Ethernet39/1 39
Ethernet156 1,2,3,4 Ethernet40/1 40
Ethernet160 17,18,19,20 Ethernet41/1 41
Ethernet164 29,30,31,32 Ethernet42/1 42
Ethernet168 41,42,43,44 Ethernet43/1 43
Ethernet172 33,34,35,36 Ethernet44/1 44
Ethernet176 49,50,51,52 Ethernet45/1 45
Ethernet180 61,62,63,64 Ethernet46/1 46
Ethernet184 125,126,127,128 Ethernet47/1 47
Ethernet188 113,114,115,116 Ethernet48/1 48
Ethernet192 129,130,131,132 Ethernet49/1 49
Ethernet196 137,138,139,140 Ethernet50/1 50
Ethernet200 201,202,203,204 Ethernet51/1 51
Ethernet204 193,194,195,196 Ethernet52/1 52
Ethernet208 209,210,211,212 Ethernet53/1 53
Ethernet212 221,222,223,224 Ethernet54/1 54
Ethernet216 233,234,235,236 Ethernet55/1 55
Ethernet220 225,226,227,228 Ethernet56/1 56
Ethernet224 241,242,243,244 Ethernet57/1 57
Ethernet228 253,254,255,256 Ethernet58/1 58
Ethernet232 157,158,159,160 Ethernet59/1 59
Ethernet236 145,146,147,148 Ethernet60/1 60
Ethernet240 165,166,167,168 Ethernet61/1 61
Ethernet244 169,170,171,172 Ethernet62/1 62
Ethernet248 189,190,191,192 Ethernet63/1 63
Ethernet252 177,178,179,180 Ethernet64/1 64
Ethernet256 257 Ethernet65 65
Ethernet260 259 Ethernet66 66
# name lanes alias index speed
Ethernet0 77,78,79,80 Ethernet1/1 1 100000
Ethernet4 65,66,67,68 Ethernet2/1 2 100000
Ethernet8 85,86,87,88 Ethernet3/1 3 100000
Ethernet12 89,90,91,92 Ethernet4/1 4 100000
Ethernet16 109,110,111,112 Ethernet5/1 5 100000
Ethernet20 97,98,99,100 Ethernet6/1 6 100000
Ethernet24 5,6,7,8 Ethernet7/1 7 100000
Ethernet28 13,14,15,16 Ethernet8/1 8 100000
Ethernet32 25,26,27,28 Ethernet9/1 9 100000
Ethernet36 21,22,23,24 Ethernet10/1 10 100000
Ethernet40 37,38,39,40 Ethernet11/1 11 100000
Ethernet44 45,46,47,48 Ethernet12/1 12 100000
Ethernet48 57,58,59,60 Ethernet13/1 13 100000
Ethernet52 53,54,55,56 Ethernet14/1 14 100000
Ethernet56 117,118,119,120 Ethernet15/1 15 100000
Ethernet60 121,122,123,124 Ethernet16/1 16 100000
Ethernet64 141,142,143,144 Ethernet17/1 17 100000
Ethernet68 133,134,135,136 Ethernet18/1 18 100000
Ethernet72 197,198,199,200 Ethernet19/1 19 100000
Ethernet76 205,206,207,208 Ethernet20/1 20 100000
Ethernet80 217,218,219,220 Ethernet21/1 21 100000
Ethernet84 213,214,215,216 Ethernet22/1 22 100000
Ethernet88 229,230,231,232 Ethernet23/1 23 100000
Ethernet92 237,238,239,240 Ethernet24/1 24 100000
Ethernet96 249,250,251,252 Ethernet25/1 25 100000
Ethernet100 245,246,247,248 Ethernet26/1 26 100000
Ethernet104 149,150,151,152 Ethernet27/1 27 100000
Ethernet108 153,154,155,156 Ethernet28/1 28 100000
Ethernet112 173,174,175,176 Ethernet29/1 29 100000
Ethernet116 161,162,163,164 Ethernet30/1 30 100000
Ethernet120 181,182,183,184 Ethernet31/1 31 100000
Ethernet124 185,186,187,188 Ethernet32/1 32 100000
Ethernet128 69,70,71,72 Ethernet33/1 33 100000
Ethernet132 73,74,75,76 Ethernet34/1 34 100000
Ethernet136 93,94,95,96 Ethernet35/1 35 100000
Ethernet140 81,82,83,84 Ethernet36/1 36 100000
Ethernet144 101,102,103,104 Ethernet37/1 37 100000
Ethernet148 105,106,107,108 Ethernet38/1 38 100000
Ethernet152 9,10,11,12 Ethernet39/1 39 100000
Ethernet156 1,2,3,4 Ethernet40/1 40 100000
Ethernet160 17,18,19,20 Ethernet41/1 41 100000
Ethernet164 29,30,31,32 Ethernet42/1 42 100000
Ethernet168 41,42,43,44 Ethernet43/1 43 100000
Ethernet172 33,34,35,36 Ethernet44/1 44 100000
Ethernet176 49,50,51,52 Ethernet45/1 45 100000
Ethernet180 61,62,63,64 Ethernet46/1 46 100000
Ethernet184 125,126,127,128 Ethernet47/1 47 100000
Ethernet188 113,114,115,116 Ethernet48/1 48 100000
Ethernet192 129,130,131,132 Ethernet49/1 49 100000
Ethernet196 137,138,139,140 Ethernet50/1 50 100000
Ethernet200 201,202,203,204 Ethernet51/1 51 100000
Ethernet204 193,194,195,196 Ethernet52/1 52 100000
Ethernet208 209,210,211,212 Ethernet53/1 53 100000
Ethernet212 221,222,223,224 Ethernet54/1 54 100000
Ethernet216 233,234,235,236 Ethernet55/1 55 100000
Ethernet220 225,226,227,228 Ethernet56/1 56 100000
Ethernet224 241,242,243,244 Ethernet57/1 57 100000
Ethernet228 253,254,255,256 Ethernet58/1 58 100000
Ethernet232 157,158,159,160 Ethernet59/1 59 100000
Ethernet236 145,146,147,148 Ethernet60/1 60 100000
Ethernet240 165,166,167,168 Ethernet61/1 61 100000
Ethernet244 169,170,171,172 Ethernet62/1 62 100000
Ethernet248 189,190,191,192 Ethernet63/1 63 100000
Ethernet252 177,178,179,180 Ethernet64/1 64 100000
Ethernet256 257 Ethernet65 65 10000
Ethernet260 259 Ethernet66 66 10000

View File

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

View File

@ -0,0 +1,54 @@
{%- set default_cable = '5m' %}
{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,12) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(20,64) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(12,20) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "32799936",
"type": "ingress",
"mode": "dynamic",
"xoff": "8356608"
},
"egress_lossy_pool": {
"size": "26240448",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "42349632",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"static_th":"11075584"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"10587408"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1664",
"dynamic_th":"-1"
}
},
{%- endmacro %}

View File

@ -0,0 +1,8 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
50000 5m 1248 1248 56160 -3 2496
100000 5m 1248 1248 96928 -3 2496
50000 40m 1248 1248 56160 -3 2496
100000 40m 1248 1248 96928 -3 2496
50000 300m 1248 1248 56160 -3 2496
100000 300m 1248 1248 96928 -3 2496

View File

@ -1,123 +1,123 @@
# name lanes alias index
Ethernet0 77,78 Ethernet1/1 1
Ethernet2 79,80 Ethernet1/3 1
Ethernet4 65,66 Ethernet2/1 2
Ethernet6 67,68 Ethernet2/3 2
Ethernet8 85,86 Ethernet3/1 3
Ethernet10 87,88 Ethernet3/3 3
Ethernet12 89,90 Ethernet4/1 4
Ethernet14 91,92 Ethernet4/3 4
Ethernet16 109,110 Ethernet5/1 5
Ethernet18 111,112 Ethernet5/3 5
Ethernet20 97,98 Ethernet6/1 6
Ethernet22 99,100 Ethernet6/3 6
Ethernet24 5,6 Ethernet7/1 7
Ethernet26 7,8 Ethernet7/3 7
Ethernet28 13,14 Ethernet8/1 8
Ethernet30 15,16 Ethernet8/3 8
Ethernet32 25,26 Ethernet9/1 9
Ethernet34 27,28 Ethernet9/3 9
Ethernet36 21,22 Ethernet10/1 10
Ethernet38 23,24 Ethernet10/3 10
Ethernet40 37,38 Ethernet11/1 11
Ethernet42 39,40 Ethernet11/3 11
Ethernet44 45,46 Ethernet12/1 12
Ethernet46 47,48 Ethernet12/3 12
Ethernet48 57,58 Ethernet13/1 13
Ethernet50 59,60 Ethernet13/3 13
Ethernet52 53,54 Ethernet14/1 14
Ethernet54 55,56 Ethernet14/3 14
Ethernet56 117,118 Ethernet15/1 15
Ethernet58 119,120 Ethernet15/3 15
Ethernet60 121,122 Ethernet16/1 16
Ethernet62 123,124 Ethernet16/3 16
Ethernet64 141,142 Ethernet17/1 17
Ethernet66 143,144 Ethernet17/3 17
Ethernet68 133,134 Ethernet18/1 18
Ethernet70 135,136 Ethernet18/3 18
Ethernet72 197,198 Ethernet19/1 19
Ethernet74 199,200 Ethernet19/3 19
Ethernet76 205,206 Ethernet20/1 20
Ethernet78 207,208 Ethernet20/3 20
Ethernet80 217,218 Ethernet21/1 21
Ethernet82 219,220 Ethernet21/3 21
Ethernet84 213,214 Ethernet22/1 22
Ethernet86 215,216 Ethernet22/3 22
Ethernet88 229,230 Ethernet23/1 23
Ethernet90 231,232 Ethernet23/3 23
Ethernet92 237,238 Ethernet24/1 24
Ethernet94 239,240 Ethernet24/3 24
Ethernet96 249,250 Ethernet25/1 25
Ethernet98 251,252 Ethernet25/3 25
Ethernet100 245,246 Ethernet26/1 26
Ethernet102 247,248 Ethernet26/3 26
Ethernet104 149,150 Ethernet27/1 27
Ethernet106 151,152 Ethernet27/3 27
Ethernet108 153,154 Ethernet28/1 28
Ethernet110 155,156 Ethernet28/3 28
Ethernet112 173,174 Ethernet29/1 29
Ethernet114 175,176 Ethernet29/3 29
Ethernet116 161,162 Ethernet30/1 30
Ethernet118 163,164 Ethernet30/3 30
Ethernet120 181,182 Ethernet31/1 31
Ethernet122 183,184 Ethernet31/3 31
Ethernet124 185,186 Ethernet32/1 32
Ethernet126 187,188 Ethernet32/3 32
Ethernet128 69,70 Ethernet33/1 33
Ethernet130 71,72 Ethernet33/3 33
Ethernet132 73,74 Ethernet34/1 34
Ethernet134 75,76 Ethernet34/3 34
Ethernet136 93,94 Ethernet35/1 35
Ethernet138 95,96 Ethernet35/3 35
Ethernet140 81,82 Ethernet36/1 36
Ethernet142 83,84 Ethernet36/3 36
Ethernet144 101,102 Ethernet37/1 37
Ethernet146 103,104 Ethernet37/3 37
Ethernet148 105,106 Ethernet38/1 38
Ethernet150 107,108 Ethernet38/3 38
Ethernet152 9,10 Ethernet39/1 39
Ethernet154 11,12 Ethernet39/3 39
Ethernet156 1,2 Ethernet40/1 40
Ethernet158 3,4 Ethernet40/3 40
Ethernet160 17,18 Ethernet41/1 41
Ethernet162 19,20 Ethernet41/3 41
Ethernet164 29,30 Ethernet42/1 42
Ethernet166 31,32 Ethernet42/3 42
Ethernet168 41,42 Ethernet43/1 43
Ethernet170 43,44 Ethernet43/3 43
Ethernet172 33,34 Ethernet44/1 44
Ethernet174 35,36 Ethernet44/3 44
Ethernet176 49,50,51,52 Ethernet45/1 45
Ethernet180 61,62,63,64 Ethernet46/1 46
Ethernet184 125,126,127,128 Ethernet47/1 47
Ethernet188 113,114,115,116 Ethernet48/1 48
Ethernet192 129,130,131,132 Ethernet49/1 49
Ethernet196 137,138,139,140 Ethernet50/1 50
Ethernet200 201,202,203,204 Ethernet51/1 51
Ethernet204 193,194,195,196 Ethernet52/1 52
Ethernet208 209,210 Ethernet53/1 53
Ethernet210 211,212 Ethernet53/3 53
Ethernet212 221,222 Ethernet54/1 54
Ethernet214 223,224 Ethernet54/3 54
Ethernet216 233,234 Ethernet55/1 55
Ethernet218 235,236 Ethernet55/3 55
Ethernet220 225,226 Ethernet56/1 56
Ethernet222 227,228 Ethernet56/3 56
Ethernet224 241,242 Ethernet57/1 57
Ethernet226 243,244 Ethernet57/3 57
Ethernet228 253,254 Ethernet58/1 58
Ethernet230 255,256 Ethernet58/3 58
Ethernet232 157,158 Ethernet59/1 59
Ethernet234 159,160 Ethernet59/3 59
Ethernet236 145,146 Ethernet60/1 60
Ethernet238 147,148 Ethernet60/3 60
Ethernet240 165,166 Ethernet61/1 61
Ethernet242 167,168 Ethernet61/3 61
Ethernet244 169,170 Ethernet62/1 62
Ethernet246 171,172 Ethernet62/3 62
Ethernet248 189,190 Ethernet63/1 63
Ethernet250 191,192 Ethernet63/3 63
Ethernet252 177,178 Ethernet64/1 64
Ethernet254 179,180 Ethernet64/3 64
Ethernet256 257 Ethernet65 65
Ethernet260 259 Ethernet66 66
# name lanes alias index speed
Ethernet0 77,78 Ethernet1/1 1 50000
Ethernet2 79,80 Ethernet1/3 1 50000
Ethernet4 65,66 Ethernet2/1 2 50000
Ethernet6 67,68 Ethernet2/3 2 50000
Ethernet8 85,86 Ethernet3/1 3 50000
Ethernet10 87,88 Ethernet3/3 3 50000
Ethernet12 89,90 Ethernet4/1 4 50000
Ethernet14 91,92 Ethernet4/3 4 50000
Ethernet16 109,110 Ethernet5/1 5 50000
Ethernet18 111,112 Ethernet5/3 5 50000
Ethernet20 97,98 Ethernet6/1 6 50000
Ethernet22 99,100 Ethernet6/3 6 50000
Ethernet24 5,6 Ethernet7/1 7 50000
Ethernet26 7,8 Ethernet7/3 7 50000
Ethernet28 13,14 Ethernet8/1 8 50000
Ethernet30 15,16 Ethernet8/3 8 50000
Ethernet32 25,26 Ethernet9/1 9 50000
Ethernet34 27,28 Ethernet9/3 9 50000
Ethernet36 21,22 Ethernet10/1 10 50000
Ethernet38 23,24 Ethernet10/3 10 50000
Ethernet40 37,38 Ethernet11/1 11 50000
Ethernet42 39,40 Ethernet11/3 11 50000
Ethernet44 45,46 Ethernet12/1 12 50000
Ethernet46 47,48 Ethernet12/3 12 50000
Ethernet48 57,58,59,60 Ethernet13/1 13 100000
Ethernet52 53,54,55,56 Ethernet14/1 14 100000
Ethernet56 117,118,119,120 Ethernet15/1 15 100000
Ethernet60 121,122,123,124 Ethernet16/1 16 100000
Ethernet64 141,142,143,144 Ethernet17/1 17 100000
Ethernet68 133,134,135,136 Ethernet18/1 18 100000
Ethernet72 197,198,199,200 Ethernet19/1 19 100000
Ethernet76 205,206,207,208 Ethernet20/1 20 100000
Ethernet80 217,218 Ethernet21/1 21 50000
Ethernet82 219,220 Ethernet21/3 21 50000
Ethernet84 213,214 Ethernet22/1 22 50000
Ethernet86 215,216 Ethernet22/3 22 50000
Ethernet88 229,230 Ethernet23/1 23 50000
Ethernet90 231,232 Ethernet23/3 23 50000
Ethernet92 237,238 Ethernet24/1 24 50000
Ethernet94 239,240 Ethernet24/3 24 50000
Ethernet96 249,250 Ethernet25/1 25 50000
Ethernet98 251,252 Ethernet25/3 25 50000
Ethernet100 245,246 Ethernet26/1 26 50000
Ethernet102 247,248 Ethernet26/3 26 50000
Ethernet104 149,150 Ethernet27/1 27 50000
Ethernet106 151,152 Ethernet27/3 27 50000
Ethernet108 153,154 Ethernet28/1 28 50000
Ethernet110 155,156 Ethernet28/3 28 50000
Ethernet112 173,174 Ethernet29/1 29 50000
Ethernet114 175,176 Ethernet29/3 29 50000
Ethernet116 161,162 Ethernet30/1 30 50000
Ethernet118 163,164 Ethernet30/3 30 50000
Ethernet120 181,182 Ethernet31/1 31 50000
Ethernet122 183,184 Ethernet31/3 31 50000
Ethernet124 185,186 Ethernet32/1 32 50000
Ethernet126 187,188 Ethernet32/3 32 50000
Ethernet128 69,70 Ethernet33/1 33 50000
Ethernet130 71,72 Ethernet33/3 33 50000
Ethernet132 73,74 Ethernet34/1 34 50000
Ethernet134 75,76 Ethernet34/3 34 50000
Ethernet136 93,94 Ethernet35/1 35 50000
Ethernet138 95,96 Ethernet35/3 35 50000
Ethernet140 81,82 Ethernet36/1 36 50000
Ethernet142 83,84 Ethernet36/3 36 50000
Ethernet144 101,102 Ethernet37/1 37 50000
Ethernet146 103,104 Ethernet37/3 37 50000
Ethernet148 105,106 Ethernet38/1 38 50000
Ethernet150 107,108 Ethernet38/3 38 50000
Ethernet152 9,10 Ethernet39/1 39 50000
Ethernet154 11,12 Ethernet39/3 39 50000
Ethernet156 1,2 Ethernet40/1 40 50000
Ethernet158 3,4 Ethernet40/3 40 50000
Ethernet160 17,18 Ethernet41/1 41 50000
Ethernet162 19,20 Ethernet41/3 41 50000
Ethernet164 29,30 Ethernet42/1 42 50000
Ethernet166 31,32 Ethernet42/3 42 50000
Ethernet168 41,42 Ethernet43/1 43 50000
Ethernet170 43,44 Ethernet43/3 43 50000
Ethernet172 33,34 Ethernet44/1 44 50000
Ethernet174 35,36 Ethernet44/3 44 50000
Ethernet176 49,50 Ethernet45/1 45 50000
Ethernet178 51,52 Ethernet45/3 45 50000
Ethernet180 61,62 Ethernet46/1 46 50000
Ethernet182 63,64 Ethernet46/3 46 50000
Ethernet184 125,126 Ethernet47/1 47 50000
Ethernet186 127,128 Ethernet47/3 47 50000
Ethernet188 113,114 Ethernet48/1 48 50000
Ethernet190 115,116 Ethernet48/3 48 50000
Ethernet192 129,130 Ethernet49/1 49 50000
Ethernet194 131,132 Ethernet49/3 49 50000
Ethernet196 137,138 Ethernet50/1 50 50000
Ethernet198 139,140 Ethernet50/3 50 50000
Ethernet200 201,202 Ethernet51/1 51 50000
Ethernet202 203,204 Ethernet51/3 51 50000
Ethernet204 193,194 Ethernet52/1 52 50000
Ethernet206 195,196 Ethernet52/3 52 50000
Ethernet208 209,210 Ethernet53/1 53 50000
Ethernet210 211,212 Ethernet53/3 53 50000
Ethernet212 221,222 Ethernet54/1 54 50000
Ethernet214 223,224 Ethernet54/3 54 50000
Ethernet216 233,234 Ethernet55/1 55 50000
Ethernet218 235,236 Ethernet55/3 55 50000
Ethernet220 225,226 Ethernet56/1 56 50000
Ethernet222 227,228 Ethernet56/3 56 50000
Ethernet224 241,242 Ethernet57/1 57 50000
Ethernet226 243,244 Ethernet57/3 57 50000
Ethernet228 253,254 Ethernet58/1 58 50000
Ethernet230 255,256 Ethernet58/3 58 50000
Ethernet232 157,158 Ethernet59/1 59 50000
Ethernet234 159,160 Ethernet59/3 59 50000
Ethernet236 145,146 Ethernet60/1 60 50000
Ethernet238 147,148 Ethernet60/3 60 50000
Ethernet240 165,166 Ethernet61/1 61 50000
Ethernet242 167,168 Ethernet61/3 61 50000
Ethernet244 169,170 Ethernet62/1 62 50000
Ethernet246 171,172 Ethernet62/3 62 50000
Ethernet248 189,190 Ethernet63/1 63 50000
Ethernet250 191,192 Ethernet63/3 63 50000
Ethernet252 177,178 Ethernet64/1 64 50000
Ethernet254 179,180 Ethernet64/3 64 50000
Ethernet256 257 Ethernet65 65 10000
Ethernet260 259 Ethernet66 66 10000

View File

@ -0,0 +1,167 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet26,Ethernet28,Ethernet30,Ethernet32,Ethernet34,Ethernet36,Ethernet38,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet90,Ethernet92,Ethernet94,Ethernet96,Ethernet98,Ethernet100,Ethernet102,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126,Ethernet128,Ethernet130,Ethernet132,Ethernet134,Ethernet136,Ethernet138,Ethernet140,Ethernet142,Ethernet144,Ethernet146,Ethernet148,Ethernet150,Ethernet152,Ethernet154,Ethernet156,Ethernet158,Ethernet160,Ethernet162,Ethernet164,Ethernet166,Ethernet168,Ethernet170,Ethernet172,Ethernet174,Ethernet176,Ethernet178,Ethernet180,Ethernet182,Ethernet184,Ethernet186,Ethernet188,Ethernet190,Ethernet192,Ethernet194,Ethernet196,Ethernet198,Ethernet200,Ethernet202,Ethernet204,Ethernet206,Ethernet208,Ethernet210,Ethernet212,Ethernet214,Ethernet216,Ethernet218,Ethernet220,Ethernet222,Ethernet224,Ethernet226,Ethernet228,Ethernet230,Ethernet232,Ethernet234,Ethernet236,Ethernet238,Ethernet240,Ethernet242,Ethernet244,Ethernet246,Ethernet248,Ethernet250,Ethernet252,Ethernet254": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
}
},
"QUEUE": {
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet26,Ethernet28,Ethernet30,Ethernet32,Ethernet34,Ethernet36,Ethernet38,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet90,Ethernet92,Ethernet94,Ethernet96,Ethernet98,Ethernet100,Ethernet102,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126,Ethernet128,Ethernet130,Ethernet132,Ethernet134,Ethernet136,Ethernet138,Ethernet140,Ethernet142,Ethernet144,Ethernet146,Ethernet148,Ethernet150,Ethernet152,Ethernet154,Ethernet156,Ethernet158,Ethernet160,Ethernet162,Ethernet164,Ethernet166,Ethernet168,Ethernet170,Ethernet172,Ethernet174,Ethernet176,Ethernet178,Ethernet180,Ethernet182,Ethernet184,Ethernet186,Ethernet188,Ethernet190,Ethernet192,Ethernet194,Ethernet196,Ethernet198,Ethernet200,Ethernet202,Ethernet204,Ethernet206,Ethernet208,Ethernet210,Ethernet212,Ethernet214,Ethernet216,Ethernet218,Ethernet220,Ethernet222,Ethernet224,Ethernet226,Ethernet228,Ethernet230,Ethernet232,Ethernet234,Ethernet236,Ethernet238,Ethernet240,Ethernet242,Ethernet244,Ethernet246,Ethernet248,Ethernet250,Ethernet252,Ethernet254|0-1" : {
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet26,Ethernet28,Ethernet30,Ethernet32,Ethernet34,Ethernet36,Ethernet38,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet90,Ethernet92,Ethernet94,Ethernet96,Ethernet98,Ethernet100,Ethernet102,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126,Ethernet128,Ethernet130,Ethernet132,Ethernet134,Ethernet136,Ethernet138,Ethernet140,Ethernet142,Ethernet144,Ethernet146,Ethernet148,Ethernet150,Ethernet152,Ethernet154,Ethernet156,Ethernet158,Ethernet160,Ethernet162,Ethernet164,Ethernet166,Ethernet168,Ethernet170,Ethernet172,Ethernet174,Ethernet176,Ethernet178,Ethernet180,Ethernet182,Ethernet184,Ethernet186,Ethernet188,Ethernet190,Ethernet192,Ethernet194,Ethernet196,Ethernet198,Ethernet200,Ethernet202,Ethernet204,Ethernet206,Ethernet208,Ethernet210,Ethernet212,Ethernet214,Ethernet216,Ethernet218,Ethernet220,Ethernet222,Ethernet224,Ethernet226,Ethernet228,Ethernet230,Ethernet232,Ethernet234,Ethernet236,Ethernet238,Ethernet240,Ethernet242,Ethernet244,Ethernet246,Ethernet248,Ethernet250,Ethernet252,Ethernet254|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet26,Ethernet28,Ethernet30,Ethernet32,Ethernet34,Ethernet36,Ethernet38,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet90,Ethernet92,Ethernet94,Ethernet96,Ethernet98,Ethernet100,Ethernet102,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126,Ethernet128,Ethernet130,Ethernet132,Ethernet134,Ethernet136,Ethernet138,Ethernet140,Ethernet142,Ethernet144,Ethernet146,Ethernet148,Ethernet150,Ethernet152,Ethernet154,Ethernet156,Ethernet158,Ethernet160,Ethernet162,Ethernet164,Ethernet166,Ethernet168,Ethernet170,Ethernet172,Ethernet174,Ethernet176,Ethernet178,Ethernet180,Ethernet182,Ethernet184,Ethernet186,Ethernet188,Ethernet190,Ethernet192,Ethernet194,Ethernet196,Ethernet198,Ethernet200,Ethernet202,Ethernet204,Ethernet206,Ethernet208,Ethernet210,Ethernet212,Ethernet214,Ethernet216,Ethernet218,Ethernet220,Ethernet222,Ethernet224,Ethernet226,Ethernet228,Ethernet230,Ethernet232,Ethernet234,Ethernet236,Ethernet238,Ethernet240,Ethernet242,Ethernet244,Ethernet246,Ethernet248,Ethernet250,Ethernet252,Ethernet254|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet26,Ethernet28,Ethernet30,Ethernet32,Ethernet34,Ethernet36,Ethernet38,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet90,Ethernet92,Ethernet94,Ethernet96,Ethernet98,Ethernet100,Ethernet102,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126,Ethernet128,Ethernet130,Ethernet132,Ethernet134,Ethernet136,Ethernet138,Ethernet140,Ethernet142,Ethernet144,Ethernet146,Ethernet148,Ethernet150,Ethernet152,Ethernet154,Ethernet156,Ethernet158,Ethernet160,Ethernet162,Ethernet164,Ethernet166,Ethernet168,Ethernet170,Ethernet172,Ethernet174,Ethernet176,Ethernet178,Ethernet180,Ethernet182,Ethernet184,Ethernet186,Ethernet188,Ethernet190,Ethernet192,Ethernet194,Ethernet196,Ethernet198,Ethernet200,Ethernet202,Ethernet204,Ethernet206,Ethernet208,Ethernet210,Ethernet212,Ethernet214,Ethernet216,Ethernet218,Ethernet220,Ethernet222,Ethernet224,Ethernet226,Ethernet228,Ethernet230,Ethernet232,Ethernet234,Ethernet236,Ethernet238,Ethernet240,Ethernet242,Ethernet244,Ethernet246,Ethernet248,Ethernet250,Ethernet252,Ethernet254|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}

View File

@ -1 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th2-a7260cx3-64-108x50G+10x100G.config.bcm
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-112x50G+8x100G.config.bcm

View File

@ -0,0 +1,939 @@
PHY_AN_ALLOW_PLL_CHANGE=1
arl_clean_timeout_usec=15000000
asf_mem_profile=2
bcm_num_cos=8
bcm_stat_flags=1
bcm_stat_jumbo=9236
cdma_timeout_usec=15000000
core_clock_frequency=1700
dma_desc_timeout_usec=15000000
dpp_clock_ratio=2:3
higig2_hdr_mode=1
ipv6_lpm_128b_enable=1
l3_alpm_enable=2
lpm_scaling_enable=0
l2xmsg_mode=1
max_vp_lags=0
mem_scan_enable=1
miim_intr_enable=0
module_64ports=1
os=unix
oversubscribe_mode=1
pbmp_xport_xe=0xfffffffd3fffffff4fffffffc7ffffffe
#pbmp_xport_xe=0x47fffffff1fffffffcfffffffe7ffffffe
phy_an_allow_pll_change_hg=0
phy_an_c73=1
phy_chain_rx_lane_map_physical{1.0}=0x3210
phy_chain_rx_lane_map_physical{101.0}=0x0123
phy_chain_rx_lane_map_physical{105.0}=0x0123
phy_chain_rx_lane_map_physical{109.0}=0x0123
phy_chain_rx_lane_map_physical{113.0}=0x2301
phy_chain_rx_lane_map_physical{117.0}=0x3210
phy_chain_rx_lane_map_physical{121.0}=0x3210
phy_chain_rx_lane_map_physical{125.0}=0x1203
phy_chain_rx_lane_map_physical{129.0}=0x3210
phy_chain_rx_lane_map_physical{13.0}=0x0321
phy_chain_rx_lane_map_physical{133.0}=0x1032
phy_chain_rx_lane_map_physical{137.0}=0x3210
phy_chain_rx_lane_map_physical{141.0}=0x0123
phy_chain_rx_lane_map_physical{145.0}=0x3210
phy_chain_rx_lane_map_physical{149.0}=0x2310
phy_chain_rx_lane_map_physical{153.0}=0x0132
phy_chain_rx_lane_map_physical{157.0}=0x1302
phy_chain_rx_lane_map_physical{161.0}=0x3021
phy_chain_rx_lane_map_physical{165.0}=0x2031
phy_chain_rx_lane_map_physical{169.0}=0x2031
phy_chain_rx_lane_map_physical{17.0}=0x3210
phy_chain_rx_lane_map_physical{173.0}=0x1302
phy_chain_rx_lane_map_physical{177.0}=0x2031
phy_chain_rx_lane_map_physical{181.0}=0x0213
phy_chain_rx_lane_map_physical{185.0}=0x0213
phy_chain_rx_lane_map_physical{189.0}=0x1302
phy_chain_rx_lane_map_physical{193.0}=0x3120
phy_chain_rx_lane_map_physical{197.0}=0x0231
phy_chain_rx_lane_map_physical{201.0}=0x2031
phy_chain_rx_lane_map_physical{205.0}=0x0213
phy_chain_rx_lane_map_physical{209.0}=0x2013
phy_chain_rx_lane_map_physical{21.0}=0x3021
phy_chain_rx_lane_map_physical{213.0}=0x3021
phy_chain_rx_lane_map_physical{217.0}=0x0231
phy_chain_rx_lane_map_physical{221.0}=0x2031
phy_chain_rx_lane_map_physical{225.0}=0x1203
phy_chain_rx_lane_map_physical{229.0}=0x1230
phy_chain_rx_lane_map_physical{233.0}=0x3021
phy_chain_rx_lane_map_physical{237.0}=0x1032
phy_chain_rx_lane_map_physical{241.0}=0x2301
phy_chain_rx_lane_map_physical{245.0}=0x0321
phy_chain_rx_lane_map_physical{249.0}=0x2301
phy_chain_rx_lane_map_physical{25.0}=0x2301
phy_chain_rx_lane_map_physical{253.0}=0x2301
phy_chain_rx_lane_map_physical{257.0}=0x3210
phy_chain_rx_lane_map_physical{29.0}=0x3021
phy_chain_rx_lane_map_physical{33.0}=0x1302
phy_chain_rx_lane_map_physical{37.0}=0x2031
phy_chain_rx_lane_map_physical{41.0}=0x3021
phy_chain_rx_lane_map_physical{45.0}=0x1023
phy_chain_rx_lane_map_physical{49.0}=0x0213
phy_chain_rx_lane_map_physical{5.0}=0x3201
phy_chain_rx_lane_map_physical{53.0}=0x3201
phy_chain_rx_lane_map_physical{57.0}=0x2013
phy_chain_rx_lane_map_physical{61.0}=0x0213
phy_chain_rx_lane_map_physical{65.0}=0x1203
phy_chain_rx_lane_map_physical{69.0}=0x0213
phy_chain_rx_lane_map_physical{73.0}=0x0213
phy_chain_rx_lane_map_physical{77.0}=0x3120
phy_chain_rx_lane_map_physical{81.0}=0x0213
phy_chain_rx_lane_map_physical{85.0}=0x2031
phy_chain_rx_lane_map_physical{89.0}=0x2031
phy_chain_rx_lane_map_physical{9.0}=0x0321
phy_chain_rx_lane_map_physical{93.0}=0x3120
phy_chain_rx_lane_map_physical{97.0}=0x1203
phy_chain_rx_polarity_flip_physical{1.0}=0x1
phy_chain_rx_polarity_flip_physical{10.0}=0x0
phy_chain_rx_polarity_flip_physical{100.0}=0x1
phy_chain_rx_polarity_flip_physical{101.0}=0x1
phy_chain_rx_polarity_flip_physical{102.0}=0x0
phy_chain_rx_polarity_flip_physical{103.0}=0x1
phy_chain_rx_polarity_flip_physical{104.0}=0x0
phy_chain_rx_polarity_flip_physical{105.0}=0x1
phy_chain_rx_polarity_flip_physical{106.0}=0x0
phy_chain_rx_polarity_flip_physical{107.0}=0x1
phy_chain_rx_polarity_flip_physical{108.0}=0x0
phy_chain_rx_polarity_flip_physical{109.0}=0x0
phy_chain_rx_polarity_flip_physical{11.0}=0x1
phy_chain_rx_polarity_flip_physical{110.0}=0x1
phy_chain_rx_polarity_flip_physical{111.0}=0x0
phy_chain_rx_polarity_flip_physical{112.0}=0x1
phy_chain_rx_polarity_flip_physical{113.0}=0x1
phy_chain_rx_polarity_flip_physical{114.0}=0x0
phy_chain_rx_polarity_flip_physical{115.0}=0x1
phy_chain_rx_polarity_flip_physical{116.0}=0x0
phy_chain_rx_polarity_flip_physical{117.0}=0x0
phy_chain_rx_polarity_flip_physical{118.0}=0x0
phy_chain_rx_polarity_flip_physical{119.0}=0x1
phy_chain_rx_polarity_flip_physical{12.0}=0x1
phy_chain_rx_polarity_flip_physical{120.0}=0x0
phy_chain_rx_polarity_flip_physical{121.0}=0x1
phy_chain_rx_polarity_flip_physical{122.0}=0x0
phy_chain_rx_polarity_flip_physical{123.0}=0x1
phy_chain_rx_polarity_flip_physical{124.0}=0x0
phy_chain_rx_polarity_flip_physical{125.0}=0x0
phy_chain_rx_polarity_flip_physical{126.0}=0x1
phy_chain_rx_polarity_flip_physical{127.0}=0x1
phy_chain_rx_polarity_flip_physical{128.0}=0x1
phy_chain_rx_polarity_flip_physical{129.0}=0x0
phy_chain_rx_polarity_flip_physical{13.0}=0x1
phy_chain_rx_polarity_flip_physical{130.0}=0x1
phy_chain_rx_polarity_flip_physical{131.0}=0x1
phy_chain_rx_polarity_flip_physical{132.0}=0x0
phy_chain_rx_polarity_flip_physical{133.0}=0x1
phy_chain_rx_polarity_flip_physical{134.0}=0x1
phy_chain_rx_polarity_flip_physical{135.0}=0x1
phy_chain_rx_polarity_flip_physical{136.0}=0x0
phy_chain_rx_polarity_flip_physical{137.0}=0x0
phy_chain_rx_polarity_flip_physical{138.0}=0x0
phy_chain_rx_polarity_flip_physical{139.0}=0x1
phy_chain_rx_polarity_flip_physical{14.0}=0x0
phy_chain_rx_polarity_flip_physical{140.0}=0x0
phy_chain_rx_polarity_flip_physical{141.0}=0x1
phy_chain_rx_polarity_flip_physical{142.0}=0x0
phy_chain_rx_polarity_flip_physical{143.0}=0x1
phy_chain_rx_polarity_flip_physical{144.0}=0x0
phy_chain_rx_polarity_flip_physical{145.0}=0x1
phy_chain_rx_polarity_flip_physical{146.0}=0x0
phy_chain_rx_polarity_flip_physical{147.0}=0x1
phy_chain_rx_polarity_flip_physical{148.0}=0x0
phy_chain_rx_polarity_flip_physical{149.0}=0x0
phy_chain_rx_polarity_flip_physical{15.0}=0x1
phy_chain_rx_polarity_flip_physical{150.0}=0x1
phy_chain_rx_polarity_flip_physical{151.0}=0x1
phy_chain_rx_polarity_flip_physical{152.0}=0x0
phy_chain_rx_polarity_flip_physical{153.0}=0x0
phy_chain_rx_polarity_flip_physical{154.0}=0x1
phy_chain_rx_polarity_flip_physical{155.0}=0x1
phy_chain_rx_polarity_flip_physical{156.0}=0x0
phy_chain_rx_polarity_flip_physical{157.0}=0x0
phy_chain_rx_polarity_flip_physical{158.0}=0x0
phy_chain_rx_polarity_flip_physical{159.0}=0x1
phy_chain_rx_polarity_flip_physical{16.0}=0x0
phy_chain_rx_polarity_flip_physical{160.0}=0x0
phy_chain_rx_polarity_flip_physical{161.0}=0x1
phy_chain_rx_polarity_flip_physical{162.0}=0x1
phy_chain_rx_polarity_flip_physical{163.0}=0x0
phy_chain_rx_polarity_flip_physical{164.0}=0x1
phy_chain_rx_polarity_flip_physical{165.0}=0x0
phy_chain_rx_polarity_flip_physical{166.0}=0x0
phy_chain_rx_polarity_flip_physical{167.0}=0x1
phy_chain_rx_polarity_flip_physical{168.0}=0x1
phy_chain_rx_polarity_flip_physical{169.0}=0x1
phy_chain_rx_polarity_flip_physical{17.0}=0x1
phy_chain_rx_polarity_flip_physical{170.0}=0x1
phy_chain_rx_polarity_flip_physical{171.0}=0x0
phy_chain_rx_polarity_flip_physical{172.0}=0x0
phy_chain_rx_polarity_flip_physical{173.0}=0x0
phy_chain_rx_polarity_flip_physical{174.0}=0x0
phy_chain_rx_polarity_flip_physical{175.0}=0x1
phy_chain_rx_polarity_flip_physical{176.0}=0x1
phy_chain_rx_polarity_flip_physical{177.0}=0x1
phy_chain_rx_polarity_flip_physical{178.0}=0x1
phy_chain_rx_polarity_flip_physical{179.0}=0x0
phy_chain_rx_polarity_flip_physical{18.0}=0x0
phy_chain_rx_polarity_flip_physical{180.0}=0x0
phy_chain_rx_polarity_flip_physical{181.0}=0x1
phy_chain_rx_polarity_flip_physical{182.0}=0x1
phy_chain_rx_polarity_flip_physical{183.0}=0x0
phy_chain_rx_polarity_flip_physical{184.0}=0x0
phy_chain_rx_polarity_flip_physical{185.0}=0x0
phy_chain_rx_polarity_flip_physical{186.0}=0x0
phy_chain_rx_polarity_flip_physical{187.0}=0x1
phy_chain_rx_polarity_flip_physical{188.0}=0x1
phy_chain_rx_polarity_flip_physical{189.0}=0x0
phy_chain_rx_polarity_flip_physical{19.0}=0x1
phy_chain_rx_polarity_flip_physical{190.0}=0x0
phy_chain_rx_polarity_flip_physical{191.0}=0x1
phy_chain_rx_polarity_flip_physical{192.0}=0x0
phy_chain_rx_polarity_flip_physical{193.0}=0x0
phy_chain_rx_polarity_flip_physical{194.0}=0x0
phy_chain_rx_polarity_flip_physical{195.0}=0x1
phy_chain_rx_polarity_flip_physical{196.0}=0x1
phy_chain_rx_polarity_flip_physical{197.0}=0x1
phy_chain_rx_polarity_flip_physical{198.0}=0x1
phy_chain_rx_polarity_flip_physical{199.0}=0x0
phy_chain_rx_polarity_flip_physical{2.0}=0x0
phy_chain_rx_polarity_flip_physical{20.0}=0x0
phy_chain_rx_polarity_flip_physical{200.0}=0x0
phy_chain_rx_polarity_flip_physical{201.0}=0x0
phy_chain_rx_polarity_flip_physical{202.0}=0x0
phy_chain_rx_polarity_flip_physical{203.0}=0x1
phy_chain_rx_polarity_flip_physical{204.0}=0x0
phy_chain_rx_polarity_flip_physical{205.0}=0x1
phy_chain_rx_polarity_flip_physical{206.0}=0x1
phy_chain_rx_polarity_flip_physical{207.0}=0x0
phy_chain_rx_polarity_flip_physical{208.0}=0x0
phy_chain_rx_polarity_flip_physical{209.0}=0x1
phy_chain_rx_polarity_flip_physical{21.0}=0x0
phy_chain_rx_polarity_flip_physical{210.0}=0x1
phy_chain_rx_polarity_flip_physical{211.0}=0x0
phy_chain_rx_polarity_flip_physical{212.0}=0x0
phy_chain_rx_polarity_flip_physical{213.0}=0x0
phy_chain_rx_polarity_flip_physical{214.0}=0x0
phy_chain_rx_polarity_flip_physical{215.0}=0x1
phy_chain_rx_polarity_flip_physical{216.0}=0x0
phy_chain_rx_polarity_flip_physical{217.0}=0x0
phy_chain_rx_polarity_flip_physical{218.0}=0x0
phy_chain_rx_polarity_flip_physical{219.0}=0x1
phy_chain_rx_polarity_flip_physical{22.0}=0x0
phy_chain_rx_polarity_flip_physical{220.0}=0x1
phy_chain_rx_polarity_flip_physical{221.0}=0x0
phy_chain_rx_polarity_flip_physical{222.0}=0x0
phy_chain_rx_polarity_flip_physical{223.0}=0x1
phy_chain_rx_polarity_flip_physical{224.0}=0x1
phy_chain_rx_polarity_flip_physical{225.0}=0x1
phy_chain_rx_polarity_flip_physical{226.0}=0x0
phy_chain_rx_polarity_flip_physical{227.0}=0x0
phy_chain_rx_polarity_flip_physical{228.0}=0x1
phy_chain_rx_polarity_flip_physical{229.0}=0x0
phy_chain_rx_polarity_flip_physical{23.0}=0x1
phy_chain_rx_polarity_flip_physical{230.0}=0x0
phy_chain_rx_polarity_flip_physical{231.0}=0x1
phy_chain_rx_polarity_flip_physical{232.0}=0x1
phy_chain_rx_polarity_flip_physical{233.0}=0x1
phy_chain_rx_polarity_flip_physical{234.0}=0x0
phy_chain_rx_polarity_flip_physical{235.0}=0x0
phy_chain_rx_polarity_flip_physical{236.0}=0x0
phy_chain_rx_polarity_flip_physical{237.0}=0x1
phy_chain_rx_polarity_flip_physical{238.0}=0x0
phy_chain_rx_polarity_flip_physical{239.0}=0x1
phy_chain_rx_polarity_flip_physical{24.0}=0x0
phy_chain_rx_polarity_flip_physical{240.0}=0x0
phy_chain_rx_polarity_flip_physical{241.0}=0x1
phy_chain_rx_polarity_flip_physical{242.0}=0x0
phy_chain_rx_polarity_flip_physical{243.0}=0x1
phy_chain_rx_polarity_flip_physical{244.0}=0x0
phy_chain_rx_polarity_flip_physical{245.0}=0x1
phy_chain_rx_polarity_flip_physical{246.0}=0x1
phy_chain_rx_polarity_flip_physical{247.0}=0x1
phy_chain_rx_polarity_flip_physical{248.0}=0x0
phy_chain_rx_polarity_flip_physical{249.0}=0x0
phy_chain_rx_polarity_flip_physical{25.0}=0x1
phy_chain_rx_polarity_flip_physical{250.0}=0x1
phy_chain_rx_polarity_flip_physical{251.0}=0x0
phy_chain_rx_polarity_flip_physical{252.0}=0x1
phy_chain_rx_polarity_flip_physical{253.0}=0x1
phy_chain_rx_polarity_flip_physical{254.0}=0x0
phy_chain_rx_polarity_flip_physical{255.0}=0x1
phy_chain_rx_polarity_flip_physical{256.0}=0x0
phy_chain_rx_polarity_flip_physical{257.0}=0x0
phy_chain_rx_polarity_flip_physical{259.0}=0x0
phy_chain_rx_polarity_flip_physical{26.0}=0x0
phy_chain_rx_polarity_flip_physical{27.0}=0x1
phy_chain_rx_polarity_flip_physical{28.0}=0x0
phy_chain_rx_polarity_flip_physical{29.0}=0x0
phy_chain_rx_polarity_flip_physical{3.0}=0x1
phy_chain_rx_polarity_flip_physical{30.0}=0x0
phy_chain_rx_polarity_flip_physical{31.0}=0x0
phy_chain_rx_polarity_flip_physical{32.0}=0x1
phy_chain_rx_polarity_flip_physical{33.0}=0x0
phy_chain_rx_polarity_flip_physical{34.0}=0x0
phy_chain_rx_polarity_flip_physical{35.0}=0x1
phy_chain_rx_polarity_flip_physical{36.0}=0x1
phy_chain_rx_polarity_flip_physical{37.0}=0x1
phy_chain_rx_polarity_flip_physical{38.0}=0x1
phy_chain_rx_polarity_flip_physical{39.0}=0x0
phy_chain_rx_polarity_flip_physical{4.0}=0x0
phy_chain_rx_polarity_flip_physical{40.0}=0x0
phy_chain_rx_polarity_flip_physical{41.0}=0x0
phy_chain_rx_polarity_flip_physical{42.0}=0x1
phy_chain_rx_polarity_flip_physical{43.0}=0x1
phy_chain_rx_polarity_flip_physical{44.0}=0x1
phy_chain_rx_polarity_flip_physical{45.0}=0x1
phy_chain_rx_polarity_flip_physical{46.0}=0x0
phy_chain_rx_polarity_flip_physical{47.0}=0x0
phy_chain_rx_polarity_flip_physical{48.0}=0x1
phy_chain_rx_polarity_flip_physical{49.0}=0x1
phy_chain_rx_polarity_flip_physical{5.0}=0x1
phy_chain_rx_polarity_flip_physical{50.0}=0x1
phy_chain_rx_polarity_flip_physical{51.0}=0x0
phy_chain_rx_polarity_flip_physical{52.0}=0x0
phy_chain_rx_polarity_flip_physical{53.0}=0x0
phy_chain_rx_polarity_flip_physical{54.0}=0x0
phy_chain_rx_polarity_flip_physical{55.0}=0x1
phy_chain_rx_polarity_flip_physical{56.0}=0x0
phy_chain_rx_polarity_flip_physical{57.0}=0x0
phy_chain_rx_polarity_flip_physical{58.0}=0x0
phy_chain_rx_polarity_flip_physical{59.0}=0x1
phy_chain_rx_polarity_flip_physical{6.0}=0x0
phy_chain_rx_polarity_flip_physical{60.0}=0x1
phy_chain_rx_polarity_flip_physical{61.0}=0x0
phy_chain_rx_polarity_flip_physical{62.0}=0x0
phy_chain_rx_polarity_flip_physical{63.0}=0x1
phy_chain_rx_polarity_flip_physical{64.0}=0x1
phy_chain_rx_polarity_flip_physical{65.0}=0x1
phy_chain_rx_polarity_flip_physical{66.0}=0x1
phy_chain_rx_polarity_flip_physical{67.0}=0x0
phy_chain_rx_polarity_flip_physical{68.0}=0x1
phy_chain_rx_polarity_flip_physical{69.0}=0x0
phy_chain_rx_polarity_flip_physical{7.0}=0x0
phy_chain_rx_polarity_flip_physical{70.0}=0x0
phy_chain_rx_polarity_flip_physical{71.0}=0x1
phy_chain_rx_polarity_flip_physical{72.0}=0x1
phy_chain_rx_polarity_flip_physical{73.0}=0x1
phy_chain_rx_polarity_flip_physical{74.0}=0x1
phy_chain_rx_polarity_flip_physical{75.0}=0x0
phy_chain_rx_polarity_flip_physical{76.0}=0x0
phy_chain_rx_polarity_flip_physical{77.0}=0x0
phy_chain_rx_polarity_flip_physical{78.0}=0x0
phy_chain_rx_polarity_flip_physical{79.0}=0x1
phy_chain_rx_polarity_flip_physical{8.0}=0x1
phy_chain_rx_polarity_flip_physical{80.0}=0x1
phy_chain_rx_polarity_flip_physical{81.0}=0x1
phy_chain_rx_polarity_flip_physical{82.0}=0x1
phy_chain_rx_polarity_flip_physical{83.0}=0x0
phy_chain_rx_polarity_flip_physical{84.0}=0x0
phy_chain_rx_polarity_flip_physical{85.0}=0x1
phy_chain_rx_polarity_flip_physical{86.0}=0x1
phy_chain_rx_polarity_flip_physical{87.0}=0x0
phy_chain_rx_polarity_flip_physical{88.0}=0x0
phy_chain_rx_polarity_flip_physical{89.0}=0x0
phy_chain_rx_polarity_flip_physical{9.0}=0x1
phy_chain_rx_polarity_flip_physical{90.0}=0x0
phy_chain_rx_polarity_flip_physical{91.0}=0x1
phy_chain_rx_polarity_flip_physical{92.0}=0x1
phy_chain_rx_polarity_flip_physical{93.0}=0x0
phy_chain_rx_polarity_flip_physical{94.0}=0x0
phy_chain_rx_polarity_flip_physical{95.0}=0x1
phy_chain_rx_polarity_flip_physical{96.0}=0x0
phy_chain_rx_polarity_flip_physical{97.0}=0x1
phy_chain_rx_polarity_flip_physical{98.0}=0x1
phy_chain_rx_polarity_flip_physical{99.0}=0x0
phy_chain_tx_lane_map_physical{1.0}=0x2031
phy_chain_tx_lane_map_physical{101.0}=0x1023
phy_chain_tx_lane_map_physical{105.0}=0x1302
phy_chain_tx_lane_map_physical{109.0}=0x0321
phy_chain_tx_lane_map_physical{113.0}=0x2301
phy_chain_tx_lane_map_physical{117.0}=0x3120
phy_chain_tx_lane_map_physical{121.0}=0x3102
phy_chain_tx_lane_map_physical{125.0}=0x3210
phy_chain_tx_lane_map_physical{129.0}=0x1023
phy_chain_tx_lane_map_physical{13.0}=0x3021
phy_chain_tx_lane_map_physical{133.0}=0x3210
phy_chain_tx_lane_map_physical{137.0}=0x2031
phy_chain_tx_lane_map_physical{141.0}=0x1302
phy_chain_tx_lane_map_physical{145.0}=0x3210
phy_chain_tx_lane_map_physical{149.0}=0x0213
phy_chain_tx_lane_map_physical{153.0}=0x3210
phy_chain_tx_lane_map_physical{157.0}=0x1320
phy_chain_tx_lane_map_physical{161.0}=0x3210
phy_chain_tx_lane_map_physical{165.0}=0x0231
phy_chain_tx_lane_map_physical{169.0}=0x3120
phy_chain_tx_lane_map_physical{17.0}=0x1032
phy_chain_tx_lane_map_physical{173.0}=0x0312
phy_chain_tx_lane_map_physical{177.0}=0x0231
phy_chain_tx_lane_map_physical{181.0}=0x3210
phy_chain_tx_lane_map_physical{185.0}=0x3210
phy_chain_tx_lane_map_physical{189.0}=0x1320
phy_chain_tx_lane_map_physical{193.0}=0x0321
phy_chain_tx_lane_map_physical{197.0}=0x3120
phy_chain_tx_lane_map_physical{201.0}=0x3120
phy_chain_tx_lane_map_physical{205.0}=0x0123
phy_chain_tx_lane_map_physical{209.0}=0x3120
phy_chain_tx_lane_map_physical{21.0}=0x0213
phy_chain_tx_lane_map_physical{213.0}=0x3021
phy_chain_tx_lane_map_physical{217.0}=0x0312
phy_chain_tx_lane_map_physical{221.0}=0x2301
phy_chain_tx_lane_map_physical{225.0}=0x0123
phy_chain_tx_lane_map_physical{229.0}=0x2031
phy_chain_tx_lane_map_physical{233.0}=0x0231
phy_chain_tx_lane_map_physical{237.0}=0x0213
phy_chain_tx_lane_map_physical{241.0}=0x1320
phy_chain_tx_lane_map_physical{245.0}=0x2031
phy_chain_tx_lane_map_physical{249.0}=0x3120
phy_chain_tx_lane_map_physical{25.0}=0x0231
phy_chain_tx_lane_map_physical{253.0}=0x0321
phy_chain_tx_lane_map_physical{257.0}=0x3210
phy_chain_tx_lane_map_physical{29.0}=0x1230
phy_chain_tx_lane_map_physical{33.0}=0x1032
phy_chain_tx_lane_map_physical{37.0}=0x0123
phy_chain_tx_lane_map_physical{41.0}=0x0213
phy_chain_tx_lane_map_physical{45.0}=0x0132
phy_chain_tx_lane_map_physical{49.0}=0x2031
phy_chain_tx_lane_map_physical{5.0}=0x2301
phy_chain_tx_lane_map_physical{53.0}=0x2301
phy_chain_tx_lane_map_physical{57.0}=0x2031
phy_chain_tx_lane_map_physical{61.0}=0x2031
phy_chain_tx_lane_map_physical{65.0}=0x1230
phy_chain_tx_lane_map_physical{69.0}=0x2013
phy_chain_tx_lane_map_physical{73.0}=0x0213
phy_chain_tx_lane_map_physical{77.0}=0x2310
phy_chain_tx_lane_map_physical{81.0}=0x0321
phy_chain_tx_lane_map_physical{85.0}=0x2013
phy_chain_tx_lane_map_physical{89.0}=0x0213
phy_chain_tx_lane_map_physical{9.0}=0x3012
phy_chain_tx_lane_map_physical{93.0}=0x3102
phy_chain_tx_lane_map_physical{97.0}=0x3210
phy_chain_tx_polarity_flip_physical{1.0}=0x0
phy_chain_tx_polarity_flip_physical{10.0}=0x1
phy_chain_tx_polarity_flip_physical{100.0}=0x0
phy_chain_tx_polarity_flip_physical{101.0}=0x0
phy_chain_tx_polarity_flip_physical{102.0}=0x1
phy_chain_tx_polarity_flip_physical{103.0}=0x0
phy_chain_tx_polarity_flip_physical{104.0}=0x0
phy_chain_tx_polarity_flip_physical{105.0}=0x0
phy_chain_tx_polarity_flip_physical{106.0}=0x1
phy_chain_tx_polarity_flip_physical{107.0}=0x1
phy_chain_tx_polarity_flip_physical{108.0}=0x1
phy_chain_tx_polarity_flip_physical{109.0}=0x0
phy_chain_tx_polarity_flip_physical{11.0}=0x1
phy_chain_tx_polarity_flip_physical{110.0}=0x0
phy_chain_tx_polarity_flip_physical{111.0}=0x0
phy_chain_tx_polarity_flip_physical{112.0}=0x1
phy_chain_tx_polarity_flip_physical{113.0}=0x1
phy_chain_tx_polarity_flip_physical{114.0}=0x1
phy_chain_tx_polarity_flip_physical{115.0}=0x1
phy_chain_tx_polarity_flip_physical{116.0}=0x0
phy_chain_tx_polarity_flip_physical{117.0}=0x1
phy_chain_tx_polarity_flip_physical{118.0}=0x0
phy_chain_tx_polarity_flip_physical{119.0}=0x0
phy_chain_tx_polarity_flip_physical{12.0}=0x0
phy_chain_tx_polarity_flip_physical{120.0}=0x0
phy_chain_tx_polarity_flip_physical{121.0}=0x0
phy_chain_tx_polarity_flip_physical{122.0}=0x0
phy_chain_tx_polarity_flip_physical{123.0}=0x0
phy_chain_tx_polarity_flip_physical{124.0}=0x1
phy_chain_tx_polarity_flip_physical{125.0}=0x0
phy_chain_tx_polarity_flip_physical{126.0}=0x1
phy_chain_tx_polarity_flip_physical{127.0}=0x1
phy_chain_tx_polarity_flip_physical{128.0}=0x1
phy_chain_tx_polarity_flip_physical{129.0}=0x1
phy_chain_tx_polarity_flip_physical{13.0}=0x0
phy_chain_tx_polarity_flip_physical{130.0}=0x0
phy_chain_tx_polarity_flip_physical{131.0}=0x1
phy_chain_tx_polarity_flip_physical{132.0}=0x0
phy_chain_tx_polarity_flip_physical{133.0}=0x1
phy_chain_tx_polarity_flip_physical{134.0}=0x1
phy_chain_tx_polarity_flip_physical{135.0}=0x1
phy_chain_tx_polarity_flip_physical{136.0}=0x1
phy_chain_tx_polarity_flip_physical{137.0}=0x1
phy_chain_tx_polarity_flip_physical{138.0}=0x1
phy_chain_tx_polarity_flip_physical{139.0}=0x1
phy_chain_tx_polarity_flip_physical{14.0}=0x1
phy_chain_tx_polarity_flip_physical{140.0}=0x1
phy_chain_tx_polarity_flip_physical{141.0}=0x0
phy_chain_tx_polarity_flip_physical{142.0}=0x1
phy_chain_tx_polarity_flip_physical{143.0}=0x1
phy_chain_tx_polarity_flip_physical{144.0}=0x1
phy_chain_tx_polarity_flip_physical{145.0}=0x1
phy_chain_tx_polarity_flip_physical{146.0}=0x1
phy_chain_tx_polarity_flip_physical{147.0}=0x1
phy_chain_tx_polarity_flip_physical{148.0}=0x0
phy_chain_tx_polarity_flip_physical{149.0}=0x1
phy_chain_tx_polarity_flip_physical{15.0}=0x0
phy_chain_tx_polarity_flip_physical{150.0}=0x0
phy_chain_tx_polarity_flip_physical{151.0}=0x0
phy_chain_tx_polarity_flip_physical{152.0}=0x0
phy_chain_tx_polarity_flip_physical{153.0}=0x1
phy_chain_tx_polarity_flip_physical{154.0}=0x0
phy_chain_tx_polarity_flip_physical{155.0}=0x0
phy_chain_tx_polarity_flip_physical{156.0}=0x0
phy_chain_tx_polarity_flip_physical{157.0}=0x0
phy_chain_tx_polarity_flip_physical{158.0}=0x0
phy_chain_tx_polarity_flip_physical{159.0}=0x0
phy_chain_tx_polarity_flip_physical{16.0}=0x0
phy_chain_tx_polarity_flip_physical{160.0}=0x0
phy_chain_tx_polarity_flip_physical{161.0}=0x0
phy_chain_tx_polarity_flip_physical{162.0}=0x1
phy_chain_tx_polarity_flip_physical{163.0}=0x1
phy_chain_tx_polarity_flip_physical{164.0}=0x0
phy_chain_tx_polarity_flip_physical{165.0}=0x1
phy_chain_tx_polarity_flip_physical{166.0}=0x1
phy_chain_tx_polarity_flip_physical{167.0}=0x1
phy_chain_tx_polarity_flip_physical{168.0}=0x0
phy_chain_tx_polarity_flip_physical{169.0}=0x0
phy_chain_tx_polarity_flip_physical{17.0}=0x0
phy_chain_tx_polarity_flip_physical{170.0}=0x1
phy_chain_tx_polarity_flip_physical{171.0}=0x1
phy_chain_tx_polarity_flip_physical{172.0}=0x1
phy_chain_tx_polarity_flip_physical{173.0}=0x0
phy_chain_tx_polarity_flip_physical{174.0}=0x0
phy_chain_tx_polarity_flip_physical{175.0}=0x1
phy_chain_tx_polarity_flip_physical{176.0}=0x0
phy_chain_tx_polarity_flip_physical{177.0}=0x1
phy_chain_tx_polarity_flip_physical{178.0}=0x0
phy_chain_tx_polarity_flip_physical{179.0}=0x0
phy_chain_tx_polarity_flip_physical{18.0}=0x1
phy_chain_tx_polarity_flip_physical{180.0}=0x0
phy_chain_tx_polarity_flip_physical{181.0}=0x0
phy_chain_tx_polarity_flip_physical{182.0}=0x0
phy_chain_tx_polarity_flip_physical{183.0}=0x0
phy_chain_tx_polarity_flip_physical{184.0}=0x1
phy_chain_tx_polarity_flip_physical{185.0}=0x0
phy_chain_tx_polarity_flip_physical{186.0}=0x1
phy_chain_tx_polarity_flip_physical{187.0}=0x1
phy_chain_tx_polarity_flip_physical{188.0}=0x1
phy_chain_tx_polarity_flip_physical{189.0}=0x0
phy_chain_tx_polarity_flip_physical{19.0}=0x1
phy_chain_tx_polarity_flip_physical{190.0}=0x0
phy_chain_tx_polarity_flip_physical{191.0}=0x0
phy_chain_tx_polarity_flip_physical{192.0}=0x0
phy_chain_tx_polarity_flip_physical{193.0}=0x1
phy_chain_tx_polarity_flip_physical{194.0}=0x1
phy_chain_tx_polarity_flip_physical{195.0}=0x1
phy_chain_tx_polarity_flip_physical{196.0}=0x0
phy_chain_tx_polarity_flip_physical{197.0}=0x0
phy_chain_tx_polarity_flip_physical{198.0}=0x1
phy_chain_tx_polarity_flip_physical{199.0}=0x1
phy_chain_tx_polarity_flip_physical{2.0}=0x1
phy_chain_tx_polarity_flip_physical{20.0}=0x1
phy_chain_tx_polarity_flip_physical{200.0}=0x1
phy_chain_tx_polarity_flip_physical{201.0}=0x1
phy_chain_tx_polarity_flip_physical{202.0}=0x1
phy_chain_tx_polarity_flip_physical{203.0}=0x1
phy_chain_tx_polarity_flip_physical{204.0}=0x1
phy_chain_tx_polarity_flip_physical{205.0}=0x0
phy_chain_tx_polarity_flip_physical{206.0}=0x1
phy_chain_tx_polarity_flip_physical{207.0}=0x1
phy_chain_tx_polarity_flip_physical{208.0}=0x1
phy_chain_tx_polarity_flip_physical{209.0}=0x1
phy_chain_tx_polarity_flip_physical{21.0}=0x0
phy_chain_tx_polarity_flip_physical{210.0}=0x1
phy_chain_tx_polarity_flip_physical{211.0}=0x1
phy_chain_tx_polarity_flip_physical{212.0}=0x0
phy_chain_tx_polarity_flip_physical{213.0}=0x0
phy_chain_tx_polarity_flip_physical{214.0}=0x1
phy_chain_tx_polarity_flip_physical{215.0}=0x0
phy_chain_tx_polarity_flip_physical{216.0}=0x1
phy_chain_tx_polarity_flip_physical{217.0}=0x1
phy_chain_tx_polarity_flip_physical{218.0}=0x1
phy_chain_tx_polarity_flip_physical{219.0}=0x0
phy_chain_tx_polarity_flip_physical{22.0}=0x0
phy_chain_tx_polarity_flip_physical{220.0}=0x1
phy_chain_tx_polarity_flip_physical{221.0}=0x0
phy_chain_tx_polarity_flip_physical{222.0}=0x0
phy_chain_tx_polarity_flip_physical{223.0}=0x0
phy_chain_tx_polarity_flip_physical{224.0}=0x1
phy_chain_tx_polarity_flip_physical{225.0}=0x1
phy_chain_tx_polarity_flip_physical{226.0}=0x1
phy_chain_tx_polarity_flip_physical{227.0}=0x1
phy_chain_tx_polarity_flip_physical{228.0}=0x0
phy_chain_tx_polarity_flip_physical{229.0}=0x0
phy_chain_tx_polarity_flip_physical{23.0}=0x0
phy_chain_tx_polarity_flip_physical{230.0}=0x1
phy_chain_tx_polarity_flip_physical{231.0}=0x1
phy_chain_tx_polarity_flip_physical{232.0}=0x1
phy_chain_tx_polarity_flip_physical{233.0}=0x0
phy_chain_tx_polarity_flip_physical{234.0}=0x0
phy_chain_tx_polarity_flip_physical{235.0}=0x0
phy_chain_tx_polarity_flip_physical{236.0}=0x0
phy_chain_tx_polarity_flip_physical{237.0}=0x1
phy_chain_tx_polarity_flip_physical{238.0}=0x1
phy_chain_tx_polarity_flip_physical{239.0}=0x1
phy_chain_tx_polarity_flip_physical{24.0}=0x0
phy_chain_tx_polarity_flip_physical{240.0}=0x0
phy_chain_tx_polarity_flip_physical{241.0}=0x1
phy_chain_tx_polarity_flip_physical{242.0}=0x1
phy_chain_tx_polarity_flip_physical{243.0}=0x1
phy_chain_tx_polarity_flip_physical{244.0}=0x0
phy_chain_tx_polarity_flip_physical{245.0}=0x1
phy_chain_tx_polarity_flip_physical{246.0}=0x1
phy_chain_tx_polarity_flip_physical{247.0}=0x1
phy_chain_tx_polarity_flip_physical{248.0}=0x1
phy_chain_tx_polarity_flip_physical{249.0}=0x1
phy_chain_tx_polarity_flip_physical{25.0}=0x1
phy_chain_tx_polarity_flip_physical{250.0}=0x0
phy_chain_tx_polarity_flip_physical{251.0}=0x0
phy_chain_tx_polarity_flip_physical{252.0}=0x0
phy_chain_tx_polarity_flip_physical{253.0}=0x1
phy_chain_tx_polarity_flip_physical{254.0}=0x1
phy_chain_tx_polarity_flip_physical{255.0}=0x1
phy_chain_tx_polarity_flip_physical{256.0}=0x0
phy_chain_tx_polarity_flip_physical{257.0}=0x0
phy_chain_tx_polarity_flip_physical{259.0}=0x0
phy_chain_tx_polarity_flip_physical{26.0}=0x0
phy_chain_tx_polarity_flip_physical{27.0}=0x0
phy_chain_tx_polarity_flip_physical{28.0}=0x0
phy_chain_tx_polarity_flip_physical{29.0}=0x1
phy_chain_tx_polarity_flip_physical{3.0}=0x1
phy_chain_tx_polarity_flip_physical{30.0}=0x1
phy_chain_tx_polarity_flip_physical{31.0}=0x1
phy_chain_tx_polarity_flip_physical{32.0}=0x0
phy_chain_tx_polarity_flip_physical{33.0}=0x0
phy_chain_tx_polarity_flip_physical{34.0}=0x0
phy_chain_tx_polarity_flip_physical{35.0}=0x0
phy_chain_tx_polarity_flip_physical{36.0}=0x1
phy_chain_tx_polarity_flip_physical{37.0}=0x1
phy_chain_tx_polarity_flip_physical{38.0}=0x1
phy_chain_tx_polarity_flip_physical{39.0}=0x1
phy_chain_tx_polarity_flip_physical{4.0}=0x1
phy_chain_tx_polarity_flip_physical{40.0}=0x0
phy_chain_tx_polarity_flip_physical{41.0}=0x0
phy_chain_tx_polarity_flip_physical{42.0}=0x0
phy_chain_tx_polarity_flip_physical{43.0}=0x0
phy_chain_tx_polarity_flip_physical{44.0}=0x0
phy_chain_tx_polarity_flip_physical{45.0}=0x1
phy_chain_tx_polarity_flip_physical{46.0}=0x0
phy_chain_tx_polarity_flip_physical{47.0}=0x1
phy_chain_tx_polarity_flip_physical{48.0}=0x1
phy_chain_tx_polarity_flip_physical{49.0}=0x0
phy_chain_tx_polarity_flip_physical{5.0}=0x1
phy_chain_tx_polarity_flip_physical{50.0}=0x0
phy_chain_tx_polarity_flip_physical{51.0}=0x0
phy_chain_tx_polarity_flip_physical{52.0}=0x1
phy_chain_tx_polarity_flip_physical{53.0}=0x0
phy_chain_tx_polarity_flip_physical{54.0}=0x1
phy_chain_tx_polarity_flip_physical{55.0}=0x1
phy_chain_tx_polarity_flip_physical{56.0}=0x0
phy_chain_tx_polarity_flip_physical{57.0}=0x0
phy_chain_tx_polarity_flip_physical{58.0}=0x1
phy_chain_tx_polarity_flip_physical{59.0}=0x1
phy_chain_tx_polarity_flip_physical{6.0}=0x1
phy_chain_tx_polarity_flip_physical{60.0}=0x1
phy_chain_tx_polarity_flip_physical{61.0}=0x0
phy_chain_tx_polarity_flip_physical{62.0}=0x1
phy_chain_tx_polarity_flip_physical{63.0}=0x1
phy_chain_tx_polarity_flip_physical{64.0}=0x1
phy_chain_tx_polarity_flip_physical{65.0}=0x0
phy_chain_tx_polarity_flip_physical{66.0}=0x1
phy_chain_tx_polarity_flip_physical{67.0}=0x1
phy_chain_tx_polarity_flip_physical{68.0}=0x0
phy_chain_tx_polarity_flip_physical{69.0}=0x1
phy_chain_tx_polarity_flip_physical{7.0}=0x1
phy_chain_tx_polarity_flip_physical{70.0}=0x1
phy_chain_tx_polarity_flip_physical{71.0}=0x1
phy_chain_tx_polarity_flip_physical{72.0}=0x0
phy_chain_tx_polarity_flip_physical{73.0}=0x1
phy_chain_tx_polarity_flip_physical{74.0}=0x0
phy_chain_tx_polarity_flip_physical{75.0}=0x0
phy_chain_tx_polarity_flip_physical{76.0}=0x0
phy_chain_tx_polarity_flip_physical{77.0}=0x0
phy_chain_tx_polarity_flip_physical{78.0}=0x0
phy_chain_tx_polarity_flip_physical{79.0}=0x1
phy_chain_tx_polarity_flip_physical{8.0}=0x0
phy_chain_tx_polarity_flip_physical{80.0}=0x0
phy_chain_tx_polarity_flip_physical{81.0}=0x1
phy_chain_tx_polarity_flip_physical{82.0}=0x1
phy_chain_tx_polarity_flip_physical{83.0}=0x1
phy_chain_tx_polarity_flip_physical{84.0}=0x0
phy_chain_tx_polarity_flip_physical{85.0}=0x1
phy_chain_tx_polarity_flip_physical{86.0}=0x0
phy_chain_tx_polarity_flip_physical{87.0}=0x0
phy_chain_tx_polarity_flip_physical{88.0}=0x0
phy_chain_tx_polarity_flip_physical{89.0}=0x1
phy_chain_tx_polarity_flip_physical{9.0}=0x0
phy_chain_tx_polarity_flip_physical{90.0}=0x1
phy_chain_tx_polarity_flip_physical{91.0}=0x1
phy_chain_tx_polarity_flip_physical{92.0}=0x0
phy_chain_tx_polarity_flip_physical{93.0}=0x0
phy_chain_tx_polarity_flip_physical{94.0}=0x0
phy_chain_tx_polarity_flip_physical{95.0}=0x0
phy_chain_tx_polarity_flip_physical{96.0}=0x0
phy_chain_tx_polarity_flip_physical{97.0}=0x0
phy_chain_tx_polarity_flip_physical{98.0}=0x1
phy_chain_tx_polarity_flip_physical{99.0}=0x1
port_init_cl72_hg=1
robust_hash_disable_egress_vlan=1
robust_hash_disable_mpls=1
robust_hash_disable_vlan=1
scache_filename=/tmp/scache
scache_filename=/tmp/scache
sram_scan_enable=0
stable_size=0x5500000
stable_size=0x5500000
tdma_timeout_usec=15000000
tslam_timeout_usec=15000000
dport_map_direct=1
portmap_1=5:50
portmap_2=7:50
portmap_3=13:50
portmap_4=15:50
portmap_5=25:50
portmap_6=27:50
portmap_7=21:50
portmap_8=23:50
portmap_9=37:50
portmap_10=39:50
portmap_11=45:50
portmap_12=47:50
portmap_13=57:100
portmap_14=53:100
portmap_15=9:50
portmap_16=11:50
portmap_17=1:50
portmap_18=3:50
portmap_19=17:50
portmap_20=19:50
portmap_21=29:50
portmap_22=31:50
portmap_23=41:50
portmap_24=43:50
portmap_25=33:50
portmap_26=35:50
portmap_27=49:50
portmap_28=51:50
portmap_29=61:50
portmap_30=63:50
portmap_34=77:50
portmap_35=79:50
portmap_36=65:50
portmap_37=67:50
portmap_38=85:50
portmap_39=87:50
portmap_40=89:50
portmap_41=91:50
portmap_42=109:50
portmap_43=111:50
portmap_44=97:50
portmap_45=99:50
portmap_46=117:100
portmap_47=121:100
portmap_48=69:50
portmap_49=71:50
portmap_50=73:50
portmap_51=75:50
portmap_52=93:50
portmap_53=95:50
portmap_54=81:50
portmap_55=83:50
portmap_56=101:50
portmap_57=103:50
portmap_58=105:50
portmap_59=107:50
portmap_60=125:50
portmap_61=127:50
portmap_62=113:50
portmap_63=115:50
portmap_66=257:10
portmap_68=141:100
portmap_69=133:100
portmap_70=149:50
portmap_71=151:50
portmap_72=153:50
portmap_73=155:50
portmap_74=173:50
portmap_75=175:50
portmap_76=161:50
portmap_77=163:50
portmap_78=181:50
portmap_79=183:50
portmap_80=185:50
portmap_81=187:50
portmap_82=129:50
portmap_83=131:50
portmap_84=137:50
portmap_85=139:50
portmap_86=157:50
portmap_87=159:50
portmap_88=145:50
portmap_89=147:50
portmap_90=165:50
portmap_91=167:50
portmap_92=169:50
portmap_93=171:50
portmap_94=189:50
portmap_95=191:50
portmap_96=177:50
portmap_97=179:50
portmap_100=259:10
portmap_102=197:100
portmap_103=205:100
portmap_104=217:50
portmap_105=219:50
portmap_106=213:50
portmap_107=215:50
portmap_108=229:50
portmap_109=231:50
portmap_110=237:50
portmap_111=239:50
portmap_112=249:50
portmap_113=251:50
portmap_114=245:50
portmap_115=247:50
portmap_116=201:50
portmap_117=203:50
portmap_118=193:50
portmap_119=195:50
portmap_120=209:50
portmap_121=211:50
portmap_122=221:50
portmap_123=223:50
portmap_124=233:50
portmap_125=235:50
portmap_126=225:50
portmap_127=227:50
portmap_128=241:50
portmap_129=243:50
portmap_130=253:50
portmap_131=255:50
# tuning parameters
serdes_preemphasis_1=0x580c
serdes_preemphasis_2=0x580c
serdes_preemphasis_3=0x580c
serdes_preemphasis_4=0x580c
serdes_preemphasis_5=0x580c
serdes_preemphasis_6=0x580c
serdes_preemphasis_7=0x580c
serdes_preemphasis_8=0x580c
serdes_preemphasis_9=0x580c
serdes_preemphasis_10=0x580c
serdes_preemphasis_11=0x580c
serdes_preemphasis_12=0x580c
serdes_preemphasis_13=0x144108
serdes_preemphasis_14=0x144108
serdes_preemphasis_15=0x580c
serdes_preemphasis_16=0x580c
serdes_preemphasis_17=0x580c
serdes_preemphasis_18=0x580c
serdes_preemphasis_19=0x580c
serdes_preemphasis_20=0x580c
serdes_preemphasis_21=0x580c
serdes_preemphasis_22=0x580c
serdes_preemphasis_23=0x580c
serdes_preemphasis_24=0x580c
serdes_preemphasis_25=0x580c
serdes_preemphasis_26=0x580c
serdes_preemphasis_27=0x580c
serdes_preemphasis_28=0x580c
serdes_preemphasis_29=0x580c
serdes_preemphasis_30=0x580c
serdes_preemphasis_34=0x580c
serdes_preemphasis_35=0x580c
serdes_preemphasis_36=0x580c
serdes_preemphasis_37=0x580c
serdes_preemphasis_38=0x580c
serdes_preemphasis_39=0x580c
serdes_preemphasis_40=0x580c
serdes_preemphasis_41=0x580c
serdes_preemphasis_42=0x580c
serdes_preemphasis_43=0x580c
serdes_preemphasis_44=0x580c
serdes_preemphasis_45=0x580c
serdes_preemphasis_46=0x144108
serdes_preemphasis_47=0x103a07
serdes_preemphasis_48=0x580c
serdes_preemphasis_49=0x580c
serdes_preemphasis_50=0x580c
serdes_preemphasis_51=0x580c
serdes_preemphasis_52=0x580c
serdes_preemphasis_53=0x580c
serdes_preemphasis_54=0x580c
serdes_preemphasis_55=0x580c
serdes_preemphasis_56=0x580c
serdes_preemphasis_57=0x580c
serdes_preemphasis_58=0x580c
serdes_preemphasis_59=0x580c
serdes_preemphasis_60=0x580c
serdes_preemphasis_61=0x580c
serdes_preemphasis_62=0x580c
serdes_preemphasis_63=0x580c
serdes_preemphasis_66=0x62f01
serdes_preemphasis_68=0x184606
serdes_preemphasis_69=0x184407
serdes_preemphasis_70=0x580c
serdes_preemphasis_71=0x580c
serdes_preemphasis_72=0x580c
serdes_preemphasis_73=0x580c
serdes_preemphasis_74=0x580c
serdes_preemphasis_75=0x580c
serdes_preemphasis_76=0x580c
serdes_preemphasis_77=0x580c
serdes_preemphasis_78=0x580c
serdes_preemphasis_79=0x580c
serdes_preemphasis_80=0x580c
serdes_preemphasis_81=0x580c
serdes_preemphasis_82=0x580c
serdes_preemphasis_83=0x580c
serdes_preemphasis_84=0x580c
serdes_preemphasis_85=0x580c
serdes_preemphasis_86=0x580c
serdes_preemphasis_87=0x580c
serdes_preemphasis_88=0x580c
serdes_preemphasis_89=0x580c
serdes_preemphasis_90=0x580c
serdes_preemphasis_91=0x580c
serdes_preemphasis_92=0x580c
serdes_preemphasis_93=0x580c
serdes_preemphasis_94=0x580c
serdes_preemphasis_95=0x580c
serdes_preemphasis_96=0x580c
serdes_preemphasis_97=0x580c
serdes_preemphasis_100=0x62f01
serdes_preemphasis_102=0x174507
serdes_preemphasis_103=0x184606
serdes_preemphasis_104=0x580c
serdes_preemphasis_105=0x580c
serdes_preemphasis_106=0x580c
serdes_preemphasis_107=0x580c
serdes_preemphasis_108=0x580c
serdes_preemphasis_109=0x580c
serdes_preemphasis_110=0x580c
serdes_preemphasis_111=0x580c
serdes_preemphasis_112=0x580c
serdes_preemphasis_113=0x580c
serdes_preemphasis_114=0x580c
serdes_preemphasis_115=0x580c
serdes_preemphasis_116=0x580c
serdes_preemphasis_117=0x580c
serdes_preemphasis_118=0x580c
serdes_preemphasis_119=0x580c
serdes_preemphasis_120=0x580c
serdes_preemphasis_121=0x580c
serdes_preemphasis_122=0x580c
serdes_preemphasis_123=0x580c
serdes_preemphasis_124=0x580c
serdes_preemphasis_125=0x580c
serdes_preemphasis_126=0x580c
serdes_preemphasis_127=0x580c
serdes_preemphasis_128=0x580c
serdes_preemphasis_129=0x580c
serdes_preemphasis_130=0x580c
serdes_preemphasis_131=0x580c
mmu_init_config="MSFT-TH2-Tier0"

View File

@ -0,0 +1,87 @@
#!/usr/bin/env python
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.
# Reboot script for 7260CX3
from __future__ import print_function
import sys
import mmap, os
import subprocess
from struct import pack, unpack
class MmapResource( object ):
"""Resource implementation for a directly-mapped memory region."""
def __init__( self, path ):
try:
fd = os.open( path, os.O_RDWR )
except EnvironmentError:
print( "FAIL can not open scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
size = os.fstat( fd ).st_size
except EnvironmentError:
print( "FAIL can not fstat scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
self.mmap_ = mmap.mmap( fd, size, mmap.MAP_SHARED,
mmap.PROT_READ | mmap.PROT_WRITE )
except EnvironmentError:
print( "FAIL can not map scd memory-map file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
finally:
try:
# Note that closing the file descriptor has no effect on the memory map
os.close( fd )
except EnvironmentError:
print( "FAIL failed to close scd memory-map file" )
sys.exit( 1 )
def read32( self, addr ):
return unpack( '<L', self.mmap_[ addr : addr + 4 ] )[ 0 ]
def write32( self, addr, value ):
self.mmap_[ addr: addr + 4 ] = pack( '<L', value )
def scdRegTest( scd, offset, val1, count ):
scd.write32( offset, val1 )
val2 = scd.read32( offset )
if val1 != val2:
print( "FAIL: scd write 0x%08x but read back 0x%08x in iter %d" %
( val1, val2, count ) )
sys.exit( 17 )
def scdScrRegTest( scd ):
scrOffset = 0x0130
for i in range( 0, 3 ):
scdRegTest( scd, scrOffset, 0xdeadbeef, i )
scdRegTest( scd, scrOffset, 0xa5a5a5a5, i )
scdRegTest( scd, scrOffset, 0x00000000, i )
def reboot( scd ):
# reboot the system by writing to register 0x7000
print( "Rebooting" )
scd.write32( 0x7000, 0xDEAD )
print( "REBOOTED" )
def main():
busName = "/sys/bus/pci/devices/0000:ff:0b.3/resource0"
subprocess.call( [ 'modprobe', 'scd' ] )
scd = MmapResource( busName )
#
# verify that we can read/write scd scratch register
#
scdScrRegTest( scd )
# reboot the system
reboot( scd )
if __name__ == "__main__":
main()

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