aboutsummaryrefslogtreecommitdiffstats
path: root/hlr_mgmt/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'hlr_mgmt/views.py')
-rw-r--r--hlr_mgmt/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/hlr_mgmt/views.py b/hlr_mgmt/views.py
index 50f0ef0..078e309 100644
--- a/hlr_mgmt/views.py
+++ b/hlr_mgmt/views.py
@@ -394,6 +394,14 @@ def rename_component_view(request):
update_imei_name(request.db, reference, value)
if(field=="imsi"):
update_imsi_name(request.db, reference, value)
+ elif(field=="bts"):
+ settings = request.registry.settings
+ bsc = connect_bsc(settings)
+ if bsc.connected==True:
+ bsc.set_bts_description(reference, value)
+ bsc.close()
+ else:
+ return {'success':1}
else:
return {'success':0}
return {'success':1}