Skip to content

Commit

Permalink
Revert "[dashrouteorch]: Rename dash route namespace (#2966)"
Browse files Browse the repository at this point in the history
This reverts commit fd85208.
  • Loading branch information
prsunny committed Dec 5, 2023
1 parent fd85208 commit 6023a4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
15 changes: 0 additions & 15 deletions .azure-pipelines/build-docker-sonic-vs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ jobs:
${{ parameters.sairedis_artifact_pattern }}/libsaimetadata-dev_*.deb
${{ parameters.sairedis_artifact_pattern }}/syncd-vs_*.deb
displayName: "Download sonic sairedis deb packages"
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: sonic-net.sonic-dash-api
${{ if eq(parameters.arch, 'amd64') }}:
artifact: sonic-dash-api
${{ else }}:
artifact: sonic-dash-api.${{ parameters.arch }}
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/$(BUILD_BRANCH)'
path: $(Build.ArtifactStagingDirectory)/download
patterns: |
libdashapi*.deb
displayName: "Download dash api"
- task: DownloadPipelineArtifact@2
inputs:
artifact: ${{ parameters.swss_artifact_name }}
Expand Down
16 changes: 1 addition & 15 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,8 @@ jobs:
target/debs/bullseye/libprotobuf*.deb
target/debs/bullseye/libprotoc*.deb
target/debs/bullseye/protobuf-compiler*.deb
target/debs/bullseye/libdashapi*.deb
displayName: "Download common libs"
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: sonic-net.sonic-dash-api
${{ if eq(parameters.arch, 'amd64') }}:
artifact: sonic-dash-api
${{ else }}:
artifact: sonic-dash-api.${{ parameters.arch }}
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/$(BUILD_BRANCH)'
path: $(Build.ArtifactStagingDirectory)/download/common
patterns: |
libdashapi*.deb
displayName: "Download dash api"
- script: |
set -ex
cd download
Expand Down
5 changes: 2 additions & 3 deletions .azure-pipelines/docker-sonic-vs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ COPY ["debs", "/debs"]
# Remove existing packages first before installing the new/current packages. This is to overcome limitations with
# Docker's diff detection mechanism, where only the file size and the modification timestamp (which will remain the
# same, even though contents have changed) are checked between the previous and current layer.
RUN dpkg --purge libswsscommon python3-swsscommon sonic-db-cli libsaimetadata libsairedis libsaivs syncd-vs swss sonic-eventd libdashapi
RUN dpkg --purge libswsscommon python3-swsscommon sonic-db-cli libsaimetadata libsairedis libsaivs syncd-vs swss sonic-eventd

RUN dpkg -i /debs/libdashapi_1.0.0_amd64.deb \
/debs/libswsscommon_1.0.0_amd64.deb \
RUN dpkg -i /debs/libswsscommon_1.0.0_amd64.deb \
/debs/python3-swsscommon_1.0.0_amd64.deb \
/debs/sonic-db-cli_1.0.0_amd64.deb \
/debs/libsaimetadata_1.0.0_amd64.deb \
Expand Down
4 changes: 2 additions & 2 deletions orchagent/dash/dashrouteorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct OutboundRoutingEntry
{
sai_object_id_t eni;
swss::IpPrefix destination;
dash::route::Route metadata;
dash::route_lpm::Route metadata;
};

struct InboundRoutingEntry
Expand All @@ -43,7 +43,7 @@ struct OutboundRoutingBulkContext
{
std::string eni;
swss::IpPrefix destination;
dash::route::Route metadata;
dash::route_lpm::Route metadata;
std::deque<sai_status_t> object_statuses;
OutboundRoutingBulkContext() {}
OutboundRoutingBulkContext(const OutboundRoutingBulkContext&) = delete;
Expand Down

0 comments on commit 6023a4d

Please sign in to comment.