Exemple #1
0
 @JsonIgnore
 public void update(DhcpSubnet from) {
   id = from.id;
   subnetAddress = IPSubnet.fromString(subnetPrefix + "/" + subnetLength);
   bridgeId = from.bridgeId;
   dhcpHosts = from.dhcpHosts;
 }
Exemple #2
0
 @JsonIgnore
 public void create(UUID bridgeId) {
   if (null == id) {
     id = UUID.randomUUID();
   }
   this.bridgeId = bridgeId;
   subnetAddress = IPSubnet.fromString(subnetPrefix + "/" + subnetLength);
 }