Code clean up
[bgpcep.git] / bgp / linkstate / src / main / java / org / opendaylight / protocol / bgp / linkstate / impl / TableTypeActivator.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.protocol.bgp.linkstate.impl;
10
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.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev180329.LinkstateAddressFamily;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev180329.LinkstateSubsequentAddressFamily;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.LINKSTATE;
18 import org.opendaylight.yangtools.concepts.AbstractRegistration;
19
20 public final class TableTypeActivator extends AbstractBGPTableTypeRegistryProviderActivator {
21     @Override
22     protected List<AbstractRegistration> startBGPTableTypeRegistryProviderImpl(
23             final BGPTableTypeRegistryProvider provider) {
24         return Lists.newArrayList(provider.registerBGPTableType(LinkstateAddressFamily.class,
25                 LinkstateSubsequentAddressFamily.class, LINKSTATE.class));
26     }
27
28 }