}
// Split based on type of interface....
+ if(ifState.getType() == null) {
+ return futures;
+ }
if (ifState.getType().isAssignableFrom(L2vlan.class)) {
return bindServiceOnVlan(boundServiceNew, allServices, ifState, dataBroker);
} else if (ifState.getType().isAssignableFrom(Tunnel.class)) {
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState =
InterfaceManagerCommonUtils.getInterfaceStateFromOperDS(interfaceName, dataBroker);
- if (ifState == null || ifState.getOperStatus() == OperStatus.Down) {
+ if (ifState == null || ifState.getType() == null || ifState.getOperStatus() == OperStatus.Down) {
LOG.info("Not unbinding Service since operstatus is DOWN for Interface: {}", interfaceName);
return futures;
}
return futures;
}
+ if(ifaceState.getType() == null) {
+ return futures;
+ }
if (ifaceState.getType().isAssignableFrom(L2vlan.class)) {
return bindServiceOnVlan(allServices, ifaceState, dataBroker);
} else if (ifaceState.getType().isAssignableFrom(Tunnel.class)){
return futures;
}
+ if(ifaceState.getType() == null) {
+ return futures;
+ }
+
if (ifaceState.getType().isAssignableFrom(L2vlan.class)) {
return unbindServiceOnVlan(allServices, ifaceState, ifaceState.getIfIndex(), dataBroker);
} else if (ifaceState.getType().isAssignableFrom(Tunnel.class)){
instructions.add(MDSALUtil.buildAndGetPopVlanActionInstruction(lportTag, instructionKey++));
}
instructions.add(MDSALUtil.buildAndGetWriteMetadaInstruction(metadata, metadataMask, instructionKey++));
- instructions.add(MDSALUtil.buildAndGetGotoTableInstruction(NwConstants.DHCP_TABLE, instructionKey++));
+ instructions.add(MDSALUtil.buildAndGetGotoTableInstruction(NwConstants.LPORT_DISPATCHER_TABLE, instructionKey++));
int priority = isVlanTransparent ? 1 : vlanId == 0 ? IfmConstants.FLOW_PRIORITY_FOR_UNTAGGED_VLAN : IfmConstants.FLOW_HIGH_PRIORITY;
String flowRef = getFlowRef(IfmConstants.VLAN_INTERFACE_INGRESS_TABLE, dpId, iface.getName());
Flow ingressFlow = MDSALUtil.buildFlowNew(IfmConstants.VLAN_INTERFACE_INGRESS_TABLE, flowRef, priority, flowRef, 0, 0,
public static final short VLAN_INTERFACE_INGRESS_TABLE = 0;
public static final short INTERNAL_TUNNEL_TABLE = 36;
public static final short EXTERNAL_TUNNEL_TABLE = 38;
- public static final short DHCP_TABLE = 16;
+ public static final short DHCP_TABLE = 25;
public static final short DHCP_TABLE_EXTERNAL_TUNNEL = 18;
}