Use constants for PortMapping log messages Step 3
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / mapping / PortMappingUtils.java
index 6b34b34c27a3688e8321e6f88df5335a4ddf2fc5..a525bb1aac2b36be9a8ee8a5d2d535d2f4140837 100644 (file)
@@ -29,49 +29,79 @@ public final class PortMappingUtils {
     public static final String CANNOT_CREATE_LCP_LOGMSG =
         "{} : port {} on {} - Impossible to create logical connection point";
     public static final String CANNOT_GET_DEV_CONF_LOGMSG =
-        "{} : Impossible to get device configuration";
+        "{} : impossible to get device configuration";
     public static final String CANNOT_GET_LLDP_CONF_LOGMSG =
         "- cannot find port config under LLDP";
+    public static final String CONMAP_ISSUE_LOGMSG =
+        "{} : connection-map analysis for source {} and dest (CP+port) {} - no entry found for source in LCP map";
     public static final String CREATE_MAPPING_DATA_LOGMSG =
         "{} : OpenROADM version {} node - Creating Mapping Data";
     public static final String DEVICE_HAS_LOGMSG =
-        "{} : Device has {} {}";
+        "{} : device has {} {}";
     public static final String FETCH_CONNECTIONPORT_LOGMSG =
-        "{} : Fetching connection-port {} at circuit pack {}";
+        "{} : fetching connection-port {} at circuit-pack {}";
+    public static final String GETTING_CONPORT_LOGMSG =
+        "{} : getting connection-ports for degree number {}";
+    public static final String GETTING_CP_LOGMSG =
+        "{} : getting circuit-packs for SRG number {}";
     public static final String GETTING_ETH_LIST_LOGMSG =
         "{} : getting Ethernet interfaces list";
     public static final String GETTING_MC_CAPA_LOGMSG =
-        "{} : Getting the MC capabilities for {}";
+        "{} : getting MC capabilities for {}";
+    public static final String GOT_INTF_LOGMSG =
+        "{} : got interface {} of type {}";
+    public static final String INTF_ISSUE_LOGMSG =
+        "{} : error while getting interface {} ";
+    public static final String MAP_LOOKS_LOGMSG =
+        "{} : map looks like this {}";
     public static final String MISSING_CP_LOGMSG =
-        "{} : No Circuit-pack {} in the device";
+        "{} : no circuit-pack {} in the device";
     public static final String NO_ASSOC_FOUND_LOGMSG =
         "{} : port {} on {} - no association found {}";
+    public static final String NO_CONMAP_LOGMSG =
+        "{} : no connection-map found inside device configuration";
     public static final String NO_MC_LOGMSG =
-        "{} : No MC profile found on {} {} - assuming fixed grid";
+        "{} : no MC profile found on {} {} - assuming fixed grid";
     public static final String NO_PORT_ON_CP_LOGMSG =
-        "{} : No port {} on circuit pack {}";
-    public static final String NO_VALID_PARTNERPORT_UNIDIR_LOGMSG =
-        "{} : port {} on {} is unidirectional but has no valid partnerPort";
+        "{} : no port {} on circuit pack {}";
+    public static final String NO_VALID_PARTNERPORT_LOGMSG =
+        "{} : port {} on {} has no valid partner port";
+    public static final String NODE_TYPE_LOGMSG =
+        "{} : node-type {}";
+    public static final String NOT_CORRECT_CONPORT_LOGMSG =
+        "{} : the number of connection-port is not correct for DEG{}";
     public static final String NOT_CORRECT_PARTNERPORT_LOGMSG =
         "{} : port {} on {} is not a correct partner port of {} on {}";
     public static final String PARTNERPORT_CONF_ERROR_LOGMSG =
-        " - Error with partner port configuration";
+        " - error with partner port configuration";
     public static final String PARTNERPORT_GET_ERROR_LOGMSG =
-        " - Error getting partner port";
+        " - error getting partner port";
+    public static final String PORT_ALREADY_HANDLED_LOGMSG =
+        "{} : port {} on {} has already been handled";
+    public static final String PORT_NOT_RDMEXT_LOGMSG =
+        "{} : port {} on {} is not roadm-external";
     public static final String PORTDIR_ERROR_LOGMSG =
-        " - Error in configuration with port-direction";
+        " - error in configuration with port-direction";
     public static final String PORTMAPPING_IGNORE_LOGMSG =
         " - ignoring it in port-mapping";
+    public static final String PORTMAPPING_POST_FAIL_LOGMSG =
+        "{} : port-mapping post-treatment failure for {}";
     public static final String PORTQUAL_ERROR_LOGMSG =
-        " - Error in configuration with port-qual";
+        " - error in configuration with port-qual";
+    public static final String PORTQUAL_LOGMSG =
+        "{} : port {} on {} - PortQual {}";
     public static final String PROCESSING_DONE_LOGMSG =
-        "{} : Processing done {}";
+        "{} : processing done {}";
     public static final String UNABLE_MAPPING_LOGMSG =
-        "{} : Unable to {} mapping for {}";
+        "{} : unable to {} mapping for {}";
     public static final String UNABLE_MC_CAPA_LOGMSG =
-        "{} : Unable to create MC capabilities";
+        "{} : unable to create MC capabilities";
     public static final String UNSUPPORTED_DIR_LOGMSG =
         "{} : port {} on {} - unsupported Direction {}";
+    public static final String UPDATE_MAPPING_LOGMSG =
+        "{} : Updating old mapping data {} for {} by new mapping data {}";
+    public static final String XPDR_LIST_IN_CONF_LOGMSG =
+        "{} : list of Xponders {} in configuration";
 
     /**
      * Implements the FNV-1 64bit algorithm.