Class ExtendedCommunityUtil
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.extended.community.ExtendedCommunityUtil
The utility functions related to the extended communities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isTransitive
(int type) Check the Extended Community type for transitivity.static int
setTransitivity
(int type, boolean isTransitive) Sets transitivity flag for the Extended Community type.
-
Method Details
-
setTransitivity
public static int setTransitivity(int type, boolean isTransitive) Sets transitivity flag for the Extended Community type.- Parameters:
type
- Extended Community TypeisTransitive
- Extended Community transitivity- Returns:
- Extended Community type with a transitivity flag set if isTransitive false, otherwise returns unchanged type.
-
isTransitive
public static boolean isTransitive(int type) Check the Extended Community type for transitivity.- Parameters:
type
- Extended Community Type- Returns:
- True if input type is transitive, false if the type is non-transitive
-