tweak client
Change-Id: I51c4537915e46bf3f5ef299c9887a88a8375eca6
diff --git a/internal/pkg/openflow/client.go b/internal/pkg/openflow/client.go
index 19182ca..ea25695 100644
--- a/internal/pkg/openflow/client.go
+++ b/internal/pkg/openflow/client.go
@@ -444,7 +444,7 @@
case ofp.OFPTRoleRequest:
go ofc.handleRoleRequest(header.(*ofp.RoleRequest))
case ofp.OFPTMeterMod:
- go ofc.handleMeterModRequest(header.(*ofp.MeterMod))
+ ofc.handleMeterModRequest(header.(*ofp.MeterMod))
}
}
diff --git a/run.sh b/run.sh
index 3f9942c..be724f3 100755
--- a/run.sh
+++ b/run.sh
@@ -18,7 +18,19 @@
then
rm output
fi
-go build -v -o build/ofagent-go -mod=vendor
+set GO111MODULE=on
+go build -mod=vendor -o /build/ofagent \
+ -ldflags \
+ "-X github.com/opencord/voltha-lib-go/v2/pkg/version.version=$org_label_schema_version \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.vcsRef=$org_label_schema_vcs_ref \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.vcsDirty=$org_opencord_vcs_dirty \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.goVersion=$(go version 2>&1 | sed -E 's/.*go([0-9]+\.[0-9]+\.[0-9]+).*/\1/g') \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.os=$(go env GOHOSTOS) \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.arch=$(go env GOHOSTARCH) \
+ -X github.com/opencord/voltha-lib-go/v2/pkg/version.buildTime=$org_label_schema_build_date" \
+ ./cmd/ofagent
+
+#go build ./cmd/ofagent -mod=vendor -o build/ofagent-go
if [ "$1" = "debug" ]
then