Do not provision the OLT until the Tech-profile has been pushed into ETCD
Change-Id: I78671e63acfaab1ac8d865b22f12a4ca35c11fc1
diff --git a/xos/synchronizer/models/models.py b/xos/synchronizer/models/models.py
index a71817e..5198db2 100644
--- a/xos/synchronizer/models/models.py
+++ b/xos/synchronizer/models/models.py
@@ -148,5 +148,9 @@
except ValueError as e:
raise XOSValidationError('Technology Profile value not in valid JSON format')
+ # TODO validate the tech profile (in the model), see errors like:
+ # num_gem_ports=tech_profile[TechProfile.NUM_GEM_PORTS],\nKeyError: \'num_gem_ports\''
+ # in File "/voltha/common/tech_profile/tech_profile.py", line 403, in _get_tech_profile
+
super(TechnologyProfile, self).save(*args, **kwargs)
diff --git a/xos/synchronizer/models/volt.xproto b/xos/synchronizer/models/volt.xproto
index 3843c6d..8461301 100644
--- a/xos/synchronizer/models/volt.xproto
+++ b/xos/synchronizer/models/volt.xproto
@@ -236,6 +236,7 @@
help_text = "The technology being utilized by the adaptor",
db_index = True,
tosca_key = True,
+ choices = "(('gpon', 'gpon'), ('xgspon', 'xgspon'))",
max_length = 16];
required int32 profile_id = 2 [
help_text = "The numeric id of the profile",