diff --git a/core/src/main/java/org/openstack4j/openstack/networking/domain/NeutronPortCreate.java b/core/src/main/java/org/openstack4j/openstack/networking/domain/NeutronPortCreate.java index 357e4504d..f34ad257c 100644 --- a/core/src/main/java/org/openstack4j/openstack/networking/domain/NeutronPortCreate.java +++ b/core/src/main/java/org/openstack4j/openstack/networking/domain/NeutronPortCreate.java @@ -3,6 +3,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; + import org.openstack4j.model.ModelEntity; import org.openstack4j.model.network.Port; import org.openstack4j.openstack.common.ListEntity; @@ -41,6 +42,12 @@ public class NeutronPortCreate implements ModelEntity { @JsonProperty("tenant_id") private String tenantId; + @JsonProperty("device_id") + private String deviceId; + + @JsonProperty("device_owner") + private String deviceOwner; + @JsonProperty("security_groups") private List securityGroups; @@ -80,6 +87,8 @@ public static NeutronPortCreate fromPort(Port port) { c.adminStateUp = port.isAdminStateUp(); c.macAddress = port.getMacAddress(); c.tenantId = port.getTenantId(); + c.deviceId = port.getDeviceId(); + c.deviceOwner = port.getDeviceOwner(); c.securityGroups = port.getSecurityGroups(); c.fixedIps = (Set) port.getFixedIps(); c.portSecurityEnabled=port.isPortSecurityEnabled();