Java BigInteger Calculate getKnownDynamicmacFlowRef(short tableId, BigInteger dpId, long lporTag, String macAddress, long elanTag)

Here you can find the source of getKnownDynamicmacFlowRef(short tableId, BigInteger dpId, long lporTag, String macAddress, long elanTag)

Description

get Known Dynamicmac Flow Ref

License

Open Source License

Declaration

public static String getKnownDynamicmacFlowRef(short tableId, BigInteger dpId, long lporTag, String macAddress,
            long elanTag) 

Method Source Code


//package com.java2s;
/*// w w  w . ja v a  2s.  c  om
 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

import java.math.BigInteger;

public class Main {
    public static String getKnownDynamicmacFlowRef(short tableId, BigInteger dpId, long lporTag, String macAddress,
            long elanTag) {
        return new StringBuffer().append(tableId).append(elanTag).append(dpId).append(lporTag).append(macAddress)
                .toString();
    }

    public static String getKnownDynamicmacFlowRef(short tableId, BigInteger dpId, BigInteger remoteDpId,
            String macAddress, long elanTag) {
        return new StringBuffer().append(tableId).append(elanTag).append(dpId).append(remoteDpId).append(macAddress)
                .toString();
    }

    private static String getKnownDynamicmacFlowRef(short elanDmacTable, BigInteger dpId, String extDeviceNodeId,
            String dstMacAddress, long elanTag, boolean shFlag) {
        return new StringBuffer().append(elanDmacTable).append(elanTag).append(dpId).append(extDeviceNodeId)
                .append(dstMacAddress).append(shFlag).toString();
    }
}

Related

  1. getIpAddressByBigInteger(BigInteger[] bigs)
  2. getIpv4AddrFromNumber(BigInteger addr)
  3. getIpv6AddrFromNumber(BigInteger addr)
  4. getJsonFromBigIntArray(JsonGenerator jg, BigInteger[] array, String pf)
  5. getKeyFromBigInteger(final BigInteger value, final int numBytes)
  6. getLongAsUnsignedBigInteger(long number)
  7. getMagnitude(BigInteger bi)
  8. getMetaDataForLPortDispatcher(int lportTag, short serviceIndex, BigInteger serviceMetaData)
  9. getMetaDataMaskForLPortDispatcher(BigInteger metadataMaskForServiceIndex, BigInteger metadataMaskForLPortTag, BigInteger metadataMaskForService)