"type": "string",
"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
}
+ipv6_schema = {
+ "type": "string",
+ "pattern": "(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))",
+}
ip_prefix_schema = {
"type": "string",
"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}"
"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,
"nsName": name_schema,
"nsDescription": {"oneOf": [description_schema, null_schema]},
"nsdId": id_schema,
- "vcaId": id_schema,
"vimAccountId": id_schema,
"wimAccountId": {"oneOf": [id_schema, bool_schema, null_schema]},
"placement-engine": string_schema,
"properties": {
"member-vnf-index": name_schema,
"vimAccountId": id_schema,
- "vcaId": id_schema,
"vdu": {
"type": "array",
"minItems": 1,
# "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,
"vca": id_schema,
"config": {"type": "object"},
# "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,
"vca": id_schema,
"config": {"type": "object"},
"wim": name_schema,
"wim_type": wim_type,
"wim_url": description_schema,
- "user": shortname_schema,
+ "user": string_schema,
"password": passwd_schema,
"config": {"type": "object"},
},
"wim": name_schema,
"wim_type": wim_type,
"wim_url": description_schema,
- "user": shortname_schema,
+ "user": string_schema,
"password": passwd_schema,
"config": {
"type": "object",
"name": name_schema,
"type": {"type": "string"},
"url": {"type": "string"},
- "user": shortname_schema,
+ "user": string_schema,
"password": passwd_schema,
"config": {"type": "object"},
"description": description_schema,
"name": name_schema,
"description": description_schema,
"endpoints": description_list_schema,
- "user": shortname_schema,
+ "user": string_schema,
"secret": passwd_schema,
"cacert": long_description_schema,
"lxd-cloud": shortname_schema,
"description": description_schema,
"endpoints": description_list_schema,
"port": integer1_schema,
- "user": shortname_schema,
+ "user": string_schema,
"secret": passwd_schema,
"cacert": long_description_schema,
"lxd-cloud": shortname_schema,
"description": description_schema,
"type": osmrepo_types,
"url": description_schema
- # "user": shortname_schema,
+ # "user": string_schema,
# "password": passwd_schema
}
osmrepo_new_schema = {
"name": shortname_schema,
"mgmt": bool_schema,
"type": {"enum": ["overlay", "underlay"]},
- "ip-address": ip_schema,
+ "ip-address": {"oneOf": [ip_schema, ipv6_schema]},
# TODO, add user, password, ssh-key
"mac-address": mac_schema,
"vim-network-name": shortname_schema, # interface is connected to one vim network, or switch port
"title": "New user schema",
"type": "object",
"properties": {
- "username": shortname_schema,
+ "username": string_schema,
"domain_name": shortname_schema,
"password": passwd_schema,
"projects": nameshort_list_schema,
"type": "object",
"properties": {
"password": passwd_schema,
- "username": shortname_schema, # To allow User Name modification
+ "username": string_schema, # To allow User Name modification
"projects": {"oneOf": [nameshort_list_schema, array_edition_schema]},
"project_role_mappings": project_role_mappings,
"add_project_role_mappings": project_role_mappings,
"paramsBasic": {
"type": "object",
"properties": {
- "userName": shortname_schema,
+ "userName": string_schema,
"password": passwd_schema,
},
},