MVPN RFC6514 Extendend communities
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / api / BestPath.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.protocol.bgp.mode.api;
10
11 import com.google.common.primitives.UnsignedInteger;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerId;
15
16 public interface BestPath {
17
18     /**
19      * RouterId.
20      *
21      * @return the routerId (UnsignedInteger)
22      */
23     UnsignedInteger getRouterId();
24
25     /**
26      * PeerId.
27      *
28      * @return the routerId (UnsignedInteger) converted to a PeerId
29      */
30     @Nonnull
31     PeerId getPeerId();
32
33     /**
34      * Attributes.
35      *
36      * @return the path attributes
37      */
38     @Nonnull
39     Attributes getAttributes();
40
41     /**
42      * PathId.
43      *
44      * @return pathId
45      */
46     long getPathId();
47 }