2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.groupbasedpolicy.util;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpPrefix;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.MacAddress;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.AddressEndpoints;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.ContainmentEndpoints;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.containment.endpoints.ContainmentEndpoint;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.containment.endpoints.ContainmentEndpointKey;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ActionDefinitionId;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ActionName;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ClassifierDefinitionId;
21 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ClassifierName;
22 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ClauseName;
23 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.ContractId;
24 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.EndpointGroupId;
25 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.L2BridgeDomainId;
26 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.L2FloodDomainId;
27 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.L3ContextId;
28 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.RuleName;
29 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.SelectorName;
30 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.SubjectName;
31 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.SubnetId;
32 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.TenantId;
33 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.Endpoints;
34 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.Endpoint;
35 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointKey;
36 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3;
37 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3Key;
38 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3Prefix;
39 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.endpoints.EndpointL3PrefixKey;
40 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.address.endpoints.AddressEndpoint;
41 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.endpoints.address.endpoints.AddressEndpointKey;
42 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.SubjectFeatureDefinitions;
43 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.Tenants;
44 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.has.classifier.refs.ClassifierRef;
45 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.has.classifier.refs.ClassifierRefKey;
46 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.subject.feature.definitions.ActionDefinition;
47 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.subject.feature.definitions.ActionDefinitionKey;
48 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.subject.feature.definitions.ClassifierDefinition;
49 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.subject.feature.definitions.ClassifierDefinitionKey;
50 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.Tenant;
51 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.TenantKey;
52 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.ForwardingContext;
53 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.Policy;
54 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L2BridgeDomain;
55 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L2BridgeDomainKey;
56 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L2FloodDomain;
57 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L2FloodDomainKey;
58 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L3Context;
59 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.L3ContextKey;
60 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.Subnet;
61 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.SubnetKey;
62 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.Contract;
63 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.ContractKey;
64 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.EndpointGroup;
65 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.EndpointGroupKey;
66 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.ExternalImplicitGroup;
67 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.ExternalImplicitGroupKey;
68 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.SubjectFeatureInstances;
69 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.Clause;
70 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.ClauseKey;
71 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.Subject;
72 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.SubjectKey;
73 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.subject.Rule;
74 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.contract.subject.RuleKey;
75 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.endpoint.group.ConsumerNamedSelector;
76 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.endpoint.group.ConsumerNamedSelectorKey;
77 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.endpoint.group.ProviderNamedSelector;
78 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.endpoint.group.ProviderNamedSelectorKey;
79 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.subject.feature.instances.ActionInstance;
80 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.subject.feature.instances.ActionInstanceKey;
81 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.subject.feature.instances.ClassifierInstance;
82 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.subject.feature.instances.ClassifierInstanceKey;
83 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.RendererName;
84 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.Renderers;
85 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.Renderer;
86 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.RendererKey;
87 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.Capabilities;
88 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.Interests;
89 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.capabilities.SupportedActionDefinition;
90 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.capabilities.SupportedClassifierDefinition;
91 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.interests.FollowedTenants;
92 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.interests.followed.tenants.FollowedTenant;
93 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.interests.followed.tenants.FollowedTenantKey;
94 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.interests.followed.tenants.followed.tenant.FollowedEndpointGroup;
95 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.interests.followed.tenants.followed.tenant.FollowedEndpointGroupKey;
96 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.statistics.store.rev151215.StatisticsStore;
97 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.statistics.store.rev151215.statistics.store.StatisticRecord;
98 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.statistics.store.rev151215.statistics.store.StatisticRecordKey;
99 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
101 public class IidFactory {
103 private IidFactory() {
104 throw new UnsupportedOperationException();
107 private static final InstanceIdentifier<Endpoints> ENDPOINTS_IID =
108 InstanceIdentifier.builder(Endpoints.class).build();
110 public static InstanceIdentifier<Tenant> tenantIid(TenantId id) {
111 return InstanceIdentifier.builder(Tenants.class).child(Tenant.class, new TenantKey(id)).build();
114 public static InstanceIdentifier<EndpointGroup> endpointGroupIid(TenantId tenantId, EndpointGroupId epgId) {
115 return InstanceIdentifier.builder(Tenants.class)
116 .child(Tenant.class, new TenantKey(tenantId))
118 .child(EndpointGroup.class, new EndpointGroupKey(epgId))
122 public static InstanceIdentifier<Contract> contractIid(TenantId tenantId, ContractId contractId) {
123 return InstanceIdentifier.builder(Tenants.class)
124 .child(Tenant.class, new TenantKey(tenantId))
126 .child(Contract.class, new ContractKey(contractId))
130 public static InstanceIdentifier<Contract> contractWildcardIid(TenantId tenantId) {
131 return InstanceIdentifier.builder(Tenants.class)
132 .child(Tenant.class, new TenantKey(tenantId))
134 .child(Contract.class)
138 public static InstanceIdentifier<Subject> subjectIid(TenantId tenantId, ContractId contractId,
139 SubjectName subjectName) {
140 return InstanceIdentifier.builder(Tenants.class)
141 .child(Tenant.class, new TenantKey(tenantId))
143 .child(Contract.class, new ContractKey(contractId))
144 .child(Subject.class, new SubjectKey(subjectName))
148 public static InstanceIdentifier<ProviderNamedSelector> providerNamedSelectorIid(TenantId tenantId,
149 EndpointGroupId epgId, SelectorName providerSelectorName) {
150 return InstanceIdentifier.builder(Tenants.class)
151 .child(Tenant.class, new TenantKey(tenantId))
153 .child(EndpointGroup.class, new EndpointGroupKey(epgId))
154 .child(ProviderNamedSelector.class, new ProviderNamedSelectorKey(providerSelectorName))
158 public static InstanceIdentifier<ConsumerNamedSelector> consumerNamedSelectorIid(TenantId tenantId,
159 EndpointGroupId epgId, SelectorName consumerSelectorName) {
160 return InstanceIdentifier.builder(Tenants.class)
161 .child(Tenant.class, new TenantKey(tenantId))
163 .child(EndpointGroup.class, new EndpointGroupKey(epgId))
164 .child(ConsumerNamedSelector.class, new ConsumerNamedSelectorKey(consumerSelectorName))
168 public static InstanceIdentifier<Clause> clauseIid(TenantId tenantId, ContractId contractId,
169 ClauseName clauseName) {
170 return InstanceIdentifier.builder(Tenants.class)
171 .child(Tenant.class, new TenantKey(tenantId))
173 .child(Contract.class, new ContractKey(contractId))
174 .child(Clause.class, new ClauseKey(clauseName))
178 public static InstanceIdentifier<Rule> ruleIid(TenantId tenantId, ContractId contractId, SubjectName subjectName,
180 return InstanceIdentifier.builder(Tenants.class)
181 .child(Tenant.class, new TenantKey(tenantId))
183 .child(Contract.class, new ContractKey(contractId))
184 .child(Subject.class, new SubjectKey(subjectName))
185 .child(Rule.class, new RuleKey(ruleName))
189 public static InstanceIdentifier<ActionInstance> actionInstanceIid(TenantId tenantId, ActionName actionName) {
190 return InstanceIdentifier.builder(Tenants.class)
191 .child(Tenant.class, new TenantKey(tenantId))
193 .child(SubjectFeatureInstances.class)
194 .child(ActionInstance.class, new ActionInstanceKey(actionName))
198 public static InstanceIdentifier<ClassifierInstance> classifierInstanceIid(TenantId tenantId,
199 ClassifierName classifierName) {
200 return InstanceIdentifier.builder(Tenants.class)
201 .child(Tenant.class, new TenantKey(tenantId))
203 .child(SubjectFeatureInstances.class)
204 .child(ClassifierInstance.class, new ClassifierInstanceKey(classifierName))
208 public static InstanceIdentifier<ClassifierDefinition> classifierDefinitionIid(
209 ClassifierDefinitionId classifierDefinitionId) {
210 return InstanceIdentifier.builder(SubjectFeatureDefinitions.class)
211 .child(ClassifierDefinition.class, new ClassifierDefinitionKey(classifierDefinitionId))
215 public static InstanceIdentifier<ActionDefinition> actionDefinitionIid(ActionDefinitionId actionDefinitionId) {
216 return InstanceIdentifier.builder(SubjectFeatureDefinitions.class)
217 .child(ActionDefinition.class, new ActionDefinitionKey(actionDefinitionId))
221 public static InstanceIdentifier<ClassifierRef> classifierRefIid(TenantId tenantId, ContractId contractId,
222 SubjectName subjectName, RuleName ruleName, ClassifierName classifierRefName) {
223 return InstanceIdentifier.builder(Tenants.class)
224 .child(Tenant.class, new TenantKey(tenantId))
226 .child(Contract.class, new ContractKey(contractId))
227 .child(Subject.class, new SubjectKey(subjectName))
228 .child(Rule.class, new RuleKey(ruleName))
229 .child(ClassifierRef.class, new ClassifierRefKey(classifierRefName))
233 public static InstanceIdentifier<L2FloodDomain> l2FloodDomainIid(TenantId tenantId,
234 L2FloodDomainId l2FloodDomainId) {
235 return InstanceIdentifier.builder(Tenants.class)
236 .child(Tenant.class, new TenantKey(tenantId))
237 .child(ForwardingContext.class)
238 .child(L2FloodDomain.class, new L2FloodDomainKey(l2FloodDomainId))
242 public static InstanceIdentifier<L2BridgeDomain> l2BridgeDomainIid(TenantId tenantId,
243 L2BridgeDomainId l2BridgeDomainId) {
244 return InstanceIdentifier.builder(Tenants.class)
245 .child(Tenant.class, new TenantKey(tenantId))
246 .child(ForwardingContext.class)
247 .child(L2BridgeDomain.class, new L2BridgeDomainKey(l2BridgeDomainId))
251 public static InstanceIdentifier<L3Context> l3ContextIid(TenantId tenantId, L3ContextId l3ContextId) {
252 return InstanceIdentifier.builder(Tenants.class)
253 .child(Tenant.class, new TenantKey(tenantId))
254 .child(ForwardingContext.class)
255 .child(L3Context.class, new L3ContextKey(l3ContextId))
260 * Get the {@link Endpoint} {@link InstanceIdentifier} based on the {@link EndpointKey}
262 * @param endpointKey The {@link EndpointKey} of a particular {@link Endpoint}
263 * @return The {@link InstanceIdentifier} of the {@link Endpoint}
265 public static InstanceIdentifier<Endpoint> endpointIid(EndpointKey endpointKey) {
266 return InstanceIdentifier.builder(Endpoints.class).child(Endpoint.class, endpointKey).build();
269 public static InstanceIdentifier<Endpoint> endpointIid(L2BridgeDomainId l2Context, MacAddress macAddress) {
270 return IidFactory.endpointIid(new EndpointKey(l2Context, macAddress));
273 public static InstanceIdentifier<EndpointL3> l3EndpointIid(EndpointL3Key endpointL3Key) {
274 return InstanceIdentifier.builder(Endpoints.class).child(EndpointL3.class, endpointL3Key).build();
277 public static InstanceIdentifier<EndpointL3> l3EndpointIid(L3ContextId l3Context, IpAddress ipAddress) {
278 return IidFactory.l3EndpointIid(new EndpointL3Key(ipAddress, l3Context));
281 public static InstanceIdentifier<EndpointL3> l3EndpointsIidWildcard() {
282 return InstanceIdentifier.builder(Endpoints.class).child(EndpointL3.class).build();
285 public static InstanceIdentifier<EndpointL3Prefix> endpointL3PrefixIid(L3ContextId l3Context, IpPrefix ipPrefix) {
286 return InstanceIdentifier.builder(Endpoints.class)
287 .child(EndpointL3Prefix.class, new EndpointL3PrefixKey(ipPrefix, l3Context))
291 public static InstanceIdentifier<Endpoints> endpointsIidWildcard() {
292 return ENDPOINTS_IID;
295 public static InstanceIdentifier<Subnet> subnetIid(TenantId tenantId, SubnetId subnetId) {
296 return InstanceIdentifier.builder(Tenants.class)
297 .child(Tenant.class, new TenantKey(tenantId))
298 .child(ForwardingContext.class)
299 .child(Subnet.class, new SubnetKey(subnetId))
303 public static InstanceIdentifier<Subnet> subnetWildcardIid(TenantId tenantId) {
304 return InstanceIdentifier.builder(Tenants.class)
305 .child(Tenant.class, new TenantKey(tenantId))
306 .child(ForwardingContext.class)
311 public static InstanceIdentifier<FollowedEndpointGroup> followedEndpointgroupIid(RendererName rendererName,
312 TenantId tenantId, EndpointGroupId epgId) {
313 return InstanceIdentifier.builder(Renderers.class)
314 .child(Renderer.class, new RendererKey(rendererName))
315 .child(Interests.class)
316 .child(FollowedTenants.class)
317 .child(FollowedTenant.class, new FollowedTenantKey(tenantId))
318 .child(FollowedEndpointGroup.class, new FollowedEndpointGroupKey(epgId))
322 public static InstanceIdentifier<SupportedActionDefinition> supportedActionDefinitionIidWildcard() {
323 return InstanceIdentifier.builder(Renderers.class)
324 .child(Renderer.class)
325 .child(Capabilities.class)
326 .child(SupportedActionDefinition.class)
330 public static InstanceIdentifier<SupportedClassifierDefinition> supportedClassifierDefinitionIidWildcard() {
331 return InstanceIdentifier.builder(Renderers.class)
332 .child(Renderer.class)
333 .child(Capabilities.class)
334 .child(SupportedClassifierDefinition.class)
338 public static InstanceIdentifier<StatisticRecord> statisticRecordIid(StatisticRecordKey key) {
339 return InstanceIdentifier.builder(StatisticsStore.class).child(StatisticRecord.class, key).build();
342 public static InstanceIdentifier<FollowedTenant> followedTenantIid(RendererName rendererName, TenantId tenantId) {
343 return InstanceIdentifier.builder(Renderers.class)
344 .child(Renderer.class, new RendererKey(rendererName))
345 .child(Interests.class)
346 .child(FollowedTenants.class)
347 .child(FollowedTenant.class, new FollowedTenantKey(tenantId))
351 public static InstanceIdentifier<Renderer> rendererIid(RendererName rendererName) {
352 return InstanceIdentifier.builder(Renderers.class).child(Renderer.class, new RendererKey(rendererName)).build();
355 public static InstanceIdentifier<Renderers> renderersIid() {
356 return InstanceIdentifier.builder(Renderers.class).build();
359 public static InstanceIdentifier<ExternalImplicitGroup> externalImplicitGroupIid(TenantId tenantId,
360 EndpointGroupId epgId) {
361 return InstanceIdentifier.builder(Tenants.class)
362 .child(Tenant.class, new TenantKey(tenantId))
364 .child(ExternalImplicitGroup.class, new ExternalImplicitGroupKey(epgId))
368 public static InstanceIdentifier<ContainmentEndpoint> containmentEndpointIid(ContainmentEndpointKey key) {
369 return InstanceIdentifier
371 org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.Endpoints.class)
372 .child(ContainmentEndpoints.class)
373 .child(ContainmentEndpoint.class, key)
377 public static InstanceIdentifier<AddressEndpoint> addressEndpointIid(AddressEndpointKey addressEndpointKey) {
378 return InstanceIdentifier
380 org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.Endpoints.class)
381 .child(AddressEndpoints.class)
382 .child(AddressEndpoint.class, addressEndpointKey)