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
9 package org.opendaylight.protocol.bgp.inet;
11 import com.google.common.collect.Lists;
12 import java.util.List;
13 import org.opendaylight.protocol.bgp.openconfig.spi.AbstractBGPTableTypeRegistryProviderActivator;
14 import org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProvider;
15 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.IPV4UNICAST;
16 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.IPV6UNICAST;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.Ipv4AddressFamily;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.Ipv6AddressFamily;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.UnicastSubsequentAddressFamily;
20 import org.opendaylight.yangtools.concepts.AbstractRegistration;
22 public final class TableTypeActivator extends AbstractBGPTableTypeRegistryProviderActivator {
25 protected List<AbstractRegistration> startBGPTableTypeRegistryProviderImpl(
26 final BGPTableTypeRegistryProvider provider) {
27 return Lists.newArrayList(
28 provider.registerBGPTableType(Ipv4AddressFamily.class,
29 UnicastSubsequentAddressFamily.class, IPV4UNICAST.class),
30 provider.registerBGPTableType(Ipv6AddressFamily.class,
31 UnicastSubsequentAddressFamily.class, IPV6UNICAST.class));