Skip to content

Commit

Permalink
Fix typos in tag chain element
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
  • Loading branch information
glazychev-art committed Mar 14, 2022
1 parent be8bf78 commit d6dfd44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/networkservice/tag/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ import (

func create(ctx context.Context, conn *networkservice.Connection, vppConn api.Connection, isClient bool) error {
swIfIndex, ok := ifindex.Load(ctx, isClient)
if ok {
if !ok {
return nil
}

now := time.Now()
if _, err := interfaces.NewServiceClient(vppConn).SwInterfaceTagAddDel(ctx, &interfaces.SwInterfaceTagAddDel{
IsAdd: true,
SwIfIndex: swIfIndex,
Tag: conn.GetId(),
}); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/networkservice/tag/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (t *tagServer) Request(ctx context.Context, request *networkservice.Network
return nil, err
}

if err := create(ctx, conn, t.vppConn, true); err != nil {
if err := create(ctx, conn, t.vppConn, false); err != nil {
closeCtx, cancelClose := postponeCtxFunc()
defer cancelClose()

Expand Down

0 comments on commit d6dfd44

Please sign in to comment.