VOL-3121 - Replaced usage of LogicalDevice.Ports with ListLogicalDevicePorts().
Also removed usage of LogicalDevice.Ports in tests.
Change-Id: Ic81ea409c8d60158ba7fecd6efec8481a96993c1
diff --git a/internal/pkg/openflow/stats_test.go b/internal/pkg/openflow/stats_test.go
index 1c82946..05273bf 100644
--- a/internal/pkg/openflow/stats_test.go
+++ b/internal/pkg/openflow/stats_test.go
@@ -18,6 +18,9 @@
import (
"fmt"
+ "math"
+ "testing"
+
"github.com/opencord/goloxi"
"github.com/opencord/goloxi/of13"
"github.com/opencord/ofagent-go/internal/pkg/holder"
@@ -25,8 +28,6 @@
"github.com/opencord/voltha-protos/v3/go/openflow_13"
"github.com/opencord/voltha-protos/v3/go/voltha"
"github.com/stretchr/testify/assert"
- "math"
- "testing"
)
var msgSizeLimit = 64000
@@ -167,14 +168,9 @@
Items: createRandomPorts(portsCount),
}
- logicalDevice := voltha.LogicalDevice{
- Ports: createRandomPorts(portsCount),
- }
-
volthaClient := mock.MockVolthaClient{
LogicalDeviceFlows: flows,
LogicalPorts: ports,
- LogicalDevice: logicalDevice,
}
volthaClientHolder := &holder.VolthaServiceClientHolder{}