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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.CommunityLLGR_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.CommunityNO_ADVERTISE community.static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.CommunityNO_EXPORT community.static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.CommunityNO_EXPORT_SUBCONFED community.static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.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 TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Communitycreate(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.Communitycreate(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.CommunityCreates a Community from its String representation.static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.CommunityCreates a Community from its String representation.
-
Field Details
-
NO_EXPORT
public static final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.Community NO_EXPORTNO_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_ADVERTISENO_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_SUBCONFEDNO_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_STALELLGR_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_LLGRNO_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- longsemantics- 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 useasn- longsemantics- 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 usestring- String representation of a community- Returns:
- new Community
-