commit | 8ca2bc044702473261394e8329149cdc46601539 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@opennetworking.org> | Thu Nov 30 18:23:42 2017 -0800 |
committer | Jonathan Hart <jono@opennetworking.org> | Tue Dec 05 00:17:00 2017 +0000 |
tree | ec51f2e3feae49dc5ab1c12bb44dc9d17474d74c | |
parent | 003213301f239ddfa32883682c779796f9819bad [diff] |
Small updates to SR to get it to ignore devices not configured as routers Change-Id: I2c0f695af1a6eab10607a8117faae5f6161a66d9
diff --git a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp6HandlerImpl.java b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp6HandlerImpl.java index 7c5c762..3df889f 100644 --- a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp6HandlerImpl.java +++ b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp6HandlerImpl.java
@@ -271,12 +271,9 @@ } byte msgType = dhcp6Payload.getMsgType(); - log.warn("msgType is {}", msgType); ConnectPoint inPort = context.inPacket().receivedFrom(); - if (inPort == null) { - log.warn("incommin ConnectPoint is null"); - } + Set<Interface> receivingInterfaces = interfaceService.getInterfacesByPort(inPort); //ignore the packets if dhcp client interface is not configured on onos. if (receivingInterfaces.isEmpty()) {