From 18e11ac0c8d5cf10bea5e6a4cdca18725873a02b Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Fri, 5 Oct 2012 09:27:21 -0700 Subject: [PATCH] These need to be objects instead of primitives otherwise they get included by default during conversion to json. --- .../src/com/cloud/network/nicira/Match.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/Match.java b/plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/Match.java index cd898476b39..ce5205ba47f 100644 --- a/plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/Match.java +++ b/plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/Match.java @@ -22,15 +22,15 @@ package com.cloud.network.nicira; public class Match { private Integer protocol; private String source_ip_addresses; - private boolean source_ip_addresses_not; + private Boolean source_ip_addresses_not; private String destination_ip_addresses; - private boolean destination_ip_addresses_not; + private Boolean destination_ip_addresses_not; private Integer source_port_min; private Integer source_port_max; - private boolean source_port_not; + private Boolean source_port_not; private Integer destination_port_min; private Integer destination_port_max; - private boolean destination_port_not; + private Boolean destination_port_not; private String ethertype = "IPv4"; public Integer getProtocol() { @@ -57,11 +57,11 @@ public class Match { this.source_port_max = source_port_max; } - public boolean isSourcePortNot() { + public Boolean isSourcePortNot() { return source_port_not; } - public void setSourcePortNot(boolean source_port_not) { + public void setSourcePortNot(Boolean source_port_not) { this.source_port_not = source_port_not; } @@ -81,11 +81,11 @@ public class Match { this.destination_port_max = destination_port_max; } - public boolean isDestinationPortNot() { + public Boolean isDestinationPortNot() { return destination_port_not; } - public void setDestinationPortNot(boolean destination_port_not) { + public void setDestinationPortNot(Boolean destination_port_not) { this.destination_port_not = destination_port_not; } @@ -121,11 +121,11 @@ public class Match { this.destination_ip_addresses = destination_ip_addresses; } - public boolean isDestinationIpAddressesNot() { + public Boolean isDestinationIpAddressesNot() { return destination_ip_addresses_not; } - public void setDestinationIpAddressesNot(boolean destination_ip_addresses_not) { + public void setDestinationIpAddressesNot(Boolean destination_ip_addresses_not) { this.destination_ip_addresses_not = destination_ip_addresses_not; }