summaryrefslogtreecommitdiffstats
path: root/quantum-model
diff options
context:
space:
mode:
Diffstat (limited to 'quantum-model')
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java12
-rw-r--r--quantum-model/src/test/java/com/woorea/openstack/quantum/model/BindingTest.java4
2 files changed, 8 insertions, 8 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java
index 9f32f29..5efe995 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java
@@ -100,14 +100,14 @@ public class Port implements Serializable {
* A map containing additional information needed by the interface driver
*/
@JsonProperty("binding:vif_details")
- private Map<String, String> vifDetails;
+ private Map<String, Object> vifDetails;
/**
* A map to enable applications running on the specific host to pass and receive vif port specific information
* to the plugin.
*/
@JsonProperty("binding:profile")
- private Map<String, String> profile;
+ private Map<String, Object> profile;
public String getHostId() {
return hostId;
@@ -133,19 +133,19 @@ public class Port implements Serializable {
this.vnicType = vnicType;
}
- public Map<String, String> getVifDetails() {
+ public Map<String, Object> getVifDetails() {
return vifDetails;
}
- public void setVifDetails(Map<String, String> vifDetails) {
+ public void setVifDetails(Map<String, Object> vifDetails) {
this.vifDetails = vifDetails;
}
- public Map<String, String> getProfile() {
+ public Map<String, Object> getProfile() {
return profile;
}
- public void setProfile(Map<String, String> profile) {
+ public void setProfile(Map<String, Object> profile) {
this.profile = profile;
}
diff --git a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/BindingTest.java b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/BindingTest.java
index 0fe28bc..22d9735 100644
--- a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/BindingTest.java
+++ b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/BindingTest.java
@@ -76,12 +76,12 @@ public class BindingTest {
Assert.assertNotNull(vnicType);
binding.setVnicType(vnicType);
- Map<String,String> vifDetails = binding.getVifDetails();
+ Map<String,Object> vifDetails = binding.getVifDetails();
Assert.assertNotNull(vifDetails);
Assert.assertEquals(2, vifDetails.size());
binding.setVifDetails(vifDetails);
- Map<String,String> profile = binding.getProfile();
+ Map<String,Object> profile = binding.getProfile();
Assert.assertNotNull(profile);
Assert.assertEquals(2, profile.size());
binding.setProfile(profile);