Class CommunityUtil
- 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 Community
LLGR_STALE
LLGR_STALE community can be used to mark stale routes retained for a longer period of time.static Community
NO_ADVERTISE
NO_ADVERTISE community.static Community
NO_EXPORT
NO_EXPORT community.static Community
NO_EXPORT_SUBCONFED
NO_EXPORT_SUBCONFED community.static 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 Summary
Constructors Constructor Description CommunityUtil(ReferenceCache refCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Community
create(long asn, int semantics)
Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.static Community
create(ReferenceCache refCache, long asn, int semantics)
Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.Community
valueOf(String string)
Creates a Community from its String representation.static Community
valueOf(ReferenceCache refCache, String string)
Creates a Community from its String representation.
-
-
-
Field Detail
-
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 Detail
-
CommunityUtil
public CommunityUtil(ReferenceCache refCache)
-
-
Method Detail
-
create
public Community create(long asn, int semantics)
Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.- Parameters:
asn
- longsemantics
- 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 useasn
- longsemantics
- 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 usestring
- String representation of a community- Returns:
- new Community
-
-