fix bug 555 Change extended pci validation schema for sdn port mapping 05/6605/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 2 Oct 2018 11:43:47 +0000 (13:43 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 11 Oct 2018 15:46:53 +0000 (17:46 +0200)
Change-Id: I04eb9e35d313dcd61203e96f80a1c21ba78b6088
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
openmanod
osm_ro/openmano_schemas.py

index a6f5fc7..f842acc 100755 (executable)
--- a/openmanod
+++ b/openmanod
@@ -48,8 +48,8 @@ import osm_ro
 
 __author__ = "Alfonso Tierno, Gerardo Garcia, Pablo Montes"
 __date__ = "$26-aug-2014 11:09:29$"
-__version__ = "0.5.78-r588"
-version_date = "Sep 2018"
+__version__ = "0.5.79-r589"
+version_date = "Oct 2018"
 database_version = 32      # expected database schema version
 
 
index e3c4c67..4238237 100644 (file)
@@ -37,7 +37,8 @@ description_schema={"type" : ["string","null"], "maxLength":255, "pattern" : "^[
 id_schema_fake = {"type" : "string", "minLength":2, "maxLength":36 }  #"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
 id_schema = {"type" : "string", "pattern": "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$"}
 pci_schema={"type":"string", "pattern":"^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\.[0-9a-fA-F]$"}
-pci_extended_schema = {"type": "string", "pattern": "^[0-9a-fA-F.:-\[\]]$"}
+# allows [] for wildcards. For that reason huge length limit is set
+pci_extended_schema = {"type": "string", "pattern": "^[0-9a-fA-F.:-\[\]]{12,40}$"}
 
 http_schema={"type":"string", "pattern":"^https?://[^'\"=]+$"}
 bandwidth_schema={"type":"string", "pattern" : "^[0-9]+ *([MG]bps)?$"}