Skip to content

Commit

Permalink
added interfaces to compute server interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan DeVilbiss committed Dec 11, 2024
1 parent 2895c49 commit 63153fd
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ public class ComputeServerInterface extends MorpheusModel {
@JsonSerialize(using= ModelAsIdOnlySerializer.class)
protected NetworkSubnet subnet;
// public NetworkGroup networkGroup;
protected String networkPosition;
protected String networkPosition;
protected Integer displayOrder = 0;
@JsonSerialize(using= ModelAsIdOnlySerializer.class)
protected NetworkPool networkPool;
@JsonSerialize(using= ModelAsIdOnlySerializer.class)
protected NetworkDomain networkDomain;
protected List<NetAddress> addresses = new ArrayList<>();

protected List<ComputeServerInterface> interfaces = new ArrayList<>();
public ComputeServerInterfaceType type;
protected String ipMode; //dhcp/static/pool
protected String ipMode; //dhcp/static/pool
protected Boolean replaceHostRecord;
protected String macAddress;
protected String externalType;
Expand Down Expand Up @@ -406,4 +406,13 @@ void setIpv6Address(String ipv6Address) {
this.addresses.add(new NetAddress(NetAddress.AddressType.IPV6,ipAddress));
}
}

public List<ComputeServerInterface> getInterfaces() {
return interfaces;
}

public void setInterfaces(List<ComputeServerInterface> interfaces) {
this.interfaces = interfaces;
markDirty("interfaces", interfaces);
}
}

0 comments on commit 63153fd

Please sign in to comment.