[VOL-4762] Workaround for govet json Marshal issue
Change-Id: I407886340bdc5f01d46327e989d4229d27943c30
diff --git a/internal/pkg/application/service.go b/internal/pkg/application/service.go
index e90b948..e9a7393 100644
--- a/internal/pkg/application/service.go
+++ b/internal/pkg/application/service.go
@@ -1976,3 +1976,31 @@
//triggerServiceInProgressInd - Indication is generated when Service is not provisioned after add serviec req from NB
func (vs *VoltService) triggerServiceInProgressInd() {
}
+
+// JsonMarshal wrapper function for json Marshal VoltService
+func (vs *VoltService) JsonMarshal() ([]byte, error) {
+ return json.Marshal(VoltService{
+ VoltServiceCfg: vs.VoltServiceCfg,
+ VoltServiceOper: VoltServiceOper{
+ Device: vs.VoltServiceOper.Device,
+ Ipv4Addr: vs.VoltServiceOper.Ipv4Addr,
+ Ipv6Addr: vs.VoltServiceOper.Ipv6Addr,
+ UsMeterID: vs.VoltServiceOper.UsMeterID,
+ DsMeterID: vs.VoltServiceOper.DsMeterID,
+ AggDsMeterID: vs.VoltServiceOper.AggDsMeterID,
+ UsHSIAFlowsApplied: vs.VoltServiceOper.UsHSIAFlowsApplied,
+ DsHSIAFlowsApplied: vs.VoltServiceOper.DsHSIAFlowsApplied,
+ UsDhcpFlowsApplied: vs.VoltServiceOper.UsDhcpFlowsApplied,
+ DsDhcpFlowsApplied: vs.VoltServiceOper.DsDhcpFlowsApplied,
+ IgmpFlowsApplied: vs.VoltServiceOper.IgmpFlowsApplied,
+ Icmpv6FlowsApplied: vs.VoltServiceOper.Icmpv6FlowsApplied,
+ PendingFlows: vs.VoltServiceOper.PendingFlows,
+ AssociatedFlows: vs.VoltServiceOper.AssociatedFlows,
+ DeleteInProgress: vs.VoltServiceOper.DeleteInProgress,
+ ForceDelete: vs.VoltServiceOper.ForceDelete,
+ BwAvailInfo: vs.VoltServiceOper.BwAvailInfo,
+ UpdateInProgress: vs.VoltServiceOper.UpdateInProgress,
+ Metadata: vs.VoltServiceOper.Metadata,
+ },
+ })
+}