diff options
author | Steve Smokowski <ss835w@att.com> | 2020-05-15 10:13:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-15 10:13:46 +0000 |
commit | 7a29a83a89c9e01c0219342f7272bbd023828eda (patch) | |
tree | bb42e01973ae9be0670d1a468d045f3978fbe535 /bpmn/so-bpmn-tasks/src/main | |
parent | 5369c02f6f86ec64850c7a23183755b377c6f668 (diff) | |
parent | 7ae772d0115598564a5440f5400ab256252dcc2e (diff) |
Merge "Default gateway value to NULL when not present"
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/main')
-rw-r--r-- | bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java index 3f81e432e1..e317822a13 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java @@ -287,6 +287,9 @@ public class NetworkAdapterObjectMapper { for (org.onap.so.bpmn.servicedecomposition.bbobjects.Subnet subnet : subnets) { org.onap.so.openstack.beans.Subnet openstackSubnet = modelMapper.map(subnet, org.onap.so.openstack.beans.Subnet.class); + if (StringUtils.isEmpty(openstackSubnet.getGatewayIp())) { + openstackSubnet.setGatewayIp("NULL"); + } // update cidr value if (subnet.getNetworkStartAddress() != null && subnet.getCidrMask() != null) openstackSubnet |