@Test public void testL2FloodDomainIid() { InstanceIdentifier<ForwardingContext> identifier = L2L3IidFactory.l2FloodDomainIid(TENANT_ID, CONTEXT_ID); Assert.assertEquals(CONTEXT_ID, InstanceIdentifier.keyOf(identifier).getContextId()); Assert.assertEquals(TENANT_ID, identifier.firstKeyOf(ForwardingByTenant.class).getTenantId()); }
public static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id) { ForwardingContextKey domainKey = new ForwardingContextKey(id, L2FloodDomain.class); return IidFactory.forwardingByTenantIid(tenantId).child(ForwardingContext.class, domainKey); }
L2L3IidFactory { public static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id) { ForwardingContextKey domainKey = new ForwardingContextKey(id, L2FloodDomain.class); return IidFactory.forwardingByTenantIid(tenantId).child(ForwardingContext.class, domainKey); } }
L2L3IidFactory { public static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id) { ForwardingContextKey domainKey = new ForwardingContextKey(id, L2FloodDomain.class); return IidFactory.forwardingByTenantIid(tenantId).child(ForwardingContext.class, domainKey); }  }
L2L3IidFactory { public static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id) { ForwardingContextKey domainKey = new ForwardingContextKey(id, L2FloodDomain.class); return IidFactory.forwardingByTenantIid(tenantId).child(ForwardingContext.class, domainKey); }  static InstanceIdentifier<NetworkDomain> subnetIid(TenantId tenantId, NetworkDomainId id); static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id); static InstanceIdentifier<ForwardingContext> l2BridgeDomainIid(TenantId tenantId, ContextId id); static InstanceIdentifier<ForwardingContext> l3ContextIid(TenantId tenantId, ContextId id); }
L2L3IidFactory { public static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id) { ForwardingContextKey domainKey = new ForwardingContextKey(id, L2FloodDomain.class); return IidFactory.forwardingByTenantIid(tenantId).child(ForwardingContext.class, domainKey); }  static InstanceIdentifier<NetworkDomain> subnetIid(TenantId tenantId, NetworkDomainId id); static InstanceIdentifier<ForwardingContext> l2FloodDomainIid(TenantId tenantId, ContextId id); static InstanceIdentifier<ForwardingContext> l2BridgeDomainIid(TenantId tenantId, ContextId id); static InstanceIdentifier<ForwardingContext> l3ContextIid(TenantId tenantId, ContextId id);  }