Skip to content

Commit

Permalink
integration test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Periyasamy Palanisamy <[email protected]>
  • Loading branch information
pperiyasamy committed Dec 13, 2021
1 parent 84b6701 commit 1e08580
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/networkservice/ifconfig/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@ func (i *ifConfigServer) addDeleteVppParentIf(ctx context.Context, logger log.Lo
if err != nil {
return err
}
if _, err := interfaces.NewServiceClient(i.vppConn).SwInterfaceSetRxMode(ctx, &interfaces.SwInterfaceSetRxMode{
SwIfIndex: rsp.SwIfIndex,
Mode: interface_types.RX_MODE_API_ADAPTIVE,
}); err != nil {
return err
}
swIfIndex = rsp.SwIfIndex
}
err := i.makeIfOpUp(ctx, swIfIndex)
Expand Down Expand Up @@ -410,12 +416,6 @@ func (i *ifConfigServer) addDeleteVppParentIf(ctx context.Context, logger log.Lo
}

func (i *ifConfigServer) makeIfOpUp(ctx context.Context, swIfIndex interface_types.InterfaceIndex) error {
if _, err := interfaces.NewServiceClient(i.vppConn).SwInterfaceSetRxMode(ctx, &interfaces.SwInterfaceSetRxMode{
SwIfIndex: swIfIndex,
Mode: interface_types.RX_MODE_API_ADAPTIVE,
}); err != nil {
return err
}
if _, err := interfaces.NewServiceClient(i.vppConn).SwInterfaceSetFlags(ctx, &interfaces.SwInterfaceSetFlags{
SwIfIndex: swIfIndex,
Flags: interface_types.IF_STATUS_API_FLAG_ADMIN_UP,
Expand Down

0 comments on commit 1e08580

Please sign in to comment.