Skip to content

Commit

Permalink
UpdateL3Network should be able to update "system" attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
zxwing committed Jul 20, 2015
1 parent e96b1ad commit 40f041b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Expand Up @@ -15,6 +15,15 @@ public class APIUpdateL3NetworkMsg extends APIMessage implements L3NetworkMessag
private String name;
@APIParam(maxLength = 2048, required = false)
private String description;
private Boolean system;

public Boolean getSystem() {
return system;
}

public void setSystem(Boolean system) {
this.system = system;
}

public String getUuid() {
return uuid;
Expand Down
Expand Up @@ -285,6 +285,10 @@ private void handle(APIUpdateL3NetworkMsg msg) {
self.setDescription(msg.getDescription());
update = true;
}
if (msg.getSystem() != null) {
self.setSystem(msg.getSystem());
update = true;
}
if (update) {
self = dbf.updateAndRefresh(self);
}
Expand Down

0 comments on commit 40f041b

Please sign in to comment.