SEBA-610: instead of activating DHCP server on a fixed virtual interface, we activated it on the interface including oltId.
Change-Id: Ifa8961e9c178131a1043877b920ccd7d386f0f5e
diff --git a/core/mediator.go b/core/mediator.go
index cbcee0f..ce69452 100644
--- a/core/mediator.go
+++ b/core/mediator.go
@@ -165,7 +165,8 @@
logger.Debug("trnsitOlt called current:%d , next:%d", current, next)
if current == device.OLT_PREACTIVE && next == device.OLT_ACTIVE {
tm.Start()
- activateDHCPServer("nni_north0", o.dhcpservip)
+ nniup, _ := makeNniName(o.oltid)
+ activateDHCPServer(nniup, o.dhcpservip)
} else if current == device.OLT_ACTIVE && next == device.OLT_PREACTIVE{
tm.Stop()
}