[seba-608] - fetch tech profile from subscriber object
Change-Id: I06e2fedae97fb2b3216c22482ce788ca2a435bcb
diff --git a/handlers.go b/handlers.go
index eb8b8fc..2ca0499 100644
--- a/handlers.go
+++ b/handlers.go
@@ -56,7 +56,7 @@
NasPortID: sub.NasPortID,
CircuitID: sub.CircuitID,
RemoteID: sub.RemoteID,
- TechnologyProfileID: 64,
+ TechnologyProfileID: sub.TechnologyProfileID,
}
log.Debugf("Fetching bandwidth profiles for subscriber %s", sub.OnuSerialNumber)
diff --git a/sadisTypes.go b/sadisTypes.go
index ba78ee2..e0cc5be 100644
--- a/sadisTypes.go
+++ b/sadisTypes.go
@@ -51,6 +51,7 @@
RemoteID string `json:"remote_id"`
UpstreamBandwidthProfile int `json:"upstream_bps_id"`
DownstreamBandwidthProfile int `json:"downstream_bps_id"`
+ TechnologyProfileID int `json:"tech_profile_id"`
}
type subscribers struct {