summaryrefslogtreecommitdiffstats
path: root/quantum-model/src
diff options
context:
space:
mode:
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-03-28 18:47:43 -0400
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-03-28 18:47:43 -0400
commit05c2d103b96f463f1da9e12ea9301dce67b75dce (patch)
tree6be8dfba861ec6e3d8b9aeb4d0c365e7e50d4575 /quantum-model/src
parent4d31ac194f70065e7905a70b7c781125085169a4 (diff)
Fix Neutron Model
Fix Neutron model, it should use object not string Issue-ID: SO-1713 Change-Id: Ie40cef4fcd7aade05a18c4dffe077342f8236cc0 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
Diffstat (limited to 'quantum-model/src')
-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);