Class CommunityUtil
java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.update.CommunityUtil
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
FieldsModifier and TypeFieldDescriptionstatic final CommunityLLGR_STALE community can be used to mark stale routes retained for a longer period of time.static final CommunityNO_ADVERTISE community.static final CommunityNO_EXPORT community.static final CommunityNO_EXPORT_SUBCONFED community.static final CommunityNO_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 - 
Method Summary
Modifier and TypeMethodDescriptioncreate(long asn, int semantics) Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.static Communitycreate(ReferenceCache refCache, long asn, int semantics) Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.Creates a Community from its String representation.static CommunityvalueOf(ReferenceCache refCache, String string) Creates a Community from its String representation. 
- 
Field Details
- 
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
NO_ADVERTISE community. All routes received carrying a communities attribute containing this value MUST NOT be advertised to other BGP peers. - 
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
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
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
 
 - 
 - 
Method Details
- 
create
Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.- Parameters:
 asn- longsemantics- int- Returns:
 - new Community
 
 - 
create
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
Creates a Community from its String representation.- Parameters:
 string- String representation of a community- Returns:
 - new Community
 
 - 
valueOf
Creates a Community from its String representation.- Parameters:
 refCache- reference cache to usestring- String representation of a community- Returns:
 - new Community
 
 
 -