@Test public void testNatFlow_noAugmentation() { EndpointL3 testEndpointL3 = new EndpointL3Builder().build(); flows.createNatFlow((short) 3, testEndpointL3, null, 60, ofWriter); verifyZeroInteractions(ctx); verifyZeroInteractions(ofWriter); }
void createNatFlow(short goToTable, EndpointL3 l3Ep, OrdinalFactory.EndpointFwdCtxOrdinals endpointFwdCtxOrdinals, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Ep.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null || natAugL3Endpoint.getNatAddress() == null) { return; } if (l3Ep.getMacAddress() != null || l3Ep.getIpAddress() != null) { Flow flow = buildNatFlow(goToTable, natAugL3Endpoint.getNatAddress(), priority, l3Ep.getIpAddress(), l3Ep.getMacAddress(), endpointFwdCtxOrdinals); if (flow != null) { ofWriter.writeFlow(nodeId, tableId, flow); } } }
IngressNatMapperFlows { void createNatFlow(short goToTable, EndpointL3 l3Ep, OrdinalFactory.EndpointFwdCtxOrdinals endpointFwdCtxOrdinals, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Ep.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null || natAugL3Endpoint.getNatAddress() == null) { return; } if (l3Ep.getMacAddress() != null || l3Ep.getIpAddress() != null) { Flow flow = buildNatFlow(goToTable, natAugL3Endpoint.getNatAddress(), priority, l3Ep.getIpAddress(), l3Ep.getMacAddress(), endpointFwdCtxOrdinals); if (flow != null) { ofWriter.writeFlow(nodeId, tableId, flow); } } } }
IngressNatMapperFlows { void createNatFlow(short goToTable, EndpointL3 l3Ep, OrdinalFactory.EndpointFwdCtxOrdinals endpointFwdCtxOrdinals, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Ep.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null || natAugL3Endpoint.getNatAddress() == null) { return; } if (l3Ep.getMacAddress() != null || l3Ep.getIpAddress() != null) { Flow flow = buildNatFlow(goToTable, natAugL3Endpoint.getNatAddress(), priority, l3Ep.getIpAddress(), l3Ep.getMacAddress(), endpointFwdCtxOrdinals); if (flow != null) { ofWriter.writeFlow(nodeId, tableId, flow); } } } IngressNatMapperFlows(NodeId nodeId, short tableId); }
IngressNatMapperFlows { void createNatFlow(short goToTable, EndpointL3 l3Ep, OrdinalFactory.EndpointFwdCtxOrdinals endpointFwdCtxOrdinals, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Ep.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null || natAugL3Endpoint.getNatAddress() == null) { return; } if (l3Ep.getMacAddress() != null || l3Ep.getIpAddress() != null) { Flow flow = buildNatFlow(goToTable, natAugL3Endpoint.getNatAddress(), priority, l3Ep.getIpAddress(), l3Ep.getMacAddress(), endpointFwdCtxOrdinals); if (flow != null) { ofWriter.writeFlow(nodeId, tableId, flow); } } } IngressNatMapperFlows(NodeId nodeId, short tableId);  }
IngressNatMapperFlows { void createNatFlow(short goToTable, EndpointL3 l3Ep, OrdinalFactory.EndpointFwdCtxOrdinals endpointFwdCtxOrdinals, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Ep.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null || natAugL3Endpoint.getNatAddress() == null) { return; } if (l3Ep.getMacAddress() != null || l3Ep.getIpAddress() != null) { Flow flow = buildNatFlow(goToTable, natAugL3Endpoint.getNatAddress(), priority, l3Ep.getIpAddress(), l3Ep.getMacAddress(), endpointFwdCtxOrdinals); if (flow != null) { ofWriter.writeFlow(nodeId, tableId, flow); } } } IngressNatMapperFlows(NodeId nodeId, short tableId);   }