X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=3579c114b154615b0f901ae6d1892d0d5aa40421;hb=refs%2Fchanges%2F82%2F7082%2F1;hp=bb966e23b2b79abafa9f7ae0231ea0cc6a0044d8;hpb=55ba2e6f758ae650a2dbbc20638c0108df726809;p=osm%2FNBI.git diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index bb966e2..3579c11 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -178,6 +178,7 @@ ns_instantiate_internal_vld = { "properties": { "name": name_schema, "vim-network-name": name_schema, + "vim-network-id": name_schema, "ip-profile": ip_profile_update_schema, "internal-connection-point": { "type": "array", @@ -247,6 +248,7 @@ ns_instantiate = { "properties": { "name": string_schema, "vim-network-name": {"OneOf": [string_schema, object_schema]}, + "vim-network-id": {"OneOf": [string_schema, object_schema]}, "ip-profile": object_schema, "vnfd-connection-point-ref": { "type": "array", @@ -482,7 +484,7 @@ pdu_interface = { # TODO, add user, password, ssh-key "mac-address": mac_schema, "vim-network-name": nameshort_schema, # interface is connected to one vim network, or switch port - # TODO "vim-network-id": nameshort_schema, + "vim-network-id": nameshort_schema, # # provide this in case SDN assist must deal with this interface # "switch-dpid": dpid_Schema, # "switch-port": nameshort_schema, @@ -624,6 +626,7 @@ nsi_vld_instantiate = { "properties": { "name": string_schema, "vim-network-name": {"OneOf": [string_schema, object_schema]}, + "vim-network-id": {"OneOf": [string_schema, object_schema]}, "ip-profile": object_schema, }, "required": ["name"],