Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/java/org/openstack4j/model/network/Port.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public interface Port extends Resource, Buildable<PortBuilder> {
/**
* @return The port security status. A valid value is enabled (true) or disabled (false).
*/
boolean isPortSecurityEnabled();
Boolean isPortSecurityEnabled();


}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public interface PortBuilder extends Builder<PortBuilder, Port> {

PortBuilder securityGroup(String groupName);

PortBuilder portSecurityEnabled(boolean portSecurityEnabled);
PortBuilder portSecurityEnabled(Boolean portSecurityEnabled);


}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class NeutronPort implements Port {
private List<NeutronExtraDhcpOptCreate> extraDhcpOptCreates;

@JsonProperty("port_security_enabled")
private boolean portSecurityEnabled = true;
private Boolean portSecurityEnabled;

public static PortBuilder builder() {
return new PortConcreteBuilder();
Expand Down Expand Up @@ -204,7 +204,7 @@ public void setTenantId(String tenantId) {
* {@inheritDoc}
*/
@Override
public boolean isPortSecurityEnabled() {
public Boolean isPortSecurityEnabled() {
return portSecurityEnabled;
}

Expand Down Expand Up @@ -364,14 +364,14 @@ public PortBuilder extraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate) {
@Override
public PortBuilder securityGroup(String groupName) {
if(m.securityGroups==null){
m.securityGroups = new ArrayList<String>();
m.securityGroups = new ArrayList<>();
}
m.securityGroups.add(groupName);
return this;
}

@Override
public PortBuilder portSecurityEnabled(boolean portSecurityEnabled) {
public PortBuilder portSecurityEnabled(Boolean portSecurityEnabled) {
m.portSecurityEnabled=portSecurityEnabled;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class NeutronPortCreate implements ModelEntity {
private List<String> securityGroups;

@JsonProperty("port_security_enabled")
private boolean portSecurityEnabled;
private Boolean portSecurityEnabled;

public NeutronPortCreate() {
}
Expand Down