Fix bug 1593 - Can not create Openstack vim due to special characters in username
[osm/NBI.git] / osm_nbi / validation.py
index 5b6cce1..9bc2624 100644 (file)
@@ -261,6 +261,7 @@ additional_params_for_vnf = {
                         "kdu_model": name_schema,
                         "k8s-namespace": name_schema,
                         "config-units": integer1_schema,    # number of configuration units of this knf, by default 1
+                        "kdu-deployment-name": name_schema,
                     },
                     "required": ["kdu_name"],
                     "minProperties": 2,
@@ -447,7 +448,7 @@ vim_account_edit_schema = {
         # "vim_url_admin": description_schema,
         # "vim_tenant": name_schema,
         "vim_tenant_name": name_schema,
-        "vim_user": shortname_schema,
+        "vim_user": string_schema,
         "vim_password": passwd_schema,
         "config": {"type": "object"}
     },
@@ -470,7 +471,7 @@ vim_account_new_schema = {
         # "vim_url_admin": description_schema,
         # "vim_tenant": name_schema,
         "vim_tenant_name": name_schema,
-        "vim_user": shortname_schema,
+        "vim_user": string_schema,
         "vim_password": passwd_schema,
         "config": {"type": "object"}
     },