From 9fb3271fa1d2568ef693d6f71d25884d7e6ea45e Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 4 Apr 2022 16:33:59 +0200 Subject: [PATCH] Fix bug 1961 to allow IPv6 addresses besides IPv4 as instantiation param Change-Id: Ib362e7749b67a279b0268d4939f8474289988c58 Signed-off-by: rodriguezgar Signed-off-by: garciadeblas --- osm_nbi/validation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index fc16f06..d1cfc1d 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -157,7 +157,7 @@ ns_instantiate_vdu = { "type": "object", "properties": { "name": name_schema, - "ip-address": ip_schema, + "ip-address": {"oneOf": [ip_schema, ipv6_schema]}, "mac-address": mac_schema, "floating-ip-required": bool_schema, }, @@ -176,7 +176,7 @@ ip_profile_dns_schema = { "items": { "type": "object", "properties": { - "address": ip_schema, + "address": {"oneOf": [ip_schema, ipv6_schema]}, }, "required": ["address"], "additionalProperties": False, @@ -246,7 +246,7 @@ provider_network_schema = { } ns_instantiate_internal_vld = { - "title": "ns action instantiate input schema for vdu", + "title": "ns action instantiate input schema for vld", "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { @@ -391,7 +391,7 @@ ns_instantiate = { "properties": { "member-vnf-index-ref": name_schema, "vnfd-connection-point-ref": name_schema, - "ip-address": ip_schema, + "ip-address": {"oneOf": [ip_schema, ipv6_schema]}, # "mac-address": mac_schema, }, "required": [ -- 2.17.1