Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix subscription id before data delivery
[ric-plt/a1.git]
/
a1
/
messages.py
diff --git
a/a1/messages.py
b/a1/messages.py
index
cbcea08
..
3663053
100644
(file)
--- a/
a1/messages.py
+++ b/
a1/messages.py
@@
-1,6
+1,3
@@
-"""
-rmr messages
-"""
# ==================================================================================
# Copyright (c) 2019 Nokia
# Copyright (c) 2018-2019 AT&T Intellectual Property.
# ==================================================================================
# Copyright (c) 2019 Nokia
# Copyright (c) 2018-2019 AT&T Intellectual Property.
@@
-17,6
+14,9
@@
rmr messages
# See the License for the specific language governing permissions and
# limitations under the License.
# ==================================================================================
# See the License for the specific language governing permissions and
# limitations under the License.
# ==================================================================================
+"""
+rmr messages
+"""
def a1_to_handler(operation, policy_type_id, policy_instance_id, payload=None):
def a1_to_handler(operation, policy_type_id, policy_instance_id, payload=None):
@@
-29,3
+29,13
@@
def a1_to_handler(operation, policy_type_id, policy_instance_id, payload=None):
"policy_instance_id": policy_instance_id,
"payload": payload,
}
"policy_instance_id": policy_instance_id,
"payload": payload,
}
+
+
+def ei_to_handler(ei_job_id, payload=None):
+ """
+ used to create the payloads that get sent to downstream policy handlers
+ """
+ return {
+ "ei_job_id": ei_job_id,
+ "payload": payload,
+ }