@Test public void testBuildRendererNetworkDomainAugmentation_nullAugmentation() { NetworkDomain networkDomain = new NetworkDomainBuilder() .setNetworkDomainType( org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.forwarding.rev160427.NetworkDomain.class) .setNetworkDomainId(NET_DOMAIN) .build(); Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> rendererNetworkDomainAugmentation = l2l3Augmentor.buildRendererNetworkDomainAugmentation(networkDomain); Assert.assertNull(rendererNetworkDomainAugmentation); }
@Override public Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input) { SubnetAugmentForwarding subnetForwarding = input.getAugmentation(SubnetAugmentForwarding.class); if (subnetForwarding == null) { return null; } return new SimpleImmutableEntry<>(SubnetAugmentRenderer.class, new SubnetAugmentRendererBuilder(subnetForwarding).build()); }
L2L3NetworkDomainAugmentor implements NetworkDomainAugmentor, AutoCloseable { @Override public Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input) { SubnetAugmentForwarding subnetForwarding = input.getAugmentation(SubnetAugmentForwarding.class); if (subnetForwarding == null) { return null; } return new SimpleImmutableEntry<>(SubnetAugmentRenderer.class, new SubnetAugmentRendererBuilder(subnetForwarding).build()); } }
L2L3NetworkDomainAugmentor implements NetworkDomainAugmentor, AutoCloseable { @Override public Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input) { SubnetAugmentForwarding subnetForwarding = input.getAugmentation(SubnetAugmentForwarding.class); if (subnetForwarding == null) { return null; } return new SimpleImmutableEntry<>(SubnetAugmentRenderer.class, new SubnetAugmentRendererBuilder(subnetForwarding).build()); } L2L3NetworkDomainAugmentor(NetworkDomainAugmentorRegistry networkDomainAugmentorRegistry); }
L2L3NetworkDomainAugmentor implements NetworkDomainAugmentor, AutoCloseable { @Override public Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input) { SubnetAugmentForwarding subnetForwarding = input.getAugmentation(SubnetAugmentForwarding.class); if (subnetForwarding == null) { return null; } return new SimpleImmutableEntry<>(SubnetAugmentRenderer.class, new SubnetAugmentRendererBuilder(subnetForwarding).build()); } L2L3NetworkDomainAugmentor(NetworkDomainAugmentorRegistry networkDomainAugmentorRegistry); @Override Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input); @Override void close(); }
L2L3NetworkDomainAugmentor implements NetworkDomainAugmentor, AutoCloseable { @Override public Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input) { SubnetAugmentForwarding subnetForwarding = input.getAugmentation(SubnetAugmentForwarding.class); if (subnetForwarding == null) { return null; } return new SimpleImmutableEntry<>(SubnetAugmentRenderer.class, new SubnetAugmentRendererBuilder(subnetForwarding).build()); } L2L3NetworkDomainAugmentor(NetworkDomainAugmentorRegistry networkDomainAugmentorRegistry); @Override Entry<Class<? extends Augmentation<RendererNetworkDomain>>, Augmentation<RendererNetworkDomain>> buildRendererNetworkDomainAugmentation(@Nonnull NetworkDomain input); @Override void close();  }