@Test public void getEpNetworkContainment_getNull() { EndpointBuilder endpointBuilder = buildEndpoint(IPV4_0, MAC_1, CONNECTOR_1); endpointBuilder.setNetworkContainment(null); NetworkDomainId result = utils.getEPNetworkContainment(endpointBuilder.build(), null); assertNull(result); }
NetworkDomainId getEPNetworkContainment(Endpoint endpoint, IndexedTenant tenant) { if (endpoint.getNetworkContainment() != null) { return endpoint.getNetworkContainment(); } else if (tenant != null) { return tenant.getEndpointGroup(endpoint.getEndpointGroup()) .getNetworkDomain(); } else { return null; } }
DestinationMapperUtils { NetworkDomainId getEPNetworkContainment(Endpoint endpoint, IndexedTenant tenant) { if (endpoint.getNetworkContainment() != null) { return endpoint.getNetworkContainment(); } else if (tenant != null) { return tenant.getEndpointGroup(endpoint.getEndpointGroup()) .getNetworkDomain(); } else { return null; } } }
DestinationMapperUtils { NetworkDomainId getEPNetworkContainment(Endpoint endpoint, IndexedTenant tenant) { if (endpoint.getNetworkContainment() != null) { return endpoint.getNetworkContainment(); } else if (tenant != null) { return tenant.getEndpointGroup(endpoint.getEndpointGroup()) .getNetworkDomain(); } else { return null; } } DestinationMapperUtils(OfContext ctx); }
DestinationMapperUtils { NetworkDomainId getEPNetworkContainment(Endpoint endpoint, IndexedTenant tenant) { if (endpoint.getNetworkContainment() != null) { return endpoint.getNetworkContainment(); } else if (tenant != null) { return tenant.getEndpointGroup(endpoint.getEndpointGroup()) .getNetworkDomain(); } else { return null; } } DestinationMapperUtils(OfContext ctx);  }
DestinationMapperUtils { NetworkDomainId getEPNetworkContainment(Endpoint endpoint, IndexedTenant tenant) { if (endpoint.getNetworkContainment() != null) { return endpoint.getNetworkContainment(); } else if (tenant != null) { return tenant.getEndpointGroup(endpoint.getEndpointGroup()) .getNetworkDomain(); } else { return null; } } DestinationMapperUtils(OfContext ctx);   }