@Test public void portByEndpointIidTest() { L2BridgeDomainId l2BdId = mock(L2BridgeDomainId.class); MacAddress mac = mock(MacAddress.class); InstanceIdentifier<PortByEndpoint> id = NeutronGbpIidFactory.portByEndpointIid(l2BdId, mac); assertNotNull(id); Class<?>[] expectedTypes = {Mappings.class, NeutronByGbpMappings.class, PortsByEndpoints.class, PortByEndpoint.class}; assertPathArgumentTypes(id.getPathArguments(), expectedTypes); assertEquals(PortByEndpoint.class, id.getTargetType()); assertFalse(id.isWildcarded()); assertEquals(l2BdId, id.firstKeyOf(PortByEndpoint.class).getL2Context()); assertEquals(mac, id.firstKeyOf(PortByEndpoint.class).getMacAddress()); }
@Deprecated public static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac) { return InstanceIdentifier .builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByEndpoints.class) .child(PortByEndpoint.class, new PortByEndpointKey(l2BdId, mac)) .build(); }
NeutronGbpIidFactory { @Deprecated public static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac) { return InstanceIdentifier .builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByEndpoints.class) .child(PortByEndpoint.class, new PortByEndpointKey(l2BdId, mac)) .build(); } }
NeutronGbpIidFactory { @Deprecated public static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac) { return InstanceIdentifier .builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByEndpoints.class) .child(PortByEndpoint.class, new PortByEndpointKey(l2BdId, mac)) .build(); }  }
NeutronGbpIidFactory { @Deprecated public static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac) { return InstanceIdentifier .builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByEndpoints.class) .child(PortByEndpoint.class, new PortByEndpointKey(l2BdId, mac)) .build(); }  static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId); @Deprecated static InstanceIdentifier<EndpointByPort> endpointByPortIid(UniqueId portId); static InstanceIdentifier<PortByBaseEndpoint> portByBaseEndpointIid(PortByBaseEndpointKey baseEpkey); @Deprecated static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac); static InstanceIdentifier<ExternalGatewayAsEndpoint> externalGatewayAsEndpoint(ContextId contextId,
            IpPrefix ipPrefix, Class<? extends ContextType> contextType); @Deprecated static InstanceIdentifier<ExternalGatewayAsL3Endpoint> externalGatewayAsL3Endpoint(L3ContextId l3Context,
            IpAddress ipAddress); static InstanceIdentifier<ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, ContextId domainId); @Deprecated @SuppressWarnings("checkstyle:LineLength") // Longer lines in this method are caused by long package names, // this will be removed when deprecated classes will be cleared. static InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.rev150513.mappings.neutron.by.gbp.mappings.provider.physical.networks.as.l2.flood.domains.ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, L2FloodDomainId l2FdId); }
NeutronGbpIidFactory { @Deprecated public static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac) { return InstanceIdentifier .builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByEndpoints.class) .child(PortByEndpoint.class, new PortByEndpointKey(l2BdId, mac)) .build(); }  static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId); @Deprecated static InstanceIdentifier<EndpointByPort> endpointByPortIid(UniqueId portId); static InstanceIdentifier<PortByBaseEndpoint> portByBaseEndpointIid(PortByBaseEndpointKey baseEpkey); @Deprecated static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac); static InstanceIdentifier<ExternalGatewayAsEndpoint> externalGatewayAsEndpoint(ContextId contextId,
            IpPrefix ipPrefix, Class<? extends ContextType> contextType); @Deprecated static InstanceIdentifier<ExternalGatewayAsL3Endpoint> externalGatewayAsL3Endpoint(L3ContextId l3Context,
            IpAddress ipAddress); static InstanceIdentifier<ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, ContextId domainId); @Deprecated @SuppressWarnings("checkstyle:LineLength") // Longer lines in this method are caused by long package names, // this will be removed when deprecated classes will be cleared. static InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.rev150513.mappings.neutron.by.gbp.mappings.provider.physical.networks.as.l2.flood.domains.ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, L2FloodDomainId l2FdId);  }