[CORD-2550] adding fields

Change-Id: I54fadc7bcb795fd05257b1142638e930ecbae16f
diff --git a/xos/models/models.py b/xos/models/models.py
index 594255a..4493452 100644
--- a/xos/models/models.py
+++ b/xos/models/models.py
@@ -29,6 +29,8 @@
     class Meta:
         proxy = True
 
+    ## TODO do not allow enbId duplicates
+
 
 class Handover(Handover_decl):
     class Meta:
diff --git a/xos/models/progran.xproto b/xos/models/progran.xproto
index 909f6e1..8591291 100644
--- a/xos/models/progran.xproto
+++ b/xos/models/progran.xproto
@@ -39,12 +39,17 @@
     required int32 DlAllocRBRate = 2 [db_index = False, null = False, blank = False];
     required string UlSchedType = 3 [default = "vm", choices = "(('RR', 'Round Robin'),)", max_length = 30, blank = False, null = False, db_index = False];
     required int32 UlAllocRBRate = 4 [db_index = False, null = False, blank = False];
-    required string start = 5 [content_type = "date", null = False, blank = True];
-    required string end = 6 [content_type = "date", null = False, blank = True];
-    required string AdmControl = 7 [default = "0", choices = "(('0', 'ALL'), ('1', 'Voice Only'), ('2', 'Data Only'))", max_length = 1, blank = False, null = False, db_index = False];
+    required string start = 5 [content_type = "date", null = True, blank = True];
+    required string end = 6 [content_type = "date", null = True, blank = True];
+    required int32 AdmControl = 7 [default = "0", choices = "(('0', 'ALL'), ('1', 'Voice Only'), ('2', 'Data Only'))", max_length = 1, blank = False, null = False, db_index = False];
     required int32 CellIndividualOffset = 8 [db_index = False, null = False, blank = False];
-    required manytoone enodeb->ENodeB:profiles = 9 [null = True, blank = True];
-    required manytoone handover->Handover:profiles = 10 [null = False, blank = False];
+    required string mmeip = 9 [db_index = False, max_length = 256, null = False, blank = False];
+    required string mmeport = 10 [db_index = False, max_length = 256, null = False, blank = False];
+    required int32 DlWifiRate = 11 [default = 100, db_index = False, null = False, blank = False];
+    required int32 DlUeAllocRbRate = 12 [default = 100, db_index = False, null = False, blank = False];
+    required string SubsProfile = 13 [ db_index = False, null = True, blank = True];
+    required manytoone enodeb->ENodeB:profiles = 14 [null = True, blank = True];
+    required manytoone handover->Handover:profiles = 15 [null = False, blank = False];
 }
 
 
diff --git a/xos/synchronizer/steps/helpers.py b/xos/synchronizer/steps/helpers.py
index 6795068..d52422b 100644
--- a/xos/synchronizer/steps/helpers.py
+++ b/xos/synchronizer/steps/helpers.py
@@ -27,7 +27,10 @@
 
     @staticmethod
     def get_progran_onos_info():
-        progran_service = ProgranService.objects.all()[0]
+        try:
+            progran_service = ProgranService.objects.all()[0]
+        except IndexError:
+            log.error("Cannot find Progran Service, does it exists?")
         return ProgranHelpers.get_onos_info_from_service(progran_service)
 
     @staticmethod
diff --git a/xos/synchronizer/steps/sync_progranserviceinstance.py b/xos/synchronizer/steps/sync_progranserviceinstance.py
index b8cbd3b..3b8e0d3 100644
--- a/xos/synchronizer/steps/sync_progranserviceinstance.py
+++ b/xos/synchronizer/steps/sync_progranserviceinstance.py
@@ -60,14 +60,18 @@
         profile = {
             'AdmControl': o.AdmControl,
             "DlSchedType": o.DlSchedType,
-            "Start": o.start,
+            "Start": o.start, # TODO date has to be in the format dd.MM.yyyy HH:mm
             "UlSchedType": o.UlSchedType,
-            "End": o.end,
+            "End": o.end, # TODO date has to be in the format dd.MM.yyyy HH:mm
             "CellIndividualOffset": o.CellIndividualOffset,
             "DlAllocRBRate": o.DlAllocRBRate,
             "Name": o.name,
             "UlAllocRBRate": o.UlAllocRBRate,
             "Handover": self.get_handover_for_profile(o),
+            'mmeip': o.mmeip,
+            'mmeport': o.mmeport,
+            'DlWifiRate': o.DlWifiRate,
+            'DlUeAllocRbRate': o.DlUeAllocRbRate,
         }
         profile = json.dumps(profile)
         return profile