Class BestPathStateImpl

java.lang.Object
org.opendaylight.protocol.bgp.mode.impl.BestPathStateImpl
All Implemented Interfaces:
BestPathState

public final class BestPathStateImpl extends Object implements BestPathState
  • Constructor Details

    • BestPathStateImpl

      public BestPathStateImpl(org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attributes)
  • Method Details

    • getLocalPref

      public org.opendaylight.yangtools.yang.common.Uint32 getLocalPref()
      Specified by:
      getLocalPref in interface BestPathState
    • getMultiExitDisc

      public long getMultiExitDisc()
      Specified by:
      getMultiExitDisc in interface BestPathState
    • getOrigin

      public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.BgpOrigin getOrigin()
      Specified by:
      getOrigin in interface BestPathState
    • getPeerAs

      public long getPeerAs()
      Specified by:
      getPeerAs in interface BestPathState
    • getAsPathLength

      public int getAsPathLength()
      Specified by:
      getAsPathLength in interface BestPathState
    • getAttributes

      public org.opendaylight.yangtools.yang.data.api.schema.ContainerNode getAttributes()
      Specified by:
      getAttributes in interface BestPathState
    • isDepreferenced

      public boolean isDepreferenced()
      Description copied from interface: BestPathState
      Return true if this route is depreferenced, for example through LLGR_STALE community.
      Specified by:
      isDepreferenced in interface BestPathState
      Returns:
      True if this route is depreferenced, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object