File tree 3 files changed +12
-6
lines changed
api/src/main/java/org/apache/cloudstack/api/response
server/src/main/java/com/cloud/api
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ public void setIsolationMethods(List<String> isolationMethods) {
139
139
this .isolationMethods = buf .delete (buf .length () - 1 , buf .length ()).toString ();
140
140
}
141
141
142
+ public String getIsolationMethods () {
143
+ return isolationMethods ;
144
+ }
145
+
142
146
public void setName (String name ) {
143
147
this .name = name ;
144
148
}
Original file line number Diff line number Diff line change 25
25
import com .cloud .network .PhysicalNetworkTrafficType ;
26
26
import com .cloud .serializer .Param ;
27
27
28
- import java .util .List ;
29
-
30
28
@ EntityReference (value = PhysicalNetworkTrafficType .class )
31
29
public class TrafficTypeResponse extends BaseResponse {
32
30
@@ -67,7 +65,7 @@ public class TrafficTypeResponse extends BaseResponse {
67
65
68
66
@ SerializedName (ApiConstants .ISOLATION_METHODS )
69
67
@ Param (description = "isolation methods for the physical network traffic" )
70
- private List < String > isolationMethods ;
68
+ private String isolationMethods ;
71
69
72
70
@ SerializedName (ApiConstants .OVM3_NETWORK_LABEL )
73
71
@ Param (description = "The network name of the physical device dedicated to this traffic on an OVM3 host" )
@@ -142,13 +140,14 @@ public void setOvm3Label(String ovm3Label) {
142
140
this .ovm3NetworkLabel = ovm3Label ;
143
141
}
144
142
145
- public List < String > getIsolationMethods () {
143
+ public String getIsolationMethods () {
146
144
return isolationMethods ;
147
145
}
148
146
149
- public void setIsolationMethods (List < String > isolationMethods ) {
147
+ public void setIsolationMethods (String isolationMethods ) {
150
148
this .isolationMethods = isolationMethods ;
151
149
}
150
+
152
151
public String getVlan () {
153
152
return vlan ;
154
153
}
Original file line number Diff line number Diff line change @@ -3082,7 +3082,10 @@ public TrafficTypeResponse createTrafficTypeResponse(PhysicalNetworkTrafficType
3082
3082
PhysicalNetwork pnet = ApiDBUtils .findPhysicalNetworkById (result .getPhysicalNetworkId ());
3083
3083
if (pnet != null ) {
3084
3084
response .setPhysicalNetworkId (pnet .getUuid ());
3085
- response .setIsolationMethods (pnet .getIsolationMethods ());
3085
+ // using PhysicalNetworkResponse only to convert isolation methods to string
3086
+ PhysicalNetworkResponse pnetResponse = new PhysicalNetworkResponse ();
3087
+ pnetResponse .setIsolationMethods (pnet .getIsolationMethods ());
3088
+ response .setIsolationMethods (pnetResponse .getIsolationMethods ());
3086
3089
}
3087
3090
if (result .getTrafficType () != null ) {
3088
3091
response .setTrafficType (result .getTrafficType ().toString ());
You can’t perform that action at this time.
0 commit comments