VOL-1682[simulated olt and onu adapters not reporting version information]
Change-Id: I3a0b3244c52a6c9f9a7a02ae86b677a7335f00ce
diff --git a/cmd/simulated_olt/main.go b/cmd/simulated_olt/main.go
index f96a056..f324939 100644
--- a/cmd/simulated_olt/main.go
+++ b/cmd/simulated_olt/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"
@@ -232,7 +233,11 @@
func (a *adapter) registerWithCore(retries int) error {
log.Info("registering-with-core")
- adapterDescription := &voltha.Adapter{Id: "simulated_olt", Vendor: "simulation Enterprise Inc"}
+ adapterDescription := &voltha.Adapter{
+ Id: "simulated_olt",
+ Vendor: "Open Networking Foundation",
+ Version: version.VersionInfo.Version,
+ }
types := []*voltha.DeviceType{{Id: "simulated_olt", Adapter: "simulated_olt", AcceptsAddRemoveFlowUpdates: true}}
deviceTypes := &voltha.DeviceTypes{Items: types}
count := 0