Class ExtendedCommunityUtil
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.spi.extended.community.ExtendedCommunityUtil
-
public final class ExtendedCommunityUtil extends Object
The utility functions related to the extended communities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-