Moti Asayag has posted comments on this change.
Change subject: restapi: Allow untagging a network with vlan-id
......................................................................
Patch Set 1:
(1 comment)
....................................................
File
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
Line 47: }
Line 48: if (model.isSetVlan()) {
Line 49:
Line 50: if (model.getVlan().getId() == null) {
Line 51: entity.setVlanId(null);
no special reason except the scary message on the catch block...in other wods:
fixed.
Line 52: } else {
Line 53: try {
Line 54: entity.setVlanId(model.getVlan().getId());
Line 55: } catch (NumberFormatException e) {
--
To view, visit http://gerrit.ovirt.org/18489
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id200dedd19412add194133a6f6554ecf6797f5a8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches