Update README and Modify the default value of interval
Change-Id: I0a8676961b5abc33022b6fc2b05f6b1dc28cb2e9
diff --git a/README.md b/README.md
index 93c157f..48486bc 100644
--- a/README.md
+++ b/README.md
@@ -82,16 +82,22 @@
IP address:port (default ":50060")
-aw int
Wait time (sec) for activation WPA supplicants (default 10)
+ -d string
+ Debug Level(TRACE DEBUG INFO WARN ERROR) (default "DEBUG")
-dw int
Wait time (sec) for activation DHCP clients (default 20)
-i int
Number of PON-IF ports (default 1)
-id int
- OLT-ID (default: 0)
+ OLT-ID
+ -k string
+ Kafka broker
-m string
Emulation mode (default, aaa, both (aaa & dhcp)) (default "default")
-n int
Number of ONUs per PON-IF port (default 1)
-s string
- DHCP Server IP Address (default "182.21.0.1")
+ DHCP Server IP Address (default "182.21.0.128")
+ -v int
+ Interval each Indication (ms) (default 1000)
```
diff --git a/core/mediator.go b/core/mediator.go
index 002ce6d..cbcee0f 100644
--- a/core/mediator.go
+++ b/core/mediator.go
@@ -41,7 +41,6 @@
dhcpwait int
dhcpservip string
intvl int
- intvl_test int
Mode Mode
KafkaBroker string
Debuglvl string
@@ -57,8 +56,7 @@
aaawait := flag.Int("aw", 10, "Wait time (sec) for activation WPA supplicants")
dhcpwait := flag.Int("dw", 20, "Wait time (sec) for activation DHCP clients")
dhcpservip := flag.String("s", "182.21.0.128", "DHCP Server IP Address")
- intvl := flag.Int("v", 1, "Interval each Indication")
- intvl_test := flag.Int("V", 1, "Interval each Indication")
+ intvl := flag.Int("v", 1000, "Interval each Indication (ms)")
kafkaBroker := flag.String("k", "", "Kafka broker")
o.Mode = DEFAULT
debg := flag.String("d", "DEBUG", "Debug Level(TRACE DEBUG INFO WARN ERROR)")
@@ -76,7 +74,6 @@
o.dhcpwait = *dhcpwait
o.dhcpservip = *dhcpservip
o.intvl = *intvl
- o.intvl_test = *intvl_test
o.KafkaBroker = *kafkaBroker
o.address = (strings.Split(*addressport, ":")[0])
tmp, _ := strconv.Atoi(strings.Split(*addressport, ":")[1])
diff --git a/core/tester.go b/core/tester.go
index a2d9a7d..279d2c8 100644
--- a/core/tester.go
+++ b/core/tester.go
@@ -38,7 +38,6 @@
type TestManager struct {
DhcpServerIP string
Pid []int
- Intvl int
testers map[device.Devkey]*Tester
ctx context.Context
cancel context.CancelFunc
@@ -54,7 +53,6 @@
func NewTestManager(opt *option) *TestManager {
t := new(TestManager)
t.DhcpServerIP = opt.dhcpservip
- t.Intvl = opt.intvl_test
return t
}