@Test public void testNatFlows_noAugmentation() { EndpointL3Builder endpointL3Builder = buildL3Endpoint(IPV4_1, IPV4_0, MAC_0, L2); endpointL3Builder.addAugmentation(NatAddress.class, null); flows.natFlows((short) 6, endpointL3Builder.build(), 100, ofWriter); verifyZeroInteractions(ofWriter); }
void natFlows(short goToTable, EndpointL3 l3Endpoint, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Endpoint.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null) { return; } Flow flow = buildNatFlow(goToTable, priority, l3Endpoint.getIpAddress(), natAugL3Endpoint.getNatAddress(), l3Endpoint.getTenant(), l3Endpoint.getL3Context()); ofWriter.writeFlow(nodeId, tableId, flow); }
EgressNatMapperFlows { void natFlows(short goToTable, EndpointL3 l3Endpoint, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Endpoint.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null) { return; } Flow flow = buildNatFlow(goToTable, priority, l3Endpoint.getIpAddress(), natAugL3Endpoint.getNatAddress(), l3Endpoint.getTenant(), l3Endpoint.getL3Context()); ofWriter.writeFlow(nodeId, tableId, flow); } }
EgressNatMapperFlows { void natFlows(short goToTable, EndpointL3 l3Endpoint, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Endpoint.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null) { return; } Flow flow = buildNatFlow(goToTable, priority, l3Endpoint.getIpAddress(), natAugL3Endpoint.getNatAddress(), l3Endpoint.getTenant(), l3Endpoint.getL3Context()); ofWriter.writeFlow(nodeId, tableId, flow); } EgressNatMapperFlows(NodeId nodeId, short tableId); }
EgressNatMapperFlows { void natFlows(short goToTable, EndpointL3 l3Endpoint, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Endpoint.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null) { return; } Flow flow = buildNatFlow(goToTable, priority, l3Endpoint.getIpAddress(), natAugL3Endpoint.getNatAddress(), l3Endpoint.getTenant(), l3Endpoint.getL3Context()); ofWriter.writeFlow(nodeId, tableId, flow); } EgressNatMapperFlows(NodeId nodeId, short tableId);  }
EgressNatMapperFlows { void natFlows(short goToTable, EndpointL3 l3Endpoint, int priority, OfWriter ofWriter) { NatAddress natAugL3Endpoint = l3Endpoint.getAugmentation(NatAddress.class); if (natAugL3Endpoint == null) { return; } Flow flow = buildNatFlow(goToTable, priority, l3Endpoint.getIpAddress(), natAugL3Endpoint.getNatAddress(), l3Endpoint.getTenant(), l3Endpoint.getL3Context()); ofWriter.writeFlow(nodeId, tableId, flow); } EgressNatMapperFlows(NodeId nodeId, short tableId);   }