Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure to my repo #17

Merged
merged 68 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
0bce0a7
Allow NULL Buffer Profile in buffer pg/queue yang files for Dynamic B…
AmitKaushik7 Mar 31, 2022
eb141f2
[BFN] Remove SAI patches (#10343)
Mar 31, 2022
13353df
[Nokia][device] Update the BCM config with Recycle ports info for Nok…
mlok-nokia Apr 1, 2022
a9a37c8
[ci] Fix docker-sonic-slave-template issue for resources. (#10414)
liushilongbuaa Apr 1, 2022
0f488a8
[azp]: Fix type in slave container cleanup (#10424)
theasianpianist Apr 1, 2022
94ec854
DellEMC: N3248TE/N3248PXE Watchdog Support (#9398)
arunlk-dell Apr 1, 2022
a9e86c3
DellEMC: N3248TE platform API2.0 changes (#10400)
arunlk-dell Apr 1, 2022
ddc269a
DellEMC: Added platform.json file for N3248TE (#9404)
arunlk-dell Apr 1, 2022
b39b7a3
[Accton/PDDF] Support pddf to as4630/as7816/as7326 (#10340)
jostar-yang Apr 1, 2022
588ed0b
Upgrade router-advertiser container to Bullseye (#10374)
saiarcot895 Apr 1, 2022
a8f72e5
[yang] Update device_metadata to add dhcp_server (#10382)
ganglyu Apr 1, 2022
12cfb2b
[ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341)
liushilongbuaa Apr 1, 2022
28939e9
[submodule]: Advance sonic-swss-common and sonic-linkmgrd submodules …
nazariig Apr 2, 2022
8edc534
Advance sonic-sairedis submodule (#10417)
bingwang-ms Apr 2, 2022
1bf8bc6
[ci] Fix the generating version file failure issue caused by artifact…
xumia Apr 2, 2022
551dbfd
[Security]: Enable hardening build options (#10369)
xumia Apr 2, 2022
a5018e7
[Submodule update] sonic-py-swssdk (#10440)
abdosi Apr 2, 2022
e1c36db
[Ci]: Fix an azp template syntax error (#10446)
xumia Apr 3, 2022
13aa233
[sonic-cfggen]: Update UT to add port lanes (#10362)
ganglyu Apr 4, 2022
470d735
[YANG] Update YANG model for `pfcwd_sw_enable` (#10444)
bingwang-ms Apr 4, 2022
64dc08a
[submodule] Advance sonic-utilities submodule. (#10405)
nazariig Apr 4, 2022
b9dd1df
Update qos config to clear queues for bounced back traffic (#10176)
bingwang-ms Apr 5, 2022
31be203
[BFN] Updated x86_64-accton_as9516_32d-r0/platform.json (#10368)
Apr 5, 2022
8e616c1
[BFN] Refactoring and adding some functions of Thermal class (set and…
VadymYashchenko Apr 5, 2022
58df23e
[arista] Update serdes tuning values for 7280cr3 (#9966)
byu343 Apr 5, 2022
bfe5835
[BFN] Fix exception when fwutil run without sudo (#10335)
Apr 5, 2022
3391969
[Ci]: Fix the docker slave azp template issue (#10453)
xumia Apr 6, 2022
ce26c04
[Build]: fix debian package not found issue (#10447)
xumia Apr 6, 2022
b152f2a
[sonic-cfggen]: Update unit test to remove asn 0 (#10454)
ganglyu Apr 6, 2022
ed14eb5
[interfaces-config] "main exception: cannot find interfaces: eth0" er…
vivekrnv Apr 6, 2022
614d14e
[submodule] update sonic-snmpagent pointer (#10461)
vivekrnv Apr 6, 2022
8cd346d
Update docker-router-advertiser.supervisord.conf.j2 (#10375)
kellyyeh Apr 6, 2022
d83ae1e
[yang] Fix yang validation failure when table contains empty value (#…
wen587 Apr 7, 2022
0330253
[ci] Fix issues in docker-slave official build. (#10477)
liushilongbuaa Apr 7, 2022
3046c79
[sonic-cfggen]: Add port speed for UT (#10483)
ganglyu Apr 7, 2022
16717d2
[submodule] Advance sonic-swss submodule. (#10404)
nazariig Apr 7, 2022
4426f77
[scapy] update scapy to 2.4.5 and patch it (#10457)
stepanblyschak Apr 7, 2022
baa24b3
[Ci]: exclude innovium build and increase broadcom build timeout (#10…
xumia Apr 7, 2022
07fad26
[submodule] Advance sonic-platform-common pointer (#10469)
keboliu Apr 7, 2022
faabf00
[Marvell] Update armhf sai deb (#10403)
rajkumar38 Apr 7, 2022
e348dff
[Nokia ixs7215] Platform API temperature threshold value fixes (#10372)
dflynn-Nokia Apr 7, 2022
f311947
[Nokia][device] Updated the BCM config file to reduce the CPU usage (…
saksarav-nokia Apr 7, 2022
47db2b2
[hostcfgd] Move hostcfgd back to ConfigDBConnector for subscribing to…
alexrallen Apr 7, 2022
39e1e92
[yang]: Add support for BmcMgmtToRRouter (#10488)
ganglyu Apr 7, 2022
51e4e80
[ci] Fix a docker-sonic-slave pipeline format in variable reference. …
liushilongbuaa Apr 8, 2022
f24a04f
[Ci]: check if there is a sonic dirty version issue (#10445)
xumia Apr 8, 2022
330d11a
Add EPMS and MgmtTsToR (#10478)
kellyyeh Apr 8, 2022
487a29a
Update Nokia sonic-platform submodule (#10437)
mlok-nokia Apr 8, 2022
92efc01
[docker-ptf]: Upgrade scapy to 2.4.5 in docker-ptf (#10507)
Pterosaur Apr 9, 2022
6581dec
[saibcm-modules]: Add linux_ngknet for trident4/tomahawk4 chips (#10517)
byu343 Apr 9, 2022
7d9a346
[submodule] Update sonic-sairedis (#10515)
kcudnik Apr 9, 2022
f7a6553
[docker-syncd]: Add optional shm-size to syncd container (#10516)
byu343 Apr 9, 2022
81ac482
[BFN] updated SDE packages for BFN platforms (#10512)
Apr 9, 2022
2116f62
[AS9716-32D] Support i2c mux reset (#10492)
brandonchuang Apr 9, 2022
b4f8f1d
Removed python2 dependency for sonic-pcied in sonic-platform-daemons …
assrinivasan Apr 9, 2022
011c21d
[submodule] Advance sonic-swss-common pointer (#10505)
Junchao-Mellanox Apr 10, 2022
cd330f0
[sonic-cfggen] make minigraph parser fail when speed and lanes are no…
wen587 Apr 11, 2022
5242a4b
Upgrade pip3 package docker to 5.0.3 (#10523)
xumia Apr 12, 2022
396a92c
[dhcp_relay] Remove dhcp6mon (#10467)
kellyyeh Apr 12, 2022
f2acf95
[device config] Adding configuration for default route fallback (#10465)
Ndancejic Apr 12, 2022
da43edc
[arista] Update serdes tuning values for 7800r3_48cqm2 (#9967)
byu343 Apr 12, 2022
12ebe3f
Run tune2fs during initramfs instead of image install (#10536)
saiarcot895 Apr 12, 2022
44cf773
Revert "[docker-ptf]: Upgrade scapy to 2.4.5 in docker-ptf (#10507)" …
ZhaohuiS Apr 13, 2022
e6aa3b8
[Build]: Fix pip version constraint conflict issue (#10525)
xumia Apr 13, 2022
fb25f13
[submodule] Advance sonic-platform-common pointer (#10538)
keboliu Apr 13, 2022
8c10c01
Updated format of generating BUFFER_QUEUE in buffers_defaults templat…
OleksandrKozodoi Apr 13, 2022
812f17d
Add `libgmock` package for `linkmgrd` (#10294)
lolyu Apr 14, 2022
0191300
[Mellanox] Auto correct PSU voltage threshold (WA) (#10394)
Junchao-Mellanox Apr 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .azure-pipelines/azure-pipelines-UpgrateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ parameters:
- centec
- centec-arm64
- generic
- innovium
- marvell-armhf
- mellanox

stages:
- stage: Build
variables:
CACHE_MODE: none
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS='
- name: CACHE_MODE
value: none
- name: VERSION_CONTROL_OPTIONS
value: 'SONIC_VERSION_CONTROL_COMPONENTS='
- template: .azure-pipelines/template-variables.yml@buildimage
jobs:
- template: azure-pipelines-build.yml
parameters:
Expand Down Expand Up @@ -77,14 +79,14 @@ stages:
default_platform=broadcom
artifacts=$(find $(Pipeline.Workspace) -maxdepth 1 -type d -name 'sonic-buildimage.*' | grep -v "sonic-buildimage.${default_platform}")
echo "artifacts$artifacts"
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/versions target/
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/target/versions target/
make freeze FREEZE_VERSION_OPTIONS=-r
find files/build/versions
ordered_artifacts=$(echo "$artifacts" | grep -v -E "arm64|armhf" && echo "$artifacts" | grep -E "arm64|armhf")
for artifact in $ordered_artifacts
do
rm -rf target/versions
cp -r $artifact/versions target/
cp -r $artifact/target/versions target/
OPTIONS="-a -d"
[[ "$artifact" == *arm64* || "$artifact" == *armhf* ]] && OPTIONS="-d"
make freeze FREEZE_VERSION_OPTIONS="$OPTIONS"
Expand Down
2 changes: 2 additions & 0 deletions .azure-pipelines/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
swi_image: yes

- name: broadcom
timeoutInMinutes: 1440
variables:
dbg_image: yes
swi_image: yes
Expand Down Expand Up @@ -131,3 +132,4 @@ jobs:
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).bin
fi
displayName: "Build sonic image"
- template: check-dirty-version.yml
16 changes: 16 additions & 0 deletions .azure-pipelines/check-dirty-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:
- script: |
. functions.sh
SONIC_VERSION=$(sonic_get_version)
echo "SONIC_VERSION=$SONIC_VERSION"
if [[ "$SONIC_VERSION" == *dirty* ]]; then
# Print the detail dirty info
git status --untracked-files=no -s --ignore-submodules

# Exit with error, if it is a PR build
if [ "$(Build.Reason)" == "PullRequest" ]; then
echo "Build failed for the dirty version: $SONIC_VERSION" 1>&2
exit 1
fi
fi
displayName: "Check the dirty version"
7 changes: 7 additions & 0 deletions .azure-pipelines/docker-sonic-slave-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

schedules:
- cron: "0 8 * * *"
Expand Down
7 changes: 7 additions & 0 deletions .azure-pipelines/docker-sonic-slave-armhf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

schedules:
- cron: "0 8 * * *"
Expand Down
23 changes: 11 additions & 12 deletions .azure-pipelines/docker-sonic-slave-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

parameters:
- name: arch
type: string
Expand Down Expand Up @@ -45,7 +37,10 @@ jobs:
pool: ${{ parameters.pool }}
steps:
- template: cleanup.yml
- template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: template-clean-sonic-slave.yml
- ${{ else }}:
- template: '/.azure-pipelines/template-clean-sonic-slave.yml@buildimage'
- checkout: self
clean: true
submodules: recursive
Expand Down Expand Up @@ -106,9 +101,13 @@ jobs:
containerRegistry: ${{ parameters.registry_conn }}
repository: $(VARIABLE_SLAVE_BASE_IMAGE)
command: push
tags: |
$(VARIABLE_SLAVE_BASE_TAG)
latest
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
tags: |
$(VARIABLE_SLAVE_BASE_TAG)
latest
${{ else }}:
tags: |
$(VARIABLE_SLAVE_BASE_TAG)
- ${{ if ne(parameters.arch, 'amd64') }}:
- task: Docker@2
condition: ne(variables['Build.Reason'], 'PullRequest')
Expand Down
24 changes: 19 additions & 5 deletions .azure-pipelines/docker-sonic-slave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

schedules:
- cron: "0 8 * * *"
Expand Down Expand Up @@ -53,8 +60,15 @@ stages:
- ${{ each dist in parameters.dists }}:
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
- ${{ each arch in parameters.arches }}:
- template: docker-sonic-slave-template.yml
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: docker-sonic-slave-template.yml
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
- ${{ else }}:
- template: '/.azure-pipelines/docker-sonic-slave-template.yml@buildimage'
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
11 changes: 11 additions & 0 deletions .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ schedules:
- 201911
- 201811

resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

trigger: none
pr: none

variables:
- template: .azure-pipelines/template-variables.yml@buildimage

stages:
- stage: Build
pool: sonicbld
Expand Down
6 changes: 4 additions & 2 deletions .azure-pipelines/template-clean-sonic-slave.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
steps:
- script: |
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
[ -n "$containers" ] && docker container rm -f containers
set -x
containers=$(docker container ls -aq)
[ -n "$containers" ] && docker container rm -f $containers
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
images=$(docker images 'sonic-slave-*' -a -q)
[ -n "$images" ] && docker rmi -f $images
exit 0
displayName: 'Cleanup sonic slave'
2 changes: 2 additions & 0 deletions .azure-pipelines/template-variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
variables:
DEFAULT_CONTAINER_REGISTRY: 'publicmirror.azurecr.io'
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
[submodule "src/redis-dump-load"]
path = src/redis-dump-load
url = https://github.com/p/redis-dump-load.git
[submodule "src/scapy"]
path = src/scapy
url = https://github.com/secdev/scapy.git
[submodule "platform/mellanox/mlnx-sai/SAI-Implementation"]
path = platform/mellanox/mlnx-sai/SAI-Implementation
url = https://github.com/Mellanox/SAI-Implementation
Expand Down
9 changes: 9 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,18 @@ resources:
type: github
name: Azure/sonic-mgmt
endpoint: build
- repository: buildimage
type: github
name: Azure/sonic-buildimage
endpoint: build
ref: master

variables:
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: .azure-pipelines/template-variables.yml
- ${{ else }}:
- template: .azure-pipelines/template-variables.yml@buildimage
- name: CACHE_MODE
value: rcache

Expand Down
2 changes: 1 addition & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'setup
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'wheel==0.35.1'

# docker Python API package is needed by Ansible docker module as well as some SONiC applications
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docker==4.3.1'
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docker==5.0.3'

# Install scapy
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'scapy==2.4.4'
Expand Down
66 changes: 66 additions & 0 deletions device/accton/x86_64-accton_as4630_54pe-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"XCVR":
{
"xcvr_present":
{
"i2c":
{
"valmap-SFP28": {"1":true, "0":false },
"valmap-QSFP28": {"1":true, "0":false}
}
}
},

"PSU":
{
"psu_present":
{
"i2c":
{
"valmap": { "1":true, "0":false }
}
},

"psu_power_good":
{
"i2c":
{
"valmap": { "1": true, "0":false }
}
},

"psu_fan_dir":
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
}
},

"PSU_FAN_MAX_SPEED":"18000"
},

"FAN":
{
"direction":
{
"i2c":
{
"valmap": {"1":"EXHAUST", "0":"INTAKE"}
}
},

"present":
{
"i2c":
{
"valmap": {"1":true, "0":false}
}
},

"duty_cycle_to_pwm": "lambda dc: ((dc*100.0)/625)",

"pwm_to_duty_cycle": "lambda pwm: ((pwm*625.0)/100)"
}

}
Empty file.
67 changes: 67 additions & 0 deletions device/accton/x86_64-accton_as7326_56x-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{

"XCVR":
{
"xcvr_present":
{
"i2c":
{
"valmap-SFP": {"1":true, "0":false },
"valmap-SFP28": {"1":true, "0":false },
"valmap-QSFP28": {"1":true, "0":false}
}
}
},
"PSU":
{
"psu_present":
{
"i2c":
{
"valmap": { "1":true, "0":false }
}
},

"psu_power_good":
{
"i2c":
{
"valmap": { "1": true, "0":false }
}
},

"psu_fan_dir":
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
}
},

"PSU_FAN_MAX_SPEED":"18000"
},

"FAN":
{
"direction":
{
"i2c":
{
"valmap": {"1":"INTAKE", "0":"EXHAUST"}
}
},

"present":
{
"i2c":
{
"valmap": {"1":true, "0":false}
}
},

"duty_cycle_to_pwm": "lambda dc: ((dc*100)/625 -1)",

"pwm_to_duty_cycle": "lambda pwm: (((pwm+1)*625+75)/100)"
}

}
Loading