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

[hostcfgd] [202012] Fixed the brief blackout in hostcfgd using SubscriberStateTable #19

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
…to hostcfg_fix_202012
vivekrnv committed Nov 4, 2021
commit 6aec33267968008b4f799624a4cf156beb442e04
9 changes: 7 additions & 2 deletions .azure-pipelines/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ jobs:
platform_rpc: centec

- name: centec-arm64
pool: sonicbld_8c
pool: sonicbld-arm64
timeoutInMinutes: 2880
variables:
PLATFORM_ARCH: arm64
@@ -78,7 +78,7 @@ jobs:
dbg_image: yes

- name: marvell-armhf
pool: sonicbld_8c
pool: sonicbld-armhf
timeoutInMinutes: 2880
variables:
PLATFORM_ARCH: armhf
@@ -104,6 +104,11 @@ jobs:
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz && mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
fi
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
if [ $(Build.Reason) != 'PullRequest' ];then
gzip -kd target/sonic-vs.img.gz
SONIC_RUN_CMDS="qemu-img convert target/sonic-vs.img -O vhdx -o subformat=dynamic target/sonic-vs.vhdx" make sonic-slave-run
rm target/sonic-vs.img
fi
else
if [ $(dbg_image) == yes ]; then
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin && \
3 changes: 2 additions & 1 deletion .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ jobs:
jobVariables: ${{ parameters.jobVariables }}
preSteps:
- template: cleanup.yml
- ${{ parameters. preSteps }}
- ${{ parameters.preSteps }}
- script: |
if [ -n "$(CACHE_MODE)" ] && echo $(PLATFORM_AZP) | grep -E -q "^(vs|broadcom|mellanox)$"; then
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=$(CACHE_MODE) SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/$(PLATFORM_AZP)"
@@ -36,6 +36,7 @@ jobs:
displayName: "Set cache options"
- checkout: self
submodules: recursive
condition: eq(variables.SKIP_CHECKOUT, '')
displayName: 'Checkout code'
- script: |
BRANCH_NAME=$(Build.SourceBranchName)
64 changes: 64 additions & 0 deletions .azure-pipelines/official-build-cisco-8000.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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

schedules:
- cron: "0 8 * * *"
displayName: Daily midnight build
branches:
include:
- master
- 202012
always: true

trigger: none
pr: none

resources:
repositories:
- repository: cisco-8000
type: github
name: Cisco-8000-sonic/platform-cisco-8000
endpoint: cisco-connection

stages:
- stage: Build
pool: sonic
variables:
CACHE_MODE: wcache
SKIP_CHECKOUT: true
TERM: ''

jobs:
- template: azure-pipelines-build.yml
parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
preSteps:
- checkout: self
submodules: recursive
path: s
displayName: 'Checkout code'
- checkout: cisco-8000
submodules: recursive
path: s/platform/cisco-8000
displayName: 'Checkout cisco-8000'
- script: |
cisco_ref=$(cat platform/checkout/cisco-8000.ini | grep '^ref=' | cut -d= -f2)
echo "The cisco 8000 release version is $cisco_ref"
echo "##vso[task.setvariable variable=cisco.ref]$cisco_ref"
displayName: 'Export cisco release version'
- task: DownloadGitHubRelease@0
inputs:
connection: cisco-connection
userRepository: Cisco-8000-sonic/platform-cisco-8000
defaultVersionType: specificTag
version: $(cisco.ref)
itemPattern: 'artifactory-*.tar.gz'
downloadPath: '$(System.ArtifactsDirectory)'
- script: |
make PLATFORM=cisco-8000 platform/cisco-8000
tar xfz $(System.ArtifactsDirectory)/artifactory-*.tar.gz -C platform/cisco-8000
displayName: 'Setup cisco artifacts'
jobGroups:
- name: cisco-8000
5 changes: 4 additions & 1 deletion Makefile.cache
Original file line number Diff line number Diff line change
@@ -182,7 +182,10 @@ define GET_MOD_DEP_SHA
$(eval $(1)_DEP_FILES_MISSING := $(filter-out $(wildcard $($(1)_DEP_MOD_SHA_FILES)),$($(1)_DEP_MOD_SHA_FILES)) )
$(if $($(1)_DEP_FILES_MISSING), $(warning "[ DPKG ] Dependecy file(s) are not found for $(1) : $($(1)_DEP_FILES_MISSING)))

$(eval $(1)_DEP_MOD_SHA := $(shell git hash-object $($(1)_DEP_MOD_SHA_FILES) \
# Include package dependencies hash values into package hash calculation
$(eval $(1)_DEP_PKGS_SHA := $(foreach dfile,$(1)_MOD_DEP_PKGS,$(dfile)_DEP_MOD_SHA $(dfile)_MOD_HASH))

$(eval $(1)_DEP_MOD_SHA := $(shell bash -c "git hash-object $($(1)_DEP_MOD_SHA_FILES) && echo $($(1)_DEP_PKGS_SHA)" \
| sha1sum | awk '{print substr($$1,0,23);}'))
endef

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_adjust_acl_drop_in_rx_drop=1
sai_verify_incoming_chksum=0
host_as_route_disable=1
use_all_splithorizon_groups=1
riot_enable=1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_issu/b870.6.4.1/
sai_adjust_acl_drop_in_rx_drop=1
sai_verify_incoming_chksum=0
host_as_route_disable=1
use_all_splithorizon_groups=1
riot_enable=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"chassis": {
"Newport": {
"component": {
}
}
}
}
205 changes: 205 additions & 0 deletions device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,209 @@
{
"chassis": {
"name": "Wedge100BF-32X-O-AC-F-BF",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
}
],
"fan_drawers":[
{
"name": "fantray",
"num_fans" : 5,
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
}
]
}
],
"psus": [
{
"name": "PSU 1"
},
{
"name": "PSU 2"
}
],
"thermals": [
{
"name": "com_e_driver-i2c-4-33:memory-temp"
},
{
"name": "com_e_driver-i2c-4-33:cpu-temp"
},
{
"name": "pfe1100-i2c-7-59:temp1"
},
{
"name": "pfe1100-i2c-7-59:temp2"
},
{
"name": "pfe1100-i2c-7-5a:temp1"
},
{
"name": "pfe1100-i2c-7-5a:temp2"
},
{
"name": "tmp75-i2c-3-48:outlet-middle-temp"
},
{
"name": "tmp75-i2c-3-49:inlet-middle-temp"
},
{
"name": "tmp75-i2c-3-4a:inlet-left-temp"
},
{
"name": "tmp75-i2c-3-4b:switch-temp"
},
{
"name": "tmp75-i2c-3-4c:inlet-right-temp"
},
{
"name": "tmp75-i2c-8-48:outlet-right-temp"
},
{
"name": "tmp75-i2c-8-49:outlet-left-temp"
},
{
"name": "coretemp-isa-0000:package-id-0"
},
{
"name": "coretemp-isa-0000:core-0"
},
{
"name": "coretemp-isa-0000:core-1"
},
{
"name": "coretemp-isa-0000:core-2"
},
{
"name": "coretemp-isa-0000:core-3"
}
],
"sfps": [
{
"name": "Ethernet0"
},
{
"name": "Ethernet4"
},
{
"name": "Ethernet8"
},
{
"name": "Ethernet12"
},
{
"name": "Ethernet16"
},
{
"name": "Ethernet20"
},
{
"name": "Ethernet24"
},
{
"name": "Ethernet28"
},
{
"name": "Ethernet32"
},
{
"name": "Ethernet36"
},
{
"name": "Ethernet40"
},
{
"name": "Ethernet44"
},
{
"name": "Ethernet48"
},
{
"name": "Ethernet52"
},
{
"name": "Ethernet56"
},
{
"name": "Ethernet60"
},
{
"name": "Ethernet64"
},
{
"name": "Ethernet68"
},
{
"name": "Ethernet72"
},
{
"name": "Ethernet76"
},
{
"name": "Ethernet80"
},
{
"name": "Ethernet84"
},
{
"name": "Ethernet88"
},
{
"name": "Ethernet92"
},
{
"name": "Ethernet96"
},
{
"name": "Ethernet100"
},
{
"name": "Ethernet104"
},
{
"name": "Ethernet108"
},
{
"name": "Ethernet112"
},
{
"name": "Ethernet116"
},
{
"name": "Ethernet120"
},
{
"name": "Ethernet124"
}
]
},
"interfaces": {
"Ethernet0": {
"index": "1,1,1,1",
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"chassis": {
"Wedge100BF-32X-O-AC-F-BF": {
"component": {
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"chassis": {
"Wedge100BF-65X-O-AC-F-BF": {
"component": {
}
}
}
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.