Skip to content

Commit

Permalink
tmp fix for vpp metrics server
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Jul 22, 2024
1 parent bb3fa46 commit 10aa5ae
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions pkg/networkservice/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,10 @@ import (
"go.fd.io/govpp/api"

"github.com/networkservicemesh/api/pkg/api/networkservice"
"github.com/networkservicemesh/sdk/pkg/networkservice/core/chain"

"github.com/networkservicemesh/sdk-vpp/pkg/networkservice/metrics/ifacename"
"github.com/networkservicemesh/sdk-vpp/pkg/networkservice/metrics/stats"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/null"
)

// NewServer provides NetworkServiceServer chain elements that retrieve vpp interface statistics and names.
func NewServer(ctx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceServer {
opts := &metricsOptions{}
for _, opt := range options {
opt(opts)
}

return chain.NewNetworkServiceServer(
stats.NewServer(ctx, stats.WithSocket(opts.socket)),
ifacename.NewServer(ctx, vppConn, ifacename.WithSocket(opts.socket)),
)
func NewServer(_ context.Context, _ api.Connection, _ ...Option) networkservice.NetworkServiceServer {
return null.NewServer()
}

0 comments on commit 10aa5ae

Please sign in to comment.