public final class MetaDataUtil extends Object
public static final BigInteger METADATA_MASK_LPORT_TAG
public static final BigInteger METADATA_MASK_SERVICE
public static final BigInteger METADATA_MASK_SERVICE_INDEX
public static final BigInteger METADATA_MASK_VRFID
public static final BigInteger METADATA_MASK_REMOTE_ACL_TAG
public static final BigInteger METADATA_MASK_POLICY_CLASSIFER_ID
public static final BigInteger METADA_MASK_VALID_TUNNEL_ID_BIT_AND_TUNNEL_ID
public static final BigInteger METADATA_MASK_LABEL_ITM
public static final BigInteger METADA_MASK_TUNNEL_ID
public static final BigInteger METADATA_MASK_SERVICE_SH_FLAG
public static final BigInteger METADATA_MASK_LPORT_TAG_SH_FLAG
public static final BigInteger METADATA_MASK_SH_FLAG
public static final BigInteger METADATA_MASK_ELAN_SUBNET_ROUTE
public static final BigInteger METADATA_MASK_SUBNET_ROUTE
public static final BigInteger METADATA_MASK_ACL_CONNTRACK_CLASSIFIER_TYPE
public static final BigInteger METADATA_MASK_ACL_DROP
public static final BigInteger REG6_MASK_REMOTE_DPN
public static final int METADATA_LPORT_TAG_OFFSET
public static final int METADATA_LPORT_TAG_BITLEN
public static final int METADATA_ELAN_TAG_OFFSET
public static final int METADATA_ELAN_TAG_BITLEN
public static final int METADATA_VPN_ID_OFFSET
public static final int METADATA_VPN_ID_BITLEN
public static final int REG6_START_INDEX
public static final int REG6_END_INDEX
public static BigInteger getMetaDataForLPortDispatcher(int lportTag, short serviceIndex)
public static BigInteger getMetaDataForLPortDispatcher(int lportTag, short serviceIndex, BigInteger serviceMetaData)
public static BigInteger getMetaDataForLPortDispatcher(int lportTag, short serviceIndex, BigInteger serviceMetaData, boolean isSHFlagSet)
public static BigInteger getPolicyClassifierMetaData(long classifier)
public static BigInteger getServiceIndexMetaData(int serviceIndex)
public static BigInteger getLportTagMetaData(int lportTag)
public static BigInteger getMetaDataMaskForLPortDispatcher()
public static BigInteger getMetaDataMaskForLPortDispatcher(BigInteger metadataMaskForLPortTag)
public static BigInteger getMetaDataMaskForLPortDispatcher(BigInteger metadataMaskForServiceIndex, BigInteger metadataMaskForLPortTag, BigInteger metadataMaskForService)
public static BigInteger getMetadataLPort(int portTag)
public static BigInteger getLportFromMetadata(BigInteger metadata)
public static int getElanTagFromMetadata(BigInteger metadata)
public static long getPolicyClassifierFromMetadata(BigInteger metadata)
public static BigInteger getElanTagMetadata(long elanTag)
public static int getServiceTagFromMetadata(BigInteger metadata)
public static BigInteger getTunnelIdWithValidVniBitAndVniSet(int vni)
public static long getNatRouterIdFromMetadata(BigInteger metadata)
public static BigInteger getAclConntrackClassifierTypeFromMetaData(BigInteger conntrackClassifierType)
Conntrack supported traffic is identified by value 0 (0000 in binary)
i.e., 0x0/0x2
Non-conntrack supported traffic is identified by value 2 (0010 in binary)
i.e., 0x2/0x2
conntrackClassifierType
- the conntrack classifier flagpublic static BigInteger getAclDropMetaData(BigInteger dropFlag)
public static BigInteger getVpnIdMetadata(long vrfId)
public static long getVpnIdFromMetadata(BigInteger metadata)
public static BigInteger getWriteMetaDataMaskForDispatcherTable()
public static BigInteger getWriteMetaDataMaskForEgressDispatcherTable()
public static BigInteger getLportTagForReg6(int lportTag)
public static BigInteger getServiceIndexForReg6(int serviceIndex)
public static BigInteger getInterfaceTypeForReg6(int tunnelType)
public static long getReg6ValueForLPortDispatcher(int lportTag, short serviceIndex)
public static long getReg6ValueForLPortDispatcher(int lportTag, short serviceIndex, short interfaceType)
public static long getRemoteDpnMetadatForEgressTunnelTable(long remoteDpnId)
public static long getRemoteDpnMaskForEgressTunnelTable()
public static long getLportTagMaskForReg6()
public static long getElanMaskForReg()
public static long getVpnIdMaskForReg()
public static BigInteger mergeMetadataValues(BigInteger metadata, BigInteger metadata2)
public static BigInteger mergeMetadataMask(BigInteger mask, BigInteger mask2)
Copyright © 2019 OpenDaylight. All rights reserved.