Class MatchConvertorUtil


  • public final class MatchConvertorUtil
    extends Object
    Match related tools.
    • Method Detail

      • ipv6ExthdrFlagsToInt

        public static int ipv6ExthdrFlagsToInt​(Ipv6ExthdrFlags flags)
        Ipv 6 exthdr flags to int integer.
        Parameters:
        flags - ipv6 external header flag
        Returns:
        integer containing lower 9 bits filled with corresponding flags
      • extractIpv4Mask

        public static byte @Nullable [] extractIpv4Mask​(Iterator<String> addressParts)
        Extract ipv 4 mask byte [ ].
        Parameters:
        addressParts - the address parts
        Returns:
        the byte [ ]
      • toOfIpDscp

        public static MatchEntry toOfIpDscp​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Dscp ipDscp)
        To of ip dscp match entry.
        Parameters:
        ipDscp - the ip dscp
        Returns:
        the match entry
      • toOfVlanPcp

        public static MatchEntry toOfVlanPcp​(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp vlanPcp)
        To of vlan pcp match entry.
        Parameters:
        vlanPcp - the vlan pcp
        Returns:
        the match entry