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