Adding vlanId to dhcp allocations command
Change-Id: I90e41001b227aa9507438d6127d1a94715913a36
diff --git a/app/src/main/java/org/opencord/dhcpl2relay/cli/DhcpL2RelayAllocationsCommand.java b/app/src/main/java/org/opencord/dhcpl2relay/cli/DhcpL2RelayAllocationsCommand.java
index 891e4fb..cf9776b 100644
--- a/app/src/main/java/org/opencord/dhcpl2relay/cli/DhcpL2RelayAllocationsCommand.java
+++ b/app/src/main/java/org/opencord/dhcpl2relay/cli/DhcpL2RelayAllocationsCommand.java
@@ -32,10 +32,12 @@
DhcpL2RelayService service = get(DhcpL2RelayService.class);
service.getAllocationInfo().forEach((key, value) -> {
- print("SubscriberId=%s,ConnectPoint=%s,State=%s,MAC=%s,CircuitId=%s" +
- ",IP Allocated=%s,Allocation Timestamp=%s",
- value.subscriberId(), value.location(), value.type(), value.macAddress().toString(),
- value.circuitId(), value.ipAddress().getIp4Address().toString(), value.allocationTime().toString());
+ print("SubscriberId=%s,ConnectPoint=%s,State=%s,MAC=%s,VLAN=%s"
+ + "CircuitId=%s,IP Allocated=%s,Allocation Timestamp=%s",
+ value.subscriberId(), value.location(), value.type(),
+ value.macAddress().toString(), value.vlanId().toString(),
+ value.circuitId(), value.ipAddress().getIp4Address().toString(),
+ value.allocationTime().toString());
});
}
}