VOL-1682[simulated olt and onu adapters not reporting version information]
Change-Id: Ic46ff06e94f15f2a6a56696cd09ff46888de9f4f
diff --git a/cmd/simulated_onu/main.go b/cmd/simulated_onu/main.go
index f8c94a1..3d48781 100644
--- a/cmd/simulated_onu/main.go
+++ b/cmd/simulated_onu/main.go
@@ -22,6 +22,7 @@
"github.com/opencord/voltha-go/adapters"
com "github.com/opencord/voltha-go/adapters/common"
"github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-go/common/version"
"github.com/opencord/voltha-go/db/kvstore"
"github.com/opencord/voltha-go/kafka"
ic "github.com/opencord/voltha-protos/go/inter_container"
@@ -231,7 +232,11 @@
}
func (a *adapter) registerWithCore(retries int) error {
log.Info("registering-with-core")
- adapterDescription := &voltha.Adapter{Id: "simulated_onu", Vendor: "simulation Enterprise Inc"}
+ adapterDescription := &voltha.Adapter{
+ Id: "simulated_onu",
+ Vendor: "Open Networking Foundation",
+ Version: version.VersionInfo.Version,
+ }
types := []*voltha.DeviceType{{Id: "simulated_onu", Adapter: "simulated_onu"}}
deviceTypes := &voltha.DeviceTypes{Items: types}
count := 0