UT-Part 6 with overall coverage upto 45%
Change-Id: I4960bae8429ae34d88a2f98f288f72d582f9e788
diff --git a/voltha-go-controller/nbi/mvlan.go b/voltha-go-controller/nbi/mvlan.go
index dc19ad6..e7e25c0 100644
--- a/voltha-go-controller/nbi/mvlan.go
+++ b/voltha-go-controller/nbi/mvlan.go
@@ -120,7 +120,10 @@
w.WriteHeader(http.StatusAccepted)
logger.Infow(ctx, "Request for DelMvlanInfo for mvlan", log.Fields{"name": name})
- err := app.GetApplication().DelMvlanProfile(cntx, name)
+ var voltAppIntr app.VoltAppInterface
+ voltApp := app.GetApplication()
+ voltAppIntr = voltApp
+ err := voltAppIntr.DelMvlanProfile(cntx, name)
if err != nil {
logger.Errorw(cntx, "Failed to delete Mvlan profile", log.Fields{"name": name, "Error": err.Error()})
w.WriteHeader(http.StatusNotFound)
@@ -140,8 +143,10 @@
config.Groups["default"] = groups
logger.Infow(ctx, "northbound-add-mvlan-received", log.Fields{"Config": config})
-
- if err := app.GetApplication().AddMvlanProfile(cntx, config.Name, config.Mvlan, config.PonVlan, config.Groups,
+ var voltAppIntr app.VoltAppInterface
+ voltApp := app.GetApplication()
+ voltAppIntr = voltApp
+ if err := voltAppIntr.AddMvlanProfile(cntx, config.Name, config.Mvlan, config.PonVlan, config.Groups,
config.IsChannelBasedGroup, config.OLTSerialNum,
255, config.Proxy); err != nil {
logger.Errorw(ctx, "northbound-add-mvlan-failed", log.Fields{"mvlan": config.Name, "Reason": err.Error()})