VOL-1430, SEBA-436 Add EAPOL responder
Change-Id: I9b01271373099a843ada51fdf0a8639abaf8667e
diff --git a/core/tester.go b/core/tester.go
index 4f9ccaf..6e9f0bf 100644
--- a/core/tester.go
+++ b/core/tester.go
@@ -290,10 +290,15 @@
}
func activateWPASupplicant(univeth UniVeth, s *Server) (err error) {
+ /*
cmd := "/sbin/wpa_supplicant"
conf := "/etc/wpa_supplicant/wpa_supplicant.conf"
err = exec.Command(cmd, "-D", "wired", "-i", univeth.Veth, "-c", conf).Start()
+ */
onu, _ := s.GetOnuByID(univeth.OnuId)
+ if err = startPeer(onu.IntfID, onu.OnuID); err != nil {
+ logger.Error("%s", err)
+ }
if err != nil {
utils.LoggerWithOnu(onu).WithFields(log.Fields{
"err": err,
@@ -307,12 +312,12 @@
func activateDHCPClient(univeth UniVeth, s *Server) (err error) {
onu, _ := s.GetOnuByID(univeth.OnuId)
-
cmd := exec.Command("/usr/local/bin/dhclient", univeth.Veth)
if err := cmd.Start(); err != nil {
logger.Error("Fail to activateDHCPClient() for: %s", univeth.Veth)
logger.Panic("activateDHCPClient %s", err)
}
+
utils.LoggerWithOnu(onu).WithFields(log.Fields{
"veth": univeth.Veth,
}).Infof("activateDHCPClient() start for: %s", univeth.Veth)