public final class MetaDataUtil extends Object
Modifier and Type | Field and Description |
---|---|
static BigInteger |
METADA_MASK_TUNNEL_ID |
static BigInteger |
METADA_MASK_VALID_TUNNEL_ID_BIT_AND_TUNNEL_ID |
static int |
METADATA_ELAN_TAG_BITLEN |
static int |
METADATA_ELAN_TAG_OFFSET |
static BigInteger |
METADATA_MASK_ACL_CONNTRACK_CLASSIFIER_TYPE |
static BigInteger |
METADATA_MASK_ACL_DROP |
static BigInteger |
METADATA_MASK_ELAN_SUBNET_ROUTE |
static BigInteger |
METADATA_MASK_LABEL_ITM |
static BigInteger |
METADATA_MASK_LPORT_TAG |
static BigInteger |
METADATA_MASK_LPORT_TAG_SH_FLAG |
static BigInteger |
METADATA_MASK_POLICY_CLASSIFER_ID |
static BigInteger |
METADATA_MASK_REMOTE_ACL_TAG |
static BigInteger |
METADATA_MASK_SERVICE |
static BigInteger |
METADATA_MASK_SERVICE_INDEX |
static BigInteger |
METADATA_MASK_SERVICE_SH_FLAG |
static BigInteger |
METADATA_MASK_SH_FLAG |
static BigInteger |
METADATA_MASK_SUBNET_ROUTE |
static BigInteger |
METADATA_MASK_VRFID |
static int |
METADATA_VPN_ID_BITLEN |
static int |
METADATA_VPN_ID_OFFSET |
Modifier and Type | Method and Description |
---|---|
static BigInteger |
getAclConntrackClassifierTypeFromMetaData(BigInteger conntrackClassifierType)
Gets the ACL conntrack classifier type from meta data.
Second bit in metadata is used for this purpose. |
static BigInteger |
getAclDropMetaData(BigInteger dropFlag) |
static long |
getElanMaskForReg() |
static int |
getElanTagFromMetadata(BigInteger metadata) |
static BigInteger |
getElanTagMetadata(long elanTag) |
static BigInteger |
getInterfaceTypeForReg6(int tunnelType) |
static BigInteger |
getLportFromMetadata(BigInteger metadata) |
static BigInteger |
getLportTagForReg6(int lportTag) |
static long |
getLportTagMaskForReg6() |
static BigInteger |
getLportTagMetaData(int lportTag) |
static BigInteger |
getMetaDataForLPortDispatcher(int lportTag,
short serviceIndex) |
static BigInteger |
getMetaDataForLPortDispatcher(int lportTag,
short serviceIndex,
BigInteger serviceMetaData) |
static BigInteger |
getMetaDataForLPortDispatcher(int lportTag,
short serviceIndex,
BigInteger serviceMetaData,
boolean isSHFlagSet) |
static BigInteger |
getMetadataLPort(int portTag) |
static BigInteger |
getMetaDataMaskForLPortDispatcher() |
static BigInteger |
getMetaDataMaskForLPortDispatcher(BigInteger metadataMaskForLPortTag) |
static BigInteger |
getMetaDataMaskForLPortDispatcher(BigInteger metadataMaskForServiceIndex,
BigInteger metadataMaskForLPortTag,
BigInteger metadataMaskForService) |
static long |
getNatRouterIdFromMetadata(BigInteger metadata) |
static long |
getPolicyClassifierFromMetadata(BigInteger metadata) |
static BigInteger |
getPolicyClassifierMetaData(long classifier) |
static long |
getReg6ValueForLPortDispatcher(int lportTag,
short serviceIndex) |
static long |
getReg6ValueForLPortDispatcher(int lportTag,
short serviceIndex,
short interfaceType)
Utility to fetch the register value for lport dispatcher table.
|
static BigInteger |
getServiceIndexForReg6(int serviceIndex) |
static BigInteger |
getServiceIndexMetaData(int serviceIndex) |
static int |
getServiceTagFromMetadata(BigInteger metadata) |
static BigInteger |
getTunnelIdWithValidVniBitAndVniSet(int vni)
For the tunnel id with VNI and valid-vni-flag set, the most significant byte
should have 08.
|
static long |
getVpnIdFromMetadata(BigInteger metadata) |
static long |
getVpnIdMaskForReg() |
static BigInteger |
getVpnIdMetadata(long vrfId) |
static BigInteger |
getWriteMetaDataMaskForDispatcherTable() |
static BigInteger |
getWriteMetaDataMaskForEgressDispatcherTable() |
static BigInteger |
mergeMetadataMask(BigInteger mask,
BigInteger mask2) |
static BigInteger |
mergeMetadataValues(BigInteger metadata,
BigInteger metadata2) |
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 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 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 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.