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 Details

    • setTransitivity

      public static int setTransitivity(int type, boolean isTransitive)
      Sets transitivity flag for the Extended Community type.
      Parameters:
      type - Extended Community Type
      isTransitive - 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