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.openconfig.spi;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.AfiSafiType;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.AddressFamily;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.SubsequentAddressFamily;
15 import org.opendaylight.yangtools.concepts.AbstractRegistration;
18 * The BGP extension may provide supported table type (AFI/SAFI).
21 public interface BGPTableTypeRegistryProvider extends BGPTableTypeRegistryConsumer {
24 * Register supported AFI/SAFI.
25 * @param afi Local representation of AFI.
26 * @param safi Local representation of SAFI.
27 * @param afiSafiType OpenConfig AFI/SAFI representation.
28 * @return Registration ticket.
30 @Nonnull AbstractRegistration registerBGPTableType(@Nonnull Class<? extends AddressFamily> afi,
31 @Nonnull Class<? extends SubsequentAddressFamily> safi, @Nonnull Class<? extends AfiSafiType> afiSafiType);