All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.protocol.bgp.inet.RIBActivator Maven / Gradle / Ivy

There is a newer version: 0.22.6
Show newest version
/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.protocol.bgp.inet;

import com.google.common.collect.Lists;
import java.util.List;
import org.opendaylight.protocol.bgp.rib.spi.AbstractRIBExtensionProviderActivator;
import org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.Ipv4AddressFamily;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.Ipv6AddressFamily;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.UnicastSubsequentAddressFamily;

public final class RIBActivator extends AbstractRIBExtensionProviderActivator {

    @Override
    protected List startRIBExtensionProviderImpl(final RIBExtensionProviderContext context) {
        return Lists.newArrayList(
            context.registerRIBSupport(Ipv4AddressFamily.class,
                    UnicastSubsequentAddressFamily.class, IPv4RIBSupport.getInstance()),
            context.registerRIBSupport(Ipv6AddressFamily.class,
                    UnicastSubsequentAddressFamily.class, IPv6RIBSupport.getInstance()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy