Fix fip.port_details schema
port_details is an object and not array of objects. Change-Id: I4095e664d714222d1d1ef8fdac0422393e7c451b
This commit is contained in:
@@ -1027,39 +1027,36 @@ class NeutronGenerator(OpenStackServerSourceBase):
|
||||
elif resource_key == "floatingip" and field == "port_details":
|
||||
js_schema.update(
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Human-readable name of the resource.",
|
||||
},
|
||||
"network_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The ID of the attached network.",
|
||||
},
|
||||
"admin_state_up": {
|
||||
"type": ["string", "boolean"],
|
||||
"description": "The administrative state of the resource, which is up (`true`) or down (`false`).",
|
||||
},
|
||||
"mac_address": {
|
||||
"type": "string",
|
||||
"description": "The MAC address of the port. If the port uses the `direct-physical` `vnic_type` then the value of this field is overwritten with the MAC address provided in the active binding:profile if any.",
|
||||
},
|
||||
"device_id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the device that uses this port. For example, a server instance or a logical router.",
|
||||
},
|
||||
"device_owner": {
|
||||
"type": "string",
|
||||
"description": "The entity type that uses this port. For example, `compute:nova` (server instance), `network:dhcp` (DHCP agent) or `network:router_interface` (router interface).",
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "The port status. Values are `ACTIVE`, `DOWN`, `BUILD` and `ERROR`.",
|
||||
},
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Human-readable name of the resource.",
|
||||
},
|
||||
"network_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The ID of the attached network.",
|
||||
},
|
||||
"admin_state_up": {
|
||||
"type": ["string", "boolean"],
|
||||
"description": "The administrative state of the resource, which is up (`true`) or down (`false`).",
|
||||
},
|
||||
"mac_address": {
|
||||
"type": "string",
|
||||
"description": "The MAC address of the port. If the port uses the `direct-physical` `vnic_type` then the value of this field is overwritten with the MAC address provided in the active binding:profile if any.",
|
||||
},
|
||||
"device_id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the device that uses this port. For example, a server instance or a logical router.",
|
||||
},
|
||||
"device_owner": {
|
||||
"type": "string",
|
||||
"description": "The entity type that uses this port. For example, `compute:nova` (server instance), `network:dhcp` (DHCP agent) or `network:router_interface` (router interface).",
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "The port status. Values are `ACTIVE`, `DOWN`, `BUILD` and `ERROR`.",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user