mgmt: make congestion marking parameters optional
refs #4465
Change-Id: I5ab07ecd4f1b7f4c948ba359513e65ac2e96c943
diff --git a/src/mgmt/nfd/control-command.cpp b/src/mgmt/nfd/control-command.cpp
index 472f329..9f978f0 100644
--- a/src/mgmt/nfd/control-command.cpp
+++ b/src/mgmt/nfd/control-command.cpp
@@ -112,8 +112,8 @@
.required(CONTROL_PARAMETER_URI)
.required(CONTROL_PARAMETER_LOCAL_URI)
.required(CONTROL_PARAMETER_FACE_PERSISTENCY)
- .required(CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL)
- .required(CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD)
+ .optional(CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL)
+ .optional(CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD)
.required(CONTROL_PARAMETER_FLAGS);
}
@@ -148,8 +148,8 @@
m_responseValidator
.required(CONTROL_PARAMETER_FACE_ID)
.required(CONTROL_PARAMETER_FACE_PERSISTENCY)
- .required(CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL)
- .required(CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD)
+ .optional(CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL)
+ .optional(CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD)
.required(CONTROL_PARAMETER_FLAGS);
}