[VOL-2588] Simplify TT case
Change-Id: Ia22dbda21b0702ac0444a17ae3e5063c7723e395
diff --git a/config/config.go b/config/config.go
index 44fc805..6b9f7c0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -19,9 +19,10 @@
import (
"flag"
"fmt"
- "github.com/opencord/voltha-lib-go/v2/pkg/log"
"strconv"
"strings"
+
+ "github.com/opencord/voltha-lib-go/v3/pkg/log"
)
// Open OLT default constants
@@ -30,12 +31,13 @@
defaultOpenOltAgentPort = 9191
defaultNumOfOnu = 128
defaultNumOfSubscribersPerOnu = 1
- defaultWorkFlowName = "ATT"
+ defaultWorkFlowName = "TT"
defaultTimeIntervalBetweenSubs = 5 // in seconds
defaultNniIntfId = 0
- defaultKVstoreHost = "192.168.1.11"
+ defaultKVstoreHost = "192.168.1.1"
defaultKVstorePort = 2379
defaultTpIDs = "64"
+ defaultIsGroupTest = false
)
// OpenOltScaleTesterConfigConfig represents the set of configurations used by the read-write adaptercore service
@@ -53,6 +55,7 @@
KVStorePort int
TpIDsString string
TpIDList []int
+ IsGroupTest bool
}
func init() {
@@ -83,6 +86,7 @@
KVStoreHost: defaultKVstoreHost,
KVStorePort: defaultKVstorePort,
TpIDList: GetTpIDList(defaultTpIDs),
+ IsGroupTest: defaultIsGroupTest,
}
return &OpenOltScaleTesterConfig
}
@@ -120,6 +124,8 @@
help = fmt.Sprintf("Command seperated TP ID list for Workflow")
flag.StringVar(&(st.TpIDsString), "tp_ids", defaultTpIDs, help)
- flag.Parse()
+ help = fmt.Sprintf("Is this run a group test")
+ flag.BoolVar(&(st.IsGroupTest), "is_group_test", defaultIsGroupTest, help)
+ flag.Parse()
}