java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.update.CommunityUtil

public final class CommunityUtil extends Object
Object representation of a RFC1997 Community tag. Communities are a way for the advertising entity to attach semantic meaning/policy to advertised objects.
  • Field Details

    • NO_EXPORT

      public static final Community NO_EXPORT
      NO_EXPORT community. All routes received carrying a communities attribute containing this value MUST NOT be advertised outside a BGP confederation boundary (a stand-alone autonomous system that is not part of a confederation should be considered a confederation itself).
    • NO_ADVERTISE

      public static final Community NO_ADVERTISE
      NO_ADVERTISE community. All routes received carrying a communities attribute containing this value MUST NOT be advertised to other BGP peers.
    • NO_EXPORT_SUBCONFED

      public static final Community NO_EXPORT_SUBCONFED
      NO_EXPORT_SUBCONFED community. All routes received carrying a communities attribute containing this value MUST NOT be advertised to external BGP peers (this includes peers in other members autonomous systems inside a BGP confederation).
    • LLGR_STALE

      public static final Community LLGR_STALE
      LLGR_STALE community can be used to mark stale routes retained for a longer period of time. Such long-lived stale routes are to be handled according to the procedures specified in https://tools.ietf.org/html/draft-uttaro-idr-bgp-persistence-04#section-4.
    • NO_LLGR

      public static final Community NO_LLGR
      NO_LLGR community can be used to mark routes which a BGP speaker does not want treated according to procedures, as detailed in https://tools.ietf.org/html/draft-uttaro-idr-bgp-persistence-04#section-4.
  • Constructor Details

  • Method Details

    • create

      public Community create(long asn, int semantics)
      Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
      Parameters:
      asn - long
      semantics - int
      Returns:
      new Community
    • create

      public static Community create(ReferenceCache refCache, long asn, int semantics)
      Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
      Parameters:
      refCache - reference cache to use
      asn - long
      semantics - int
      Returns:
      new Community
    • valueOf

      public Community valueOf(String string)
      Creates a Community from its String representation.
      Parameters:
      string - String representation of a community
      Returns:
      new Community
    • valueOf

      public static Community valueOf(ReferenceCache refCache, String string)
      Creates a Community from its String representation.
      Parameters:
      refCache - reference cache to use
      string - String representation of a community
      Returns:
      new Community