X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=common%2Futils.go;fp=common%2Futils.go;h=e14dcb034d6fe57294aa7b6576e7da4aa6ee0980;hb=718326d71c35bf7af233e8e3e32630bc55c60610;hp=baf5d233636def00d99c218cfc34500755f538ac;hpb=a699114d5bc927428e7cef7d17423333ded5f16c;p=ric-plt%2Fnodeb-rnib.git diff --git a/common/utils.go b/common/utils.go index baf5d23..e14dcb0 100644 --- a/common/utils.go +++ b/common/utils.go @@ -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