Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from e-sonic/merge-0207/broadcom_sonic_share-to…
Browse files Browse the repository at this point in the history
…-dell_sonic_share

WIP: Merge broadcom_sonic_share to dell_sonic_share - 0207
  • Loading branch information
bhavini-gada authored and GitHub Enterprise committed Feb 8, 2022
2 parents 1455ba5 + 695c461 commit c39e7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sonic_data_client/transl_subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func (ts *translSubscriber) notify(v *translib.SubscribeResponse) error {

func (ts *translSubscriber) toPrefix(path string) *gnmipb.Path {
p, _ := ygot.StringToStructuredPath(path)
p.Target = ts.client.prefix.Target
p.Origin = ts.client.prefix.Origin
p.Target = ts.client.prefix.GetTarget()
p.Origin = ts.client.prefix.GetOrigin()
return p
}

Expand Down
4 changes: 2 additions & 2 deletions transl_utils/transl_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func __log_audit_msg(ctx context.Context, reqType string, uriPath string, err er
}

func GnmiTranslFullPath(prefix, path *gnmipb.Path) *gnmipb.Path {
origin := prefix.Origin
origin := prefix.GetOrigin()
if len(origin) == 0 {
origin = path.Origin // try path.Origin for backward compatibility
origin = path.GetOrigin() // try path.Origin for backward compatibility
}

fullPath := &gnmipb.Path{Origin: origin}
Expand Down

0 comments on commit c39e7e5

Please sign in to comment.