[CORD-2550] Enodeb update and reading IMSI <-> Profile relation from ONOS
Change-Id: If8cc7c7d7a848c6fcedba672e66ffe0c6f8761b7
diff --git a/xos/synchronizer/steps/sync_enodeb.py b/xos/synchronizer/steps/sync_enodeb.py
index 7579763..b0e4172 100644
--- a/xos/synchronizer/steps/sync_enodeb.py
+++ b/xos/synchronizer/steps/sync_enodeb.py
@@ -58,10 +58,13 @@
log.debug("Sync'ing enodeb with data", request_data=data)
if o.previously_sync == False:
- log.debug("Sending POST")
+ log.debug("Sending POST", url=enodeb_url, data=json.dumps(data))
r = requests.post(enodeb_url, data=json.dumps(data), auth=HTTPBasicAuth(onos['username'], onos['password']))
else:
- log.debug("Sending PUT")
+ data = {
+ "EnodeB": data
+ }
+ log.debug("Sending PUT", url=enodeb_url, data=json.dumps(data))
r = requests.put(enodeb_url, data=json.dumps(data),
auth=HTTPBasicAuth(onos['username'], onos['password']))