2 * Copyright (c) 2018 AT&T Intellectual Property. 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
8 package org.opendaylight.protocol.bgp.route.targetcontrain.impl.activators;
10 import java.util.Collections;
11 import java.util.List;
12 import org.kohsuke.MetaInfServices;
13 import org.opendaylight.protocol.bgp.openconfig.spi.AbstractBGPTableTypeRegistryProviderActivator;
14 import org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProvider;
15 import org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProviderActivator;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.ROUTETARGETCONSTRAIN;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.route.target.constrain.rev180618.RouteTargetConstrainSubsequentAddressFamily;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Ipv4AddressFamily;
19 import org.opendaylight.yangtools.concepts.AbstractRegistration;
22 * Registers Route Target constrains Family type.
24 * @author Claudio D. Gasparini
26 @MetaInfServices(value = BGPTableTypeRegistryProviderActivator.class)
27 public final class TableTypeActivator extends AbstractBGPTableTypeRegistryProviderActivator {
29 protected List<AbstractRegistration> startBGPTableTypeRegistryProviderImpl(
30 final BGPTableTypeRegistryProvider provider) {
31 return Collections.singletonList(
32 provider.registerBGPTableType(Ipv4AddressFamily.class,
33 RouteTargetConstrainSubsequentAddressFamily.class, ROUTETARGETCONSTRAIN.class)