Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linter issues after update golangci-lint version #639

Merged
merged 2 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ import (
// NewClient creates a NetworkServiceClient chain element to set the ip address on a vpp interface
// It applies the connection context to the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +-------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | networkservice.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------------------------+
//
// Endpoint
// +-------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | networkservice.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return chain.NewNetworkServiceClient(
mtu.NewClient(vppConn),
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/ipcontext/ipaddress/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ type ipaddressClient struct {
// NewClient creates a NetworkServiceClient chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | ipaddress.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | ipaddress.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceClient {
o := &options{
loadIfIndex: ifindex.Load,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/ipcontext/ipaddress/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ type ipaddressServer struct {
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceServer {
o := &options{
loadIfIndex: ifindex.Load,
Expand Down
38 changes: 19 additions & 19 deletions pkg/networkservice/connectioncontext/ipcontext/routes/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -35,25 +35,25 @@ type routesClient struct {
}

// NewClient creates a NetworkServiceClient chain element to set routes in vpp
// Client
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | routes.NewClient() +-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Client
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | routes.NewClient() +-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return &routesClient{
vppConn: vppConn,
Expand Down
38 changes: 19 additions & 19 deletions pkg/networkservice/connectioncontext/ipcontext/routes/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -36,25 +36,25 @@ type routesServer struct {
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return &routesServer{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/mtu/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ type mtuClient struct {
// NewClient creates a NetworkServiceClient chain element to set the mtu on a vpp interface
// It sets the mtu on the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | mtu.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | mtu.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return &mtuClient{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/mtu/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ type mtuServer struct {
// NewServer creates a NetworkServiceServer chain element to set the MTU on a vpp interface
// It sets the MTU on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ mtu.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ mtu.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return &mtuServer{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ import (
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It applies the connection context to the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ networkservice.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +------------------------------------+
//
// Endpoint
// +------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ networkservice.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +------------------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return chain.NewNetworkServiceServer(
mtu.NewServer(vppConn),
Expand Down
Loading