Skip to content

Commit 50c1293

Browse files
committed
Merge remote-tracking branch 'origin/master' into use-chrony-ntp
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2 parents 9a7d4a0 + e04546a commit 50c1293

File tree

225 files changed

+4337
-495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+4337
-495
lines changed

.azure-pipelines/azure-pipelines-UpgrateVersion.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ parameters:
3737
- centec
3838
- centec-arm64
3939
- generic
40-
- marvell-armhf
41-
- marvell-arm64
40+
- marvell-prestera-armhf
41+
- marvell-prestera-arm64
4242
- mellanox
4343
- pensando
4444
- nvidia-bluefield

.azure-pipelines/azure-pipelines-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,23 @@ jobs:
9494
variables:
9595
dbg_image: yes
9696

97-
- name: marvell-armhf
97+
- name: marvell-prestera-armhf
9898
${{ if not(parameters.qemuOrCrossBuild) }}:
9999
pool: sonicbld-armhf
100100
timeoutInMinutes: 2880
101101
variables:
102-
PLATFORM_NAME: marvell
102+
PLATFORM_NAME: marvell-prestera
103103
PLATFORM_ARCH: armhf
104104

105-
- name: marvell-arm64
105+
- name: marvell-prestera-arm64
106106
${{ if not(parameters.qemuOrCrossBuild) }}:
107107
pool: sonicbld-arm64
108108
timeoutInMinutes: 2880
109109
variables:
110-
PLATFORM_NAME: marvell
110+
PLATFORM_NAME: marvell-prestera
111111
PLATFORM_ARCH: arm64
112112

113-
- name: marvell
113+
- name: marvell-prestera
114114

115115
- name: mellanox
116116
variables:

.azure-pipelines/azure-pipelines-image-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- script: |
3737
[ -n "$OVERRIDE_BUILD_OPTIONS" ] && OVERRIDE_BUILD_OPTIONS=$(OVERRIDE_BUILD_OPTIONS)
3838
BUILD_OPTIONS="$(BUILD_OPTIONS) $OVERRIDE_BUILD_OPTIONS"
39-
if [ -n "$(CACHE_MODE)" ] && echo $(PLATFORM_AZP) | grep -E -q "^(vs|broadcom|mellanox|marvell-armhf|marvell-arm64|vpp)$"; then
39+
if [ -n "$(CACHE_MODE)" ] && echo $(PLATFORM_AZP) | grep -E -q "^(vs|broadcom|mellanox|marvell-prestera-armhf|marvell-prestera-arm64|vpp)$"; then
4040
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=$(CACHE_MODE) SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/$(PLATFORM_AZP)"
4141
BUILD_OPTIONS="$BUILD_OPTIONS $CACHE_OPTIONS"
4242
fi

.azure-pipelines/build-template.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ parameters:
44
values:
55
- broadcom
66
- centec-arm64
7-
- marvell-armhf
7+
- marvell-prestera-armhf
88
- mellanox
99
- vs
1010

@@ -21,7 +21,7 @@ parameters:
2121
values:
2222
- brcm
2323
- centec-arm64
24-
- marvell-armhf
24+
- marvell-prestera-armhf
2525
- mlnx
2626
- vs
2727

.azure-pipelines/docker-sonic-mgmt.yml

+41-5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ pr:
2020
include:
2121
- dockers/docker-sonic-mgmt
2222

23+
resources:
24+
repositories:
25+
- repository: sonic-mgmt
26+
type: github
27+
name: sonic-net/sonic-mgmt
28+
endpoint: sonic-net
29+
2330
parameters:
2431
- name: registry_url
2532
type: string
@@ -46,7 +53,6 @@ stages:
4653
- bash: |
4754
set -xe
4855
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data src/sonic-dash-api
49-
5056
make SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y configure PLATFORM=generic
5157
make -f Makefile.work BLDENV=bullseye SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y LEGACY_SONIC_MGMT_DOCKER=y target/docker-sonic-mgmt.gz
5258
cp target -r $(Build.ArtifactStagingDirectory)/target
@@ -55,14 +61,44 @@ stages:
5561
env:
5662
REGISTRY_SERVER: ${{ parameters.registry_url }}
5763
displayName: Build docker-sonic-mgmt.gz
64+
65+
- publish: $(Build.ArtifactStagingDirectory)
66+
artifact: 'docker-sonic-mgmt'
67+
displayName: "Archive docker image sonic-mgmt"
68+
69+
- job: validate_docker_image_and_upload
70+
pool: sonicbld-1es
71+
timeoutInMinutes: 360
72+
dependsOn: Build
73+
steps:
74+
- checkout: sonic-mgmt
75+
clean: true
76+
displayName: 'Checkout sonic-mgmt'
77+
78+
- download: current
79+
artifact: 'docker-sonic-mgmt'
80+
displayName: "Download docker image sonic-mgmt"
81+
82+
- script: |
83+
set -ex
84+
85+
docker load -i $(Pipeline.Workspace)/docker-sonic-mgmt/target/docker-sonic-mgmt.gz
86+
87+
cd ansible
88+
sudo ./setup-management-network.sh -d
89+
cd ../
90+
docker rm -f sonic-mgmt
91+
92+
./setup-container.sh -n sonic-mgmt -d /data -i docker-sonic-mgmt -v
93+
94+
docker exec sonic-mgmt bash -c "echo 'Container is running' && ps aux"
95+
displayName: 'Setup sonic-mgmt docker container and verify'
96+
5897
- task: Docker@2
5998
displayName: Upload image
99+
condition: succeeded()
60100
inputs:
61101
containerRegistry: ${{ parameters.registry_conn }}
62102
repository: docker-sonic-mgmt
63103
command: push
64104
tags: latest
65-
- publish: $(Build.ArtifactStagingDirectory)
66-
artifact: 'docker-sonic-mgmt'
67-
displayName: "Archive docker image sonic-mgmt"
68-

.azure-pipelines/official-build-cache.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ stages:
4545
variables:
4646
docker_syncd_rpc_image: yes
4747
platform_rpc: mlnx
48-
- name: marvell-armhf
48+
- name: marvell-prestera-armhf
4949
pool: sonicbld-armhf
5050
timeoutInMinutes: 1200
5151
variables:
52-
PLATFORM_NAME: marvell
52+
PLATFORM_NAME: marvell-prestera
5353
PLATFORM_ARCH: armhf

.gitmodules

+10-7
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@
118118
[submodule "src/sonic-dash-api"]
119119
path = src/sonic-dash-api
120120
url = https://github.com/sonic-net/sonic-dash-api.git
121-
[submodule "platform/marvell/mrvl-prestera"]
122-
path = platform/marvell/mrvl-prestera
123-
url = https://github.com/Marvell-switching/mrvl-prestera.git
124-
[submodule "platform/marvell/sonic-platform-marvell"]
125-
path = platform/marvell/sonic-platform-marvell
126-
url = https://github.com/Marvell-switching/sonic-platform-arm64.git
127121
[submodule "src/sonic-stp"]
128122
path = src/sonic-stp
129123
url = https://github.com/sonic-net/sonic-stp
@@ -132,4 +126,13 @@
132126
url = https://github.com/Marvell-switching/sonic-platform-marvell.git
133127
[submodule "platform/vpp"]
134128
path = platform/vpp
135-
url = https://github.com/sonic-net/sonic-platform-vpp.git
129+
url = https://github.com/sonic-net/sonic-platform-vpp.git
130+
[submodule "src/sonic-framework/gnoi"]
131+
path = src/sonic-framework/gnoi
132+
url = https://github.com/openconfig/gnoi
133+
[submodule "platform/marvell-prestera/mrvl-prestera"]
134+
path = platform/marvell-prestera/mrvl-prestera
135+
url = https://github.com/Marvell-switching/mrvl-prestera.git
136+
[submodule "platform/marvell-prestera/sonic-platform-marvell"]
137+
path = platform/marvell-prestera/sonic-platform-marvell
138+
url = https://github.com/Marvell-switching/sonic-platform-arm64.git

README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[![Centec(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec-arm64?branchName=master&label=Centec-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=140&branchName=master)
66
[![Marvell-Teralynx](https://dev.azure.com/mssonic/build/_apis/build/status/innovium/Azure.sonic-buildimage.official.marvell-teralynx?branchName=master&label=Marvell-Teralynx)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=master)
77
[![Mellanox](https://dev.azure.com/mssonic/build/_apis/build/status/mellanox/Azure.sonic-buildimage.official.mellanox?branchName=master&label=Mellanox)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=139&branchName=master)
8-
[![Marvell(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-armhf?branchName=master&label=Marvell-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=master)
9-
[![Marvell(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-arm64?branchName=master&label=Marvell-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=999&branchName=master)
8+
[![Marvell-Prestera(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell-prestera/Azure.sonic-buildimage.official.marvell-prestera-armhf?branchName=master&label=Marvell-Prestera-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=master)
9+
[![Marvell-Prestera(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell-prestera/Azure.sonic-buildimage.official.marvell-prestera-arm64?branchName=master&label=Marvell-Prestera-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=999&branchName=master)
1010
[![Nephos](https://dev.azure.com/mssonic/build/_apis/build/status/nephos/Azure.sonic-buildimage.official.nephos?branchName=master&label=Nephos)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=149&branchName=master)
1111
[![Nvidia-Bluefield](https://dev.azure.com/mssonic/build/_apis/build/status/nvidia/Azure.sonic-buildimage.official.nvidia-bluefield?branchName=master&label=Nvidia-Bluefield)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=1665&branchName=master)
1212
[![Pensando](https://dev.azure.com/mssonic/build/_apis/build/status/pensando/Azure.sonic-buildimage.official.pensando?branchName=master&label=Pensando)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=1366&branchName=master)
@@ -209,12 +209,12 @@ The supported ASIC vendors are:
209209

210210
* PLATFORM=barefoot
211211
* PLATFORM=broadcom
212-
* PLATFORM=marvell
212+
* PLATFORM=marvell-prestera
213+
* PLATFORM=marvell-teralynx
213214
* PLATFORM=mellanox
214215
* PLATFORM=centec
215216
* PLATFORM=nephos
216217
* PLATFORM=nvidia-bluefield
217-
* PLATFORM=marvell-teralynx
218218
* PLATFORM=vs
219219

220220
## Usage for ARM Architecture
@@ -235,22 +235,22 @@ make target/sonic-[ASIC_VENDER]-armhf.bin
235235
_example:_
236236

237237
```shell
238-
make configure PLATFORM=marvell PLATFORM_ARCH=armhf
239-
make target/sonic-marvell-armhf.bin
238+
make configure PLATFORM=marvell-prestera PLATFORM_ARCH=armhf
239+
make target/sonic-marvell-prestera-armhf.bin
240240
```
241241

242-
To build Arm32 bit for (ARMHF) Marvell platform on amd64 host for debian buster
242+
To build Arm32 bit for (ARMHF) Marvell Prestera platform on amd64 host for debian buster
243243
using cross-compilation, run the following commands:
244244

245245
```shell
246246
# Execute make configure once to configure ASIC and ARCH for cross-compilation build
247247

248248
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 \
249-
make configure PLATFORM=marvell PLATFORM_ARCH=armhf
249+
make configure PLATFORM=marvell-prestera PLATFORM_ARCH=armhf
250250

251251
# Execute Arm32 build using cross-compilation environment
252252

253-
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 make target/sonic-marvell-armhf.bin
253+
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 make target/sonic-marvell-prestera-armhf.bin
254254
```
255255

256256
Running the above Arm32 build using cross-compilation instead of qemu emulator
@@ -265,7 +265,7 @@ make configure PLATFORM=[ASIC_VENDOR] PLATFORM_ARCH=arm64
265265

266266
# example:
267267

268-
make configure PLATFORM=marvell PLATFORM_ARCH=arm64
268+
make configure PLATFORM=marvell-prestera PLATFORM_ARCH=arm64
269269
```
270270

271271
**NOTE**:
@@ -374,6 +374,8 @@ on the SAI version for each SONiC release.
374374
and Nephos switch ASIC (gzip tar archive)
375375
* docker-syncd-mrvl-teralynx.gz: docker image for the daemon to sync database
376376
and Marvell-Teralynx switch ASIC (gzip tar archive)
377+
* docker-syncd-mrvl-prestera.gz: docker image for the daemon to sync database
378+
and Marvell-Prestera switch ASIC (gzip tar archive)
377379
* docker-sonic-p4.gz: docker image for all-in-one for p4 software switch
378380
(gzip tar archive)
379381
* docker-sonic-vs.gz: docker image for all-in-one for software virtual switch

azure-pipelines.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ stages:
7878
dbg_image: yes
7979
docker_syncd_rpc_image: yes
8080
platform_rpc: mlnx
81-
- name: marvell-arm64
81+
- name: marvell-prestera-arm64
8282
pool: sonicbld-arm64
8383
variables:
84-
PLATFORM_NAME: marvell
84+
PLATFORM_NAME: marvell-prestera
8585
PLATFORM_ARCH: arm64
86-
- name: marvell-armhf
86+
- name: marvell-prestera-armhf
8787
pool: sonicbld-armhf
8888
timeoutInMinutes: 1200
8989
variables:
90-
PLATFORM_NAME: marvell
90+
PLATFORM_NAME: marvell-prestera
9191
PLATFORM_ARCH: armhf
9292
INCLUDE_RESTAPI: y
9393

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
marvell
1+
marvell-prestera
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"DEVICE_METADATA": {
3+
"localhost": {
4+
"create_only_config_db_buffers": "true"
5+
}
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
QUEUE_WATERMARK_STAT_COUNTER,PG_WATERMARK_STAT_COUNTER,PFC_WD

0 commit comments

Comments
 (0)