+ /*Note: Deployment where CU-UP and DU are combined
+ (but do not include the CP-CP) and have a single E2 connection
+ is not supported. The combination of CU-CP, CU-UP, and DU will be
+ treated as a single gNB and expect it to have only the
+ global gNB ID in its E2 Setup ID*/
+
+ if cuupId != "" && duId != ""{
+ return fmt.Sprintf("%s:%s:%s", nodeType, plmnId, nbId), nil
+ }else if cuupId != "" {
+ return fmt.Sprintf("%s:%s:%s:%s", nodeType, plmnId, nbId, cuupId), nil
+ }else if duId != "" {
+ return fmt.Sprintf("%s:%s:%s:%s", nodeType, plmnId, nbId, duId ), nil
+ }else {