fix network.agent property types

- agent.alive is boolean
- agent.configurations is an object

None of them is having any type marker in neutron-lib -> hardcode.

Change-Id: Ib1d394baf9f6375d541b38b21b9b7a30898a1fb3
This commit is contained in:
Artem Goncharov
2024-09-26 13:41:34 +02:00
parent cd8ff324cf
commit a9e8624e2b

View File

@@ -929,6 +929,8 @@ class NeutronGenerator(OpenStackServerSourceBase):
)
elif field == "revision_number":
js_schema.update({"type": "integer"})
elif field == "alive":
js_schema.update({"type": "boolean"})
elif field == "subnets":
js_schema.update(
{
@@ -1140,6 +1142,8 @@ class NeutronGenerator(OpenStackServerSourceBase):
)
elif resource_key == "subnetpool" and field == "ip_version":
js_schema.update({"type": "integer"})
elif resource_key == "agent" and field == "configurations":
js_schema.update({"type": "object"})
if data.get(f"allow_{method.lower()}", False):
send_props[field] = js_schema