Changing Option82 flag handling as VGC is not supposed to add it in DHCP packet
Change-Id: I5128d90aca7179f5c2b886220abe8c69e83b9a21
diff --git a/internal/pkg/application/service.go b/internal/pkg/application/service.go
index a2e1d54..6da1150 100644
--- a/internal/pkg/application/service.go
+++ b/internal/pkg/application/service.go
@@ -98,7 +98,7 @@
DsPonSTagPriority of.PbitType
DsPonCTagPriority of.PbitType
VlanControl VlanControl
- IsOption82Disabled bool
+ IsOption82Enabled bool
IgmpEnabled bool
McastService bool
AllowTransparent bool
@@ -173,7 +173,7 @@
vs.DsHSIAFlowsApplied = false
vs.DeleteInProgress = false
//vs.MacAddr, _ = net.ParseMAC("00:00:00:00:00:00")
-
+ vs.IsOption82Enabled = cfg.IsOption82Enabled
vs.MacAddr = cfg.MacAddr
vs.Ipv4Addr = net.ParseIP("0.0.0.0")
vs.Ipv6Addr = net.ParseIP("::")
@@ -1855,7 +1855,7 @@
if evs.MacLearning == MacLearningNone && !util.MacAddrsMatch(nvs.MacAddr, evs.MacAddr) {
return false
}
- if nvs.IsOption82Disabled != evs.IsOption82Disabled {
+ if nvs.IsOption82Enabled != evs.IsOption82Enabled {
return false
}
if nvs.IgmpEnabled != evs.IgmpEnabled {