commit | d935f45426c5c0f4f782b04142f5ba8d36d8411b | [log] [tgz] |
---|---|---|
author | Saurav Das <saurav.das@opennetworking.org> | Thu Oct 29 14:34:53 2020 -0700 |
committer | Saurav Das <saurav.das@opennetworking.org> | Thu Oct 29 15:45:11 2020 -0700 |
tree | a1a9365366555f9e5fdb68d36c8f7c6c5950d409 | |
parent | 55ebcea519a72f6b0ae3d9e80d1881dc64fead67 [diff] |
Check for blank remoteId in sadis configuration Change-Id: I3f79e9d05d0eacf6befcb5b83e9d9bcdcf0f6174
diff --git a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java index 7a369de..7f523b9 100755 --- a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java +++ b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
@@ -1028,7 +1028,9 @@ } else { option82.setAgentCircuitId(entry.circuitId()); } - option82.setAgentRemoteId(entry.remoteId()); + if (entry.remoteId() != null && !entry.remoteId().isBlank()) { + option82.setAgentRemoteId(entry.remoteId()); + } if (log.isTraceEnabled()) { log.trace("adding option82 {} ", option82); }