allow pci null for op_port_mapping to be used as external port for SDN-assist 22/7122/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 23 Jan 2019 10:22:30 +0000 (10:22 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 23 Jan 2019 10:22:30 +0000 (10:22 +0000)
Change-Id: Idf41a99ea6e017481416e00c82ab6e9119c5c694
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_openvim/vim_schema.py

index 59225ac..f09aff8 100644 (file)
@@ -778,7 +778,7 @@ of_port_new_schema = {
         "ofc_id": id_schema,
         "region": nameshort_schema,
         "compute_node": nameshort_schema,
-        "pci": pci_extended_schema,
+        "pci": {"OneOf": [{"type": "null"}, pci_extended_schema]},
         "switch_dpid": nameshort_schema,
         "switch_port": nameshort_schema,
         "switch_mac": mac_schema