2 * Copyright (c) 2016 Brocade Communications 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.l3vpn.ipv6;
10 import java.util.ArrayList;
11 import java.util.List;
12 import org.opendaylight.protocol.bgp.rib.spi.AbstractRIBExtensionProviderActivator;
13 import org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.Ipv6AddressFamily;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.MplsLabeledVpnSubsequentAddressFamily;
17 public class RibIpv6Activator extends AbstractRIBExtensionProviderActivator {
20 protected List<AutoCloseable> startRIBExtensionProviderImpl(final RIBExtensionProviderContext context) {
21 final List<AutoCloseable> regs = new ArrayList<>();
22 regs.add(context.registerRIBSupport(Ipv6AddressFamily.class,
23 MplsLabeledVpnSubsequentAddressFamily.class, new VpnIpv6RIBSupport()));