Skip to content

Commit

Permalink
fix(network/svi): create svi directly for update
Browse files Browse the repository at this point in the history
Signed-off-by: atulpatel261194 <[email protected]>
  • Loading branch information
atulpatel261194 authored and artek-koltun committed Jan 8, 2024
1 parent 9ecdd3b commit 16c2a05
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions network/svi.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,9 @@ func (c evpnClientImpl) UpdateSvi(ctx context.Context, name string, updateMask [
}
defer closer()
client := c.getEvpnSVIClient(conn)
svi, err := client.GetSvi(ctx, &pb.GetSviRequest{

svi := &pb.Svi{
Name: resourceIDToFullName("svis", name),
})
if err != nil {
log.Printf("error getting svi: %s\n", err)
return nil, err
}
data, err := client.UpdateSvi(ctx, &pb.UpdateSviRequest{
Svi: svi,
Expand Down

0 comments on commit 16c2a05

Please sign in to comment.