From b44d4d459db0216879691463c2030e433861c44c Mon Sep 17 00:00:00 2001 From: leandrofars Date: Thu, 30 May 2024 11:12:13 -0300 Subject: [PATCH] feat(cwmp): add parameterValueResponseStatus to cwmp lib --- .../services/controller/internal/cwmp/cwmp.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/backend/services/controller/internal/cwmp/cwmp.go b/backend/services/controller/internal/cwmp/cwmp.go index eaa4ff2..01d41fc 100644 --- a/backend/services/controller/internal/cwmp/cwmp.go +++ b/backend/services/controller/internal/cwmp/cwmp.go @@ -9,6 +9,21 @@ import ( "time" ) +/* +A successful response to SetParameterValues method returns an integer enumeration defined as follows: + +0 = All Parameter changes have been validated and applied. +1 = All Parameter changes have been validated and committed, but some or all are not yet applied (for example, if a reboot is required before the new values are applied). +*/ +type SetParameterValuesResponseStatus int + +const ( + ALL_OK = 0 + SOME_PENDING = 1 +) + +/* -------------------------------------------------------------------------- */ + const WRITABLE = "1" func ParamTypeIsWritable(param string) bool { @@ -234,7 +249,7 @@ func SetParameterMultiValues(data map[string]string) string { - ` + ` for key, value := range data { msg += `