Hardwire subnetpool.ip_version to be integer

Neutron treats ip_version as integer but the apidef does not tell
anything about that. Implement hard overwrite.
Change-Id: I71a3416bb09325bbe8d8058d2d412023ea3a8c5f
This commit is contained in:
Artem Goncharov
2024年08月13日 10:59:25 +02:00
parent 7931cdee83
commit f1c48c27a4

View File

@@ -1100,6 +1100,8 @@ class NeutronGenerator(OpenStackServerSourceBase):
},
}
)
elif resource_key == "subnetpool" and field == "ip_version":
js_schema.update({"type": "integer"})
if data.get(f"allow_{method.lower()}", False):
send_props[field] = js_schema
Reference in New Issue
openstack/codegenerator
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.