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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    LLGR_STALE community can be used to mark stale routes retained for a longer period of time.
    static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    NO_ADVERTISE community.
    static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    NO_EXPORT community.
    static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    NO_EXPORT_SUBCONFED community.
    static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    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 Summary

    Constructors
    Constructor
    Description
    CommunityUtil(org.opendaylight.protocol.util.ReferenceCache refCache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    create(long asn, int semantics)
    Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
    static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    create(org.opendaylight.protocol.util.ReferenceCache refCache, long asn, int semantics)
    Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    valueOf(String string)
    Creates a Community from its String representation.
    static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community
    valueOf(org.opendaylight.protocol.util.ReferenceCache refCache, String string)
    Creates a Community from its String representation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NO_EXPORT

      public static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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

    • CommunityUtil

      public CommunityUtil(org.opendaylight.protocol.util.ReferenceCache refCache)
  • Method Details

    • create

      public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community create(org.opendaylight.protocol.util.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community valueOf(String string)
      Creates a Community from its String representation.
      Parameters:
      string - String representation of a community
      Returns:
      new Community
    • valueOf

      public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community valueOf(org.opendaylight.protocol.util.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