2 * Copyright (c) 2018 AT&T Intellectual Property. 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.mvpn.spi.nlri;
10 import io.netty.buffer.ByteBuf;
11 import javax.annotation.Nonnull;
12 import javax.annotation.Nullable;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mvpn.rev180417.NlriType;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mvpn.rev180417.mvpn.MvpnChoice;
16 public interface MvpnRegistry {
18 * Decode input buffer to BGP Mvpn.
20 * @param type Nlri Type
21 * @param buffer encoded MvpnChoice body in Bytebuf
25 MvpnChoice parseMvpn(@Nonnull NlriType type, @Nonnull ByteBuf buffer);
28 * Encode input BGP mvpn to output buffer.
30 * @param mvpn MvpnChoice
31 * @return encoded MvpnChoice body in Bytebuf
34 ByteBuf serializeMvpn(@Nonnull MvpnChoice mvpn);