diff --git a/codegenerator/openapi/neutron.py b/codegenerator/openapi/neutron.py index fd21268..dfc2002 100644 --- a/codegenerator/openapi/neutron.py +++ b/codegenerator/openapi/neutron.py @@ -898,6 +898,28 @@ class NeutronGenerator(OpenStackServerSourceBase): ) elif field == "binding:vif_details": js_schema.update({"type": "object"}) + elif resource_key == "port" and field == "dns_assignment": + js_schema.update( + { + "type": "array", + "items": { + "type": "object", + "properties": { + "fqdn": { + "type": "string", + "format": "hostname", + }, + "hostname": { + "type": "string", + "format": "hostname", + }, + "ip_address": { + "type": "string", + }, + }, + }, + } + ) if data.get(f"allow_{method.lower()}", False): send_props[field] = js_schema if data.get("is_visible", False):