Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
update pce yang model
[transportpce.git]
/
pce
/
src
/
main
/
java
/
org
/
opendaylight
/
transportpce
/
pce
/
PceComplianceCheck.java
diff --git
a/pce/src/main/java/org/opendaylight/transportpce/pce/PceComplianceCheck.java
b/pce/src/main/java/org/opendaylight/transportpce/pce/PceComplianceCheck.java
old mode 100755
(executable)
new mode 100644
(file)
index
67fdcac
..
022aa32
--- a/
pce/src/main/java/org/opendaylight/transportpce/pce/PceComplianceCheck.java
+++ b/
pce/src/main/java/org/opendaylight/transportpce/pce/PceComplianceCheck.java
@@
-7,7
+7,7
@@
*/
package org.opendaylight.transportpce.pce;
*/
package org.opendaylight.transportpce.pce;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev
171017
.PathComputationRequestInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev
220615
.PathComputationRequestInput;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@
-22,21
+22,23
@@
public final class PceComplianceCheck {
}
/*
}
/*
- * Check if a String is not
- * null and not equal to ''.
+ * Check if a String is not null and not equal to ''.
*
* @param value String value
*
* @param value String value
+ *
* @return true if String ok
* false if not
*/
public static boolean checkString(String value) {
* @return true if String ok
* false if not
*/
public static boolean checkString(String value) {
- return (
(value != null) && (value.compareTo("") != 0)
);
+ return (
value != null) && (value.compareTo("") != 0
);
}
public static PceComplianceCheckResult check(PathComputationRequestInput input) {
String message = "";
Boolean result = true;
if (input != null) {
}
public static PceComplianceCheckResult check(PathComputationRequestInput input) {
String message = "";
Boolean result = true;
if (input != null) {
+ LOG.info("New request {} for new service {}",
+ input.getServiceHandlerHeader().getRequestId(), input.getServiceName());
if (!checkString(input.getServiceName())) {
result = false;
message = "Service Name is not set";
if (!checkString(input.getServiceName())) {
result = false;
message = "Service Name is not set";
@@
-55,4
+57,3
@@
public final class PceComplianceCheck {
}
}
}
}
-