Commit 2956f051 authored by Ayesha Ayub's avatar Ayesha Ayub
Browse files

fix minor issue in POST method in BWM

parent 1c6eca33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1061,7 +1061,7 @@ func bandwidthAllocationPost(w http.ResponseWriter, r *http.Request) {
	// In APPLICATION_SPECIFIC_BW_ALLOCATION OR SESSION_SPECIFIC_BW_ALLOCATION
	// Uplink, Downlink and Symmetrical bandwidth allocation is performed
	if bwInfo.AllocationDirection != "" {
		err = bandwidthResourceAllocation(bwInfo, w)
		err = bandwidthResourceAllocation(&bwInfo, w)
		if err != nil {
			log.Error(err.Error())
			return
@@ -1996,7 +1996,7 @@ func compareSessionFilters(key string, jsonInfo string, sessionFilterList interf
	return nil
}

func bandwidthResourceAllocation(bwInfo BwInfo, w http.ResponseWriter) error {
func bandwidthResourceAllocation(bwInfo *BwInfo, w http.ResponseWriter) error {
	switch bwInfo.AllocationDirection {
	case "00":
		// getting downlink buffer value from redis to update