Improve log message of DHCP relay

Change-Id: Ibd353647ca5cfa93c8bf42183ad5490070d64e53
This commit is contained in:
Charles Chan 2016-12-07 15:39:22 -08:00
parent 97db3508ad
commit 1b20123ed8

View File

@ -287,12 +287,11 @@ public class DhcpRelay {
//process the dhcp packet before sending to server //process the dhcp packet before sending to server
private void processDhcpPacket(PacketContext context, DHCP dhcpPayload) { private void processDhcpPacket(PacketContext context, DHCP dhcpPayload) {
ConnectPoint inPort = context.inPacket().receivedFrom();
Set<Interface> clientServerInterfaces = interfaceService. Set<Interface> clientServerInterfaces = interfaceService.getInterfacesByPort(inPort);
getInterfacesByPort(context.inPacket().receivedFrom());
//ignore the packets if dhcp client interface is not configured on onos. //ignore the packets if dhcp client interface is not configured on onos.
if (clientServerInterfaces.isEmpty()) { if (clientServerInterfaces.isEmpty()) {
log.warn("client virtual interface not configured"); log.warn("Virtual interface is not configured on {}", inPort);
return; return;
} }