aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2017-11-17 21:08:55 -0800
committerEric Multanen <eric.w.multanen@intel.com>2017-11-17 21:08:55 -0800
commitc22ae94f7fcb6b2f49b23e2fefe2ef501106aad5 (patch)
tree4d52209722aca296193abbb8f52c44b0348054a7
parentcaba44b0a20be8f08e44f58aa4acd21a2123611e (diff)
Fix setting vGMUX VES server port via honeycomb
Fixes an issue where vpp would crash if the VES server port number was set via honeycomb rest call. The port value was being handled as a byte so larger values (e.g. 8080) caused the problem. Change-Id: Ib42725033f92d597524bbfda1f12cc7e43c87b4a Issue-ID: INT-63 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
-rw-r--r--vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches/Hc2vpp-Add-VES-agent-for-vG-MUX.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches/Hc2vpp-Add-VES-agent-for-vG-MUX.patch b/vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches/Hc2vpp-Add-VES-agent-for-vG-MUX.patch
index 0f061fc4..7899ed9a 100644
--- a/vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches/Hc2vpp-Add-VES-agent-for-vG-MUX.patch
+++ b/vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches/Hc2vpp-Add-VES-agent-for-vG-MUX.patch
@@ -739,7 +739,7 @@ index 0000000..e06afa7
+ throws WriteFailedException {
+ final VesAgentConfig request = new VesAgentConfig();
+
-+ request.serverPort = config.getServerPort().byteValue();
++ request.serverPort = config.getServerPort().intValue();
+ request.readInterval = config.getReadInterval().byteValue();
+ request.isAdd = config.getIsAdd().byteValue();
+ request.serverAddr = ipv4AddressNoZoneToArray(config.getServerAddr().getValue());
@@ -1041,7 +1041,7 @@ index 0000000..62e46cd
+ throws WriteFailedException {
+ final VesAgentConfig request = new VesAgentConfig();
+
-+ request.serverPort = config.getServerPort().byteValue();
++ request.serverPort = config.getServerPort().intValue();
+ request.readInterval = config.getReadInterval().byteValue();
+ request.isAdd = config.getIsAdd().byteValue();
+ request.serverAddr = ipv4AddressNoZoneToArray(config.getServerAddr().getValue());