2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
17 // This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 // platform project (RICP).
25 type E2SetupSuccessResponseMessage struct {
26 XMLName xml.Name `xml:"E2SetupSuccessResponseMessage"`
27 Text string `xml:",chardata"`
29 Text string `xml:",chardata"`
30 SuccessfulOutcome struct {
31 Text string `xml:",chardata"`
32 ProcedureCode string `xml:"procedureCode"`
34 Text string `xml:",chardata"`
35 Reject string `xml:"reject"`
38 Text string `xml:",chardata"`
39 E2setupResponse struct {
40 Text string `xml:",chardata"`
42 Text string `xml:",chardata"`
43 E2setupResponseIEs struct {
44 Text string `xml:",chardata"`
47 Text string `xml:",chardata"`
48 Reject string `xml:"reject"`
51 Text string `xml:",chardata"`
53 Text string `xml:",chardata"`
54 PLMNIdentity string `xml:"pLMN-Identity"`
55 RicID string `xml:"ric-ID"`
56 } `xml:"GlobalRIC-ID"`
58 } `xml:"E2setupResponseIEs"`
60 } `xml:"E2setupResponse"`
62 } `xml:"successfulOutcome"`
67 func (m *E2SetupSuccessResponseMessage) SetPlmnId(plmnId string){
68 m.E2APPDU.SuccessfulOutcome.Value.E2setupResponse.ProtocolIEs.E2setupResponseIEs.Value.GlobalRICID.PLMNIdentity = plmnId
71 func (m *E2SetupSuccessResponseMessage) SetNbId(ricID string){
72 m.E2APPDU.SuccessfulOutcome.Value.E2setupResponse.ProtocolIEs.E2setupResponseIEs.Value.GlobalRICID.RicID = ricID