@Test public void baseEndpointByPortTest() { UniqueId portId = new UniqueId("00000000-1111-2222-3333-44444555566667777"); InstanceIdentifier<BaseEndpointByPort> id = NeutronGbpIidFactory.baseEndpointByPortIid(portId); assertNotNull(id); Class<?>[] expectedTypes = {Mappings.class, GbpByNeutronMappings.class, BaseEndpointsByPorts.class, BaseEndpointByPort.class}; assertPathArgumentTypes(id.getPathArguments(), expectedTypes); assertEquals(BaseEndpointByPort.class, id.getTargetType()); assertFalse(id.isWildcarded()); assertEquals(portId, id.firstKeyOf(BaseEndpointByPort.class).getPortId()); }
public static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId) { return InstanceIdentifier.builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(BaseEndpointsByPorts.class) .child(BaseEndpointByPort.class, new BaseEndpointByPortKey(portId)) .build(); }
NeutronGbpIidFactory { public static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId) { return InstanceIdentifier.builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(BaseEndpointsByPorts.class) .child(BaseEndpointByPort.class, new BaseEndpointByPortKey(portId)) .build(); } }
NeutronGbpIidFactory { public static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId) { return InstanceIdentifier.builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(BaseEndpointsByPorts.class) .child(BaseEndpointByPort.class, new BaseEndpointByPortKey(portId)) .build(); }  }
NeutronGbpIidFactory { public static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId) { return InstanceIdentifier.builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(BaseEndpointsByPorts.class) .child(BaseEndpointByPort.class, new BaseEndpointByPortKey(portId)) .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 { public static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId) { return InstanceIdentifier.builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(BaseEndpointsByPorts.class) .child(BaseEndpointByPort.class, new BaseEndpointByPortKey(portId)) .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);  }