X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vim_schema.py;h=6d508a62879bd435c5ccc797b61c3e2d3b9a1cd3;hb=c1d1d47cee5bd382fd9e2ca4d829aef0f545a0d1;hp=f0aecb7511d6b86e8b7702acd7fa348dade4a648;hpb=f7aa8c4db7a57d5865d3b7767d5957fda6867198;p=osm%2Fopenvim.git diff --git a/vim_schema.py b/vim_schema.py index f0aecb7..6d508a6 100644 --- a/vim_schema.py +++ b/vim_schema.py @@ -2,7 +2,7 @@ ## # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. -# This file is part of openmano +# This file is part of openvim # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -117,12 +117,17 @@ config_schema = { "log_level": log_level_schema, "log_level_db": log_level_schema, "log_level_of": log_level_schema, + "network_type": {"type": "string", "enum": ["ovs", "bridge"]}, + "ovs_controller_file_path": path_schema, + "ovs_controller_user": nameshort_schema, + + "ovs_controller_ip": nameshort_schema }, "patternProperties": { "of_*" : {"type": ["string", "integer", "boolean"]} }, "required": ['db_host', 'db_user', 'db_passwd', 'db_name', - 'of_controller_ip', 'of_controller_port', 'of_controller_dpid', 'bridge_ifaces', 'of_controller'], + 'of_controller_ip', 'of_controller_port', 'of_controller_dpid', 'of_controller'], "additionalProperties": False } @@ -273,7 +278,7 @@ host_data_schema={ "type": "object", "properties":{ "admin_state_up":{"type":"boolean"}, - "hugepages":integer1_schema, + "hugepages":integer0_schema, "cores":{ "type": "array", "minItems":2, @@ -324,7 +329,7 @@ host_data_schema={ "memory":integer1_schema }, "additionalProperties": False, - "required": ["hugepages","cores","numa_socket"] + "required": ["cores","numa_socket"] } } }, @@ -625,8 +630,8 @@ network_update_schema = { "provider:physical":net_bind_schema, "cidr":cidr_schema, "enable_dhcp": {"type":"boolean"}, - "dhcp_first_ip": ip_schema, - "dhcp_last_ip": ip_schema, + # "dhcp_first_ip": ip_schema, + # "dhcp_last_ip": ip_schema, "bind_net":name_schema, #can be name, or uuid "bind_type":{"oneOf":[{"type":"null"},{"type":"string", "pattern":"^vlan:[0-9]{1,4}$"}]} },