[VOL-2176] Adding -no-auth and -no-dhcp option in BBSim CLI
Change-Id: I3d0f7adb26c1df0d42f67b9b8fbc782754491c31
diff --git a/internal/common/options.go b/internal/common/options.go
index 41c3522..eee91cc 100644
--- a/internal/common/options.go
+++ b/internal/common/options.go
@@ -25,6 +25,8 @@
NumOnuPerPon int
STag int
CTagInit int
+ Auth bool
+ Dhcp bool
ProfileCpu *string
LogLevel string
LogCaller bool
@@ -45,6 +47,9 @@
pon := flag.Int("pon", 1, "Number of PON ports per OLT device to be emulated")
onu := flag.Int("onu", 1, "Number of ONU devices per PON port to be emulated")
+ auth := flag.Bool("auth", false, "Set this flag if you want authentication to start automatically")
+ dhcp := flag.Bool("dhcp", false, "Set this flag if you want DHCP to start automatically")
+
s_tag := flag.Int("s_tag", 900, "S-Tag value")
c_tag_init := flag.Int("c_tag", 900, "C-Tag starting value, each ONU will get a sequential one (targeting 1024 ONUs per BBSim instance the range is big enough)")
@@ -66,6 +71,8 @@
o.ProfileCpu = profileCpu
o.LogLevel = *logLevel
o.LogCaller = *logCaller
+ o.Auth = *auth
+ o.Dhcp = *dhcp
return o
}