2 * Copyright (c) 2016 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
8 package org.opendaylight.protocol.bgp.labeled.unicast;
10 import java.util.List;
11 import javax.inject.Inject;
12 import javax.inject.Singleton;
13 import org.kohsuke.MetaInfServices;
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.http.openconfig.net.yang.bgp.types.rev151009.IPV4LABELLEDUNICAST;
17 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.IPV6LABELLEDUNICAST;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.labeled.unicast.rev180329.LabeledUnicastSubsequentAddressFamily;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Ipv4AddressFamily;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Ipv6AddressFamily;
21 import org.opendaylight.yangtools.concepts.Registration;
22 import org.osgi.service.component.annotations.Component;
25 @Component(immediate = true, property = "type=org.opendaylight.protocol.bgp.labeled.unicast.TableTypeActivator")
27 public final class TableTypeActivator implements BGPTableTypeRegistryProviderActivator {
29 public TableTypeActivator() {
34 public List<Registration> startBGPTableTypeRegistryProvider(final BGPTableTypeRegistryProvider provider) {
36 provider.registerBGPTableType(Ipv4AddressFamily.VALUE, LabeledUnicastSubsequentAddressFamily.VALUE,
37 IPV4LABELLEDUNICAST.VALUE),
38 provider.registerBGPTableType(Ipv6AddressFamily.VALUE, LabeledUnicastSubsequentAddressFamily.VALUE,
39 IPV6LABELLEDUNICAST.VALUE));