mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-08 02:41:47 +01: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
|
//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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user