mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-15 17:31:31 +02:00
Improve log message of DHCP relay
Change-Id: Ibd353647ca5cfa93c8bf42183ad5490070d64e53
This commit is contained in:
parent
97db3508ad
commit
1b20123ed8
@ -287,12 +287,11 @@ public class DhcpRelay {
|
||||
|
||||
//process the dhcp packet before sending to server
|
||||
private void processDhcpPacket(PacketContext context, DHCP dhcpPayload) {
|
||||
|
||||
Set<Interface> clientServerInterfaces = interfaceService.
|
||||
getInterfacesByPort(context.inPacket().receivedFrom());
|
||||
ConnectPoint inPort = context.inPacket().receivedFrom();
|
||||
Set<Interface> clientServerInterfaces = interfaceService.getInterfacesByPort(inPort);
|
||||
//ignore the packets if dhcp client interface is not configured on onos.
|
||||
if (clientServerInterfaces.isEmpty()) {
|
||||
log.warn("client virtual interface not configured");
|
||||
log.warn("Virtual interface is not configured on {}", inPort);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user