NeutronVPN: Improve txn handling and fix memory leaks - Part 2
[netvirt.git] / neutronvpn / shell / src / main / java / org / opendaylight / netvirt / neutronvpn / shell / DhcpShowCommand.java
index 8d39ea6e3a07aba0476a47d54c00cdd5ac736556..d44bbd8af6487c94d2e10c71a5c743fac90b460a 100644 (file)
@@ -40,6 +40,9 @@ public class DhcpShowCommand extends OsgiCommandSupport {
         if (isDhcpConfigAvailable(dhcpConfig)) {
             leaseDuration = dhcpConfig.getConfigs().get(0).getLeaseDuration();
             defDomain = dhcpConfig.getConfigs().get(0).getDefaultDomain();
+        } else {
+            session.getConsole().println("DHCP Config not present");
+            LOG.error("doExecute: DHCP Config not present");
         }
         session.getConsole().println(
                 "Lease Duration: " + (leaseDuration != null ? leaseDuration : DhcpMConstants.DEFAULT_LEASE_TIME));