Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RIC-208 - KA Decision: ask K8S to restart E2T instance - comment code
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
rmrmsghandlers
/
e2_term_init_notification_handler.go
diff --git
a/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go
b/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go
index
0059b2a
..
4aa4039
100644
(file)
--- a/
E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go
+++ b/
E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go
@@
-62,7
+62,7
@@
func (h E2TermInitNotificationHandler) Handle(request *models.NotificationReques
return
}
return
}
- h.logger.Infof("#E2TermInitNotificationHandler.Handle - E2T
address: %s - handling E2_TERM_INIT", e2tAddress
)
+ h.logger.Infof("#E2TermInitNotificationHandler.Handle - E2T
payload: %s - handling E2_TERM_INIT", unmarshalledPayload
)
e2tInstance, err := h.e2tInstancesManager.GetE2TInstance(e2tAddress)
e2tInstance, err := h.e2tInstancesManager.GetE2TInstance(e2tAddress)
@@
-74,7
+74,7
@@
func (h E2TermInitNotificationHandler) Handle(request *models.NotificationReques
return
}
return
}
- h.HandleNewE2TInstance(e2tAddress)
+ h.HandleNewE2TInstance(e2tAddress
, unmarshalledPayload.PodName
)
return
}
return
}
@@
-105,7
+105,7
@@
func (h E2TermInitNotificationHandler) HandleExistingE2TInstance(e2tInstance *en
}
}
}
}
-func (h E2TermInitNotificationHandler) HandleNewE2TInstance(e2tAddress string) {
+func (h E2TermInitNotificationHandler) HandleNewE2TInstance(e2tAddress string
, podName string
) {
err := h.routingManagerClient.AddE2TInstance(e2tAddress)
err := h.routingManagerClient.AddE2TInstance(e2tAddress)
@@
-114,5
+114,5
@@
func (h E2TermInitNotificationHandler) HandleNewE2TInstance(e2tAddress string) {
return
}
return
}
- _ = h.e2tInstancesManager.AddE2TInstance(e2tAddress)
+ _ = h.e2tInstancesManager.AddE2TInstance(e2tAddress
, podName
)
}
\ No newline at end of file
}
\ No newline at end of file