RIC-208 - K8S podName added to e2Instance 50/3150/1 common/v1.0.34 entities/v1.0.34 reader/v1.0.34 v1.0.34
authorIrina <ib565x@intl.att.com>
Sun, 5 Apr 2020 13:51:44 +0000 (16:51 +0300)
committerIrina <ib565x@intl.att.com>
Sun, 5 Apr 2020 13:51:52 +0000 (16:51 +0300)
Change-Id: I26f5d6eeadbb8c4947f56e3d80b7d8ac898d014f
Signed-off-by: Irina <ib565x@intl.att.com>
entities/e2t_instance.go
reader/go.mod

index ad5723a..29a3ebb 100644 (file)
@@ -23,17 +23,19 @@ import "time"
 
 type E2TInstance struct {
        Address            string           `json:"address"`
+       PodName            string           `json:"podName"`
        AssociatedRanList  []string         `json:"associatedRanList"`
        KeepAliveTimestamp int64            `json:"keepAliveTimestamp"`
        State              E2TInstanceState `json:"state"`
-       DeletionTimestamp  int64                        `json:"deletionTimeStamp"`
+       DeletionTimestamp  int64            `json:"deletionTimeStamp"`
 }
 
-func NewE2TInstance(address string) *E2TInstance {
-       return &E2TInstance{
+func NewE2TInstance(address string, podName string) *E2TInstance {
+               return &E2TInstance{
                Address:            address,
                KeepAliveTimestamp: time.Now().UnixNano(),
                State:              Active,
                AssociatedRanList:  []string{},
+               PodName:            podName,
        }
 }
index 3a0c4db..9aeb410 100644 (file)
@@ -3,8 +3,8 @@ module gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader
 go 1.12
 
 require (
-       gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common v1.0.32
-       gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities v1.0.32
+       gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common v1.0.34
+       gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities v1.0.34
        gerrit.o-ran-sc.org/r/ric-plt/sdlgo v0.5.0
        github.com/golang/protobuf v1.3.4
        github.com/pkg/errors v0.8.1