[RICPLT-2585] Update NodebInfo proto | GetE2TInstance | GetE2TInfoList
[ric-plt/nodeb-rnib.git] / common / utils.go
index baf5d23..e14dcb0 100644 (file)
@@ -84,3 +84,12 @@ func ValidateAndBuildRanLoadInformationKey(inventoryName string) (string, error)
 
        return fmt.Sprintf("LOAD:%s", inventoryName), nil
 }
+
+func ValidateAndBuildE2TInstanceKey(address string) (string, error) {
+
+       if address == "" {
+               return "", NewValidationError("#utils.ValidateAndBuildRanLoadInformationKey - an empty inventory name received")
+       }
+
+       return fmt.Sprintf("E2TInstance:%s", address), nil
+}
\ No newline at end of file