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

[minigraph] set admin_status to down if port not in minigraph #14

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
ad88700
[docker-fpm-frr]: TSA/B/C changes for multi-asic (#6510)
judyjoseph Feb 12, 2021
4b10924
[SwSS] Disabled the autorestart of process `coppmgrd`. (#6774)
yozhao101 Feb 12, 2021
88961f1
[armhf build] Fix azure-storage dependency on cryptography package (#…
dflynn-Nokia Feb 14, 2021
c651fbc
[platform] Update path to udevprefix.conf file (#6779)
jleveque Feb 14, 2021
19ecdbb
[sonic-utilities] Update submodule (#6777)
jleveque Feb 14, 2021
97c605f
[swss]: Clear MUX-related state DB tables on start (#6759)
theasianpianist Feb 14, 2021
f6bee73
Stop teamd service before syncd (#6755)
shlomibitton Feb 15, 2021
7790a74
Support shared headroom pool for Microsoft SKUs (#6366)
stephenxs Feb 16, 2021
6998aef
[Mellanox] Update SDK to 4.4.2318, FW to *.2008.2314 (#6794)
volodymyrsamotiy Feb 17, 2021
bf83b6c
Enable SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS counter by def…
ayurkiv-nvda Feb 17, 2021
3fe8382
[build] Install Python 3 scapy version 2.4.4 in host OS (#6799)
jleveque Feb 17, 2021
89a41e9
[sonic-platform-common] sub_module update (#6797)
vdahiya12 Feb 17, 2021
02cc486
Remove dummy MMU profiles for Arista-7050CX3-32S-C32 and Arista-7050C…
vmittal-msft Feb 17, 2021
2e42ecb
[StreamingTelemetry] add noTLS support for debug purpose (#6704)
pra-moh Feb 18, 2021
2ef5bd2
Add mirrors for reproducible build (#6813)
xumia Feb 18, 2021
951ce67
[frr]: upgrade frr to frr-7.5-s3 tag (#6807)
shi-su Feb 18, 2021
ceacdb4
[sonic-platform-daemons] sub_module update (#6814)
vdahiya12 Feb 18, 2021
ea100d2
[Mellanox][SAI] update submodule pointer (#6806)
volodymyrsamotiy Feb 18, 2021
2076260
Fix for Mellanox-SN4600C-D112C8 SKU (#6817)
shlomibitton Feb 18, 2021
2fc37dd
[sonic-swss-common] Submodule Update (#6812)
tahmed-dev Feb 18, 2021
5a49a0f
[multi-asic][vs]: Update topology script to retrieve hwsku from minig…
SuvarnaMeenakshi Feb 19, 2021
5fb374b
[Arista] Driver and platform update (#6468)
Staphylo Feb 19, 2021
b39adef
Submodule update for restapi (#6808)
prsunny Feb 19, 2021
ce3b2cb
[radv] Disable radv for specific deployment_id (#6830)
qiluo-msft Feb 20, 2021
d5238ae
[pcie.yaml] Move pcie configuration file path to platform directory (…
sujinmkang Feb 21, 2021
5aba5cc
[doc]: fix some typos (#6838)
qiluo-msft Feb 22, 2021
c8ed367
[minigraph] Support tagged VlanInterface if attached to multiple vlan…
qiluo-msft Feb 22, 2021
7ec4d15
[BFN] Fix MTU for internal interface (#6783)
msosyak Feb 22, 2021
3aee87d
Dell S6000,S6100 system health changes (#6788)
aravindmani-1 Feb 23, 2021
a2b7cdf
[build]: fixed BFN target build (#6826)
Feb 23, 2021
f77157f
[baseimage] add ipintutil in sudoer file (#6845)
arlakshm Feb 23, 2021
cbe7493
[Nokia ixs7215] Platform API 2.0 improvements (#6787)
dflynn-Nokia Feb 23, 2021
d76d74e
[snmpagent] Update submodule pointer for snmpagent (#6850)
Junchao-Mellanox Feb 23, 2021
8ec7580
[barefoot][device][platform] Moved pcie.yaml (#6862)
vboykox Feb 23, 2021
4068944
[MACsec]: Set MACsec feature to be auto-start (#6678)
Pterosaur Feb 23, 2021
4ddf3fc
[build]: .gitmodules: Fix make init (#6828)
donNewtonAlpha Feb 23, 2021
d88e8cf
[multi-asic][vs]: Add new multi-asic vs hwsku with four asics (#6558)
SuvarnaMeenakshi Feb 23, 2021
8c4fd2b
[barefoot][platform] Refactor legacy scripts (#6871)
vboykox Feb 24, 2021
a472cab
[Docker] Added support for python2 (#6753)
deran1980 Feb 24, 2021
51eee8c
Add new SKU of Mellanox-SN2700-D40C8S8 (#6876)
dprital Feb 24, 2021
3abd216
[yang] update crm yang model for dynamic port breakout (#6395)
dmytroxshevchuk Feb 24, 2021
a37824f
[dell/s6000]: Enable graceful reboot in S6000 (#6835)
rkdevi27 Feb 24, 2021
cf55ca1
[Arista] Update driver submodules (#6873)
Staphylo Feb 24, 2021
142d93b
DellEMC: S5232, Z9264, Z9332 - Platform API fixes (#6842)
ArunSaravananBalachandran Feb 24, 2021
e9b27f9
[ci]: add official build for mellanox
lguohan Feb 24, 2021
72c4203
Use 'importlib' module in lieu of deprecated 'imp' module (#6832)
jleveque Feb 25, 2021
a582c13
[Ruijie] Add ruijie platform & device (#4954)
tim-rj Feb 25, 2021
2a339fa
[submodule]: update telemetry submodule (#6810)
pra-moh Feb 25, 2021
d3040bd
Add azure pipelines for reproducible build (#6870)
xumia Feb 25, 2021
5aee92e
[Mellanox] Add support for SN4600 system (#6879)
DavidZagury Feb 25, 2021
3de6a67
[Mellanox] Add hw-mgmt patch for SimX platform adaptation (#6782)
shlomibitton Feb 25, 2021
e179ec2
[services] introduce sonic.target (#5705)
stepanblyschak Feb 25, 2021
12c03c4
[sonic_debian_exntesion] install docker_image_ctl.j2 template in the …
stepanblyschak Feb 25, 2021
965f490
[Marvell] Updated armhf SAI deb version info. (#6863)
rajkumar38 Feb 25, 2021
c66cbc1
[multi-asic] Enhanced iptable default rules (#6765)
abdosi Feb 25, 2021
ab785f5
DellEMC:Fix EEPROM read error (#6736)
aravindmani-1 Feb 25, 2021
66e3e51
[Platform] Accton add to support as4630-54te platform. (#6683)
ec-michael-shih Feb 25, 2021
516ff8b
[Mellanox] Ensure concrete platform API classes call base class initi…
jleveque Feb 25, 2021
ac15a42
[DellEMC] Ensure concrete platform API classes call base class initia…
jleveque Feb 25, 2021
c617825
[Celestica] Ensure concrete platform API classes call base class init…
jleveque Feb 25, 2021
21f5e12
[Supervisord] Deduplicate the alerting messages of critical processes…
yozhao101 Feb 25, 2021
a520cec
[multi-asic] BBR support on internal-peers for multi-asic platfroms. …
abdosi Feb 26, 2021
18263c9
[DPB|master] Update Dynamic Port Breakout Logic for flexible alias su…
Feb 26, 2021
923dc52
[Mellanox]: Fix PCIEd config for SN4600 (#6894)
nazariig Feb 26, 2021
39b1c12
[Mellanox]: Fix PCIEd config for SN4600c (#6892)
nazariig Feb 26, 2021
833584e
[minigraph] For egress ACL attaching to vlan, break them into vlan me…
qiluo-msft Feb 26, 2021
30b6668
Changes in FRR temapltes for multi-asic (#6901)
abdosi Feb 27, 2021
abb3867
[openconfig_acl] Add SONiC ACL extension to open config ACL model (#6…
daall Feb 28, 2021
b4fdd5f
[submodule]: update sonic-linux-kernel (#6908)
keboliu Mar 1, 2021
5d48581
[build] No longer install scpay Debian package in host (#6919)
jleveque Mar 1, 2021
0e71d82
[Mellanox] Update hw-management package to version 7.0010.2000 (#6692)
keboliu Mar 1, 2021
bc1ed0a
[Mellanox]: Fix PCIEd configuration files for SN3700 and SN3800 syste…
liorghub Mar 1, 2021
0820201
[DPB] [Mellanox] added capability files for SN4600 platform (#6887)
DavidZagury Mar 1, 2021
20f0f06
Making PDDF 2.0 base classes python3 compliant (#6924)
FuzailBrcm Mar 1, 2021
0f1d41d
[DellEMC:Z9332f] Modify SKU-DellEMC-Z9332f-M-O16C64 to support differ…
srideepDell Mar 1, 2021
724785d
[DPB] [Mellanox] Fix files for SN4600 platform (#6930)
DavidZagury Mar 2, 2021
49484a7
[minigraph] set admin_status to down if port not in minigraph
dmytroxshevchuk Feb 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions .azure-pipelines/azure-pipelines-Official.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger: none
pr: none

schedules:
- cron: "0 0 * * *"
displayName: Daily Build
branches:
include:
- 202012
always: true

pool: sonicbld

stages:
- stage: Build
jobs:
- template: azure-pipelines-build.yml
parameters:
buildOptions: 'SONIC_CONFIG_BUILD_JOBS=1 SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
postSteps:
- script: |
make freeze
git status files/build/versions
git add files/build/versions
git diff HEAD files/build/versions
displayName: "Show git diff"
109 changes: 109 additions & 0 deletions .azure-pipelines/azure-pipelines-UpgrateVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger: none
pr: none

schedules:
- cron: "0 0 * * *"
displayName: Daily Build
branches:
include:
- 202012
always: true

pool: sonicbld

stages:
- stage: Build
jobs:
- template: azure-pipelines-build.yml
parameters:
buildSlave: y
- stage: UpgradeVersions
jobs:
- job: UpgradeVersions
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: |
if [ -z "$(which gh)" ]; then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh
fi
displayName: 'Install gh'
- checkout: self
displayName: 'Checkout code'
- download: current
patterns: '**/versions-*'
- script: |
mkdir -p target
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/
make freeze FREEZE_VERSION_OPTIONS=-r
find files/build/versions
for artifact in $artifacts
do
rm -rf target/versions
cp -r $artifact/versions target/
make freeze FREEZE_VERSION_OPTIONS="-a -d"
done
git diff files/build/versions
displayName: 'Freeze Versions'
- script: |
if [ -z "$GIT_USER" ]; then
echo "Skipped to send the pull request, GIT_USER not set."
exit 0
fi
GIT_STATUS=$(git status --porcelain files/build/versions)
if [ -z "$GIT_STATUS" ]; then
echo "Skipped to send the pull request, no version change in files/build/versions"
exit 0
fi
if [ ! -d "$HOME" ]; then
sudo mkdir -p $HOME
sudo chown -R $(id -un):$(id -gn) $HOME
fi
SOURCE_BRANCH=$(Build.SourceBranch)
REPO_NAME=$(Build.Repository.Name)
[ -z "$GIT_REPO" ] && GIT_REPO=${REPO_NAME#*/}
BRANCH_NAME=repd/versions/${SOURCE_BRANCH#refs/heads/}
echo '#!/bin/bash' > git_env_password.sh
echo 'echo $GIT_PASSWORD' >> git_env_password.sh
chmod a+x git_env_password.sh
export GIT_ASKPASS=./git_env_password.sh

git config user.name $GIT_USER
git config credential.https://gh.neting.cc.username $GIT_USER
git add files/build/versions
git commit -m "Update SONiC version files"
git checkout -b $BRANCH_NAME
git remote add remote https://github.com/$GIT_USER/$GIT_REPO
git push remote HEAD:refs/heads/$BRANCH_NAME -f
git branch -u remote/$BRANCH_NAME

echo $GIT_PASSWORD | gh auth login --with-token
TITLE="Upgrade SONiC Versions"
BODY="Upgrade SONiC Versions"
RET=0
if ! gh pr create -t "$TITLE" -b "$BODY" -B $(Build.SourceBranch) -R $(Build.Repository.Name) > pr.log 2>&1; then
if ! grep -q "already exists" pr.log; then
RET=1
fi
fi
cat pr.log
exit $RET
env:
GIT_USER: $(GIT_USER)
GIT_PASSWORD: $(GIT_PASSWORD)
displayName: 'Send Pull Request'
- publish: $(System.DefaultWorkingDirectory)/files/build/versions
artifact: 'sonic-buildimage.versions'
displayName: 'Archive SONiC versions'

72 changes: 72 additions & 0 deletions .azure-pipelines/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
parameters:
- name: 'jobFilters'
type: object
default: ''
- name: 'buildOptions'
type: string
default: 'SONIC_CONFIG_BUILD_JOBS=1'
- name: 'buildSlave'
type: string
default: 'n'
- name: 'postSteps'
type: stepList
default: []

jobs:
- template: azure-pipelines-job-groups.yml
parameters:
jobFilters: ${{ parameters.jobFilters }}
preSteps:
- script: |
containers=$(docker container ls | grep "sonic-slave" | awk '{ print $1 }')
if [ ! -z "$containers" ]; then
docker container kill $containers || true
sleep 5
fi
if [ "${{ parameters.buildSlave }}" == "y" ]; then
images=$(docker images 'sonic-slave-*' -a -q)
[ ! -z "$images" ] && docker rmi -f $images
fi
sudo rm -rf $(ls -A1)
displayName: 'Init'
- checkout: self
submodules: recursive
displayName: 'Checkout code'
- script: |
make ${{ parameters.buildOptions }} PLATFORM=$GROUP_NAME configure
displayName: 'Make configure'
postSteps:
- ${{ parameters.postSteps }}
- publish: $(System.DefaultWorkingDirectory)/target
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)'
displayName: "Archive sonic image"
jobGroups:
- name: vs
script: |
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
make ${{ parameters.buildOptions }} target/sonic-vs.img.gz
- name: broadcom
script: |
make ${{ parameters.buildOptions }} target/sonic-broadcom.bin target/sonic-aboot-broadcom.swi
- name: barefoot
script: |
make ${{ parameters.buildOptions }} target/sonic-barefoot.bin target/sonic-aboot-barefoot.swi
- name: centec
script: |
make ${{ parameters.buildOptions }} INSTALL_DEBUG_TOOLS=y target/sonic-centec.bin
mv target/sonic-centec.bin target/sonic-centec-dbg.bin
make ${{ parameters.buildOptions }} target/sonic-centec.bin
make ${{ parameters.buildOptions }} ENABLE_SYNCD_RPC=y target/docker-syncd-centec-rpc.gz
- name: innovium
script: |
make ${{ parameters.buildOptions }} SONIC_CONFIG_BUILD_JOBS=1 target/sonic-innovium.bin
- name: mellanox
script: |
make ${{ parameters.buildOptions }} target/sonic-mellanox.bin
- name: mellanox
extName: _rpc
script: |
make ${{ parameters.buildOptions }} ENABLE_SYNCD_RPC=y all
- name: nephos
script: |
make ${{ parameters.buildOptions }} target/sonic-nephos.bin
53 changes: 53 additions & 0 deletions .azure-pipelines/azure-pipelines-job-groups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
parameters:
- name: 'preSteps'
type: stepList
default: []
- name: "postSteps"
type: stepList
default: []
- name: 'jobGroups'
type: object
default: []
- name: 'jobVariables'
type: object
default: {}
- name: 'scriptEnv'
type: object
default: ''
- name: 'timeoutInMinutes'
type: 'number'
default: 1440
- name: 'jobFilters'
type: object
default: ''

jobs:
- ${{ each jobGroup in parameters.jobGroups }}:
- ${{ if or(eq(parameters.jobFilters, ''), containsValue(parameters.jobFilters, jobGroup.name)) }}:
- job: ${{ replace(format('{0}{1}', jobGroup.name, jobGroup.extName), '-', '_') }}
${{ each pair in jobGroup }}:
${{ if not(in(pair.key, 'job', 'name', 'extName', 'variables', 'steps', 'script', 'scriptEnv')) }}:
${{ pair.key }}: ${{ pair.value }}
${{ if eq(jobGroup.timeoutInMinutes, '') }}:
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
variables:
GROUP_NAME: ${{ jobGroup.name }}
GROUP_EXTNAME: '${{ jobGroup.extName }}'
GROUP_NAMES: ${{ join(',', parameters.jobGroups.*.name ) }}
${{ if ne(jobGroup.variables, '') }}:
${{ jobGroup.variables }}
${{ each para in parameters.jobvariables }}:
${{ if eq(jobGroup.variables[para.key], '') }}:
${{ para.key }}: ${{ para.value }}
steps:
- ${{ parameters.preSteps }}
- ${{ if ne(jobGroup.script, '') }}:
- script: |
${{ jobGroup.script }}
env:
${{ if ne(parameters.scriptEnv, '') }}:
${{ parameters.scriptEnv }}
displayName: 'JobScript'
- ${{ if ne(jobGroup.steps, '') }}:
- ${{ jobGroup.steps }}
- ${{ parameters.postSteps }}
8 changes: 8 additions & 0 deletions .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ stages:
raw_image: true
sync_rpc_image: true

- template: build-template.yml
parameters:
platform: mellanox
platform_short: mlnx
cache_mode: wcache
dbg_image: true
sync_rpc_image: true

- template: build-template.yml
parameters:
platform: vs
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ platform/**/*-none-any.whl
platform/**/.pybuild
platform/**/debian/*
platform/**/build
platform/**/*.ko
platform/**/*.mod.c
platform/**/*.mod.o
platform/**/*.o
platform/**/*.d
platform/**/*.cmd
platform/**/*.order
platform/broadcom/sonic-platform-modules-dell/s5232f/sonic_platform/ipmihelper.py
platform/broadcom/sonic-platform-modules-dell/s6100/modules/dell_ich.c
platform/broadcom/sonic-platform-modules-dell/s6100/modules/dell_s6100_lpc.c
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
url = https://github.com/aristanetworks/sonic
[submodule "platform/mellanox/hw-management/hw-mgmt"]
path = platform/mellanox/hw-management/hw-mgmt
url = https://github.com/Mellanox/hw-mgmt/
url = https://github.com/Mellanox/hw-mgmt
[submodule "src/redis-dump-load"]
path = src/redis-dump-load
url = https://github.com/p/redis-dump-load.git
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*static anaylsis*:
*static analysis*:

[![Total alerts](https://img.shields.io/lgtm/alerts/g/Azure/sonic-buildimage.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Azure/sonic-buildimage/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Azure/sonic-buildimage.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Azure/sonic-buildimage/context:python)
Expand Down Expand Up @@ -114,7 +114,7 @@ To build SONiC installer image and docker images, run the following commands:
make all

## Usage for ARM Architecture
To build Arm32 bit for (ARMHF) plaform
To build Arm32 bit for (ARMHF) platform
ARM build has dependency in docker version 18,
if docker version is 19, downgrade to 18 as below
sudo apt-get install --allow-downgrades -y docker-ce=5:18.09.0~3-0~ubuntu-xenial
Expand All @@ -134,7 +134,7 @@ To build Arm32 bit for (ARMHF) plaform



To build Arm64 bit for plaform
To build Arm64 bit for platform

# Execute make configure once to configure ASIC and ARCH

Expand Down
4 changes: 3 additions & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
ethtool \
screen \
hping3 \
python-scapy \
tcptraceroute \
mtr-tiny \
locales \
Expand Down Expand Up @@ -432,6 +431,9 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'wheel
# 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'

# Install scapy
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'scapy==2.4.4'

## Note: keep pip installed for maintainance purpose

# Install GCC, needed for building/installing some Python packages
Expand Down
Loading