X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=c4f6fb7e605e5f64db0a5133aaf7c112c716e6cb;hp=69caff7b3b4d593f06400f9a7129cf2850c3fae8;hb=7adaeb0a49340e8f46e82b6526bce4d6ecefd80e;hpb=332e080919376d26f7bb98478d9ebe14b73f4d03 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 69caff7..c4f6fb7 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -480,21 +480,24 @@ wim_account_new_schema = { sdn_properties = { "name": name_schema, + "type": {"type": "string"}, + "url": {"type": "string"}, + "user": shortname_schema, + "password": passwd_schema, + "config": {"type": "object"}, "description": description_schema, + # The folowing are deprecated. Maintanied for backward compatibility "dpid": dpid_Schema, "ip": ip_schema, "port": port_schema, - "type": {"type": "string", "enum": ["opendaylight", "floodlight", "onos"]}, "version": {"type": "string", "minLength": 1, "maxLength": 12}, - "user": shortname_schema, - "password": passwd_schema } sdn_new_schema = { "title": "sdn controller information schema", "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": sdn_properties, - "required": ["name", "port", 'ip', 'dpid', 'type'], + "required": ["name", 'type'], "additionalProperties": False } sdn_edit_schema = {