BigInteger dpId = interfaceInfo.getDpId();
List<MatchInfo> matches = null;
String interfaceName = interfaceInfo.getInterfaceName();
- if (tableId == IfmConstants.VLAN_INTERFACE_INGRESS_TABLE) {
+ if (tableId == NwConstants.VLAN_INTERFACE_INGRESS_TABLE) {
VlanInterfaceInfo vlanInterfaceInfo = (VlanInterfaceInfo)interfaceInfo;
matches = InterfaceServiceUtil.getMatchInfoForVlanLPort(dpId, interfaceInfo.getPortNo(),
InterfaceServiceUtil.getVlanId(interfaceName, elanServiceProvider.getBroker()), vlanInterfaceInfo.isVlanTransparent());
import java.math.BigInteger;
public class FibConstants {
- static final BigInteger COOKIE_VM_LFIB_TABLE = new BigInteger("8000002", 16);
- static final BigInteger COOKIE_VM_FIB_TABLE = new BigInteger("8000003", 16);
static final BigInteger COOKIE_TUNNEL = new BigInteger("9000000", 16);
static final int DEFAULT_FIB_FLOW_PRIORITY = 10;
static final String FLOWID_PREFIX = "L3.";
static final String VPN_IDPOOL_NAME = "vpnservices";
static final String SEPARATOR = ".";
- public static final short L3VPN_SERVICE_IDENTIFIER = 2; // TODO : This should be in just on place
}
List<ActionInfo> actionsInfos = Arrays.asList(new ActionInfo(ActionType.pop_mpls, new String[]{}));
BigInteger[] metadata = new BigInteger[] {
- MetaDataUtil.getMetaDataForLPortDispatcher(lportTag, FibConstants.L3VPN_SERVICE_IDENTIFIER),
+ MetaDataUtil.getMetaDataForLPortDispatcher(lportTag, NwConstants.L3VPN_SERVICE_INDEX),
MetaDataUtil.getMetaDataMaskForLPortDispatcher()
};
List<InstructionInfo> instructions =
BigInteger[] metadata = new BigInteger[] {
MetaDataUtil.getMetaDataForLPortDispatcher(otherEndpointlportTag,
- FibConstants.L3VPN_SERVICE_IDENTIFIER),
+ NwConstants.L3VPN_SERVICE_INDEX),
MetaDataUtil.getMetaDataMaskForLPortDispatcher()
};
List<Instruction> instructions =
int priority = DEFAULT_FIB_FLOW_PRIORITY + prefixLength;
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_FIB_TABLE, flowRef,
priority, flowRef, 0, 0,
- COOKIE_VM_FIB_TABLE, matches, null);
+ NwConstants.COOKIE_VM_FIB_TABLE, matches, null);
mdsalManager.removeFlow(dpnId, flowEntity);
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_LFIB_TABLE, flowRef,
DEFAULT_FIB_FLOW_PRIORITY, flowRef, 0, 0,
- COOKIE_VM_LFIB_TABLE, matches, null);
+ NwConstants.COOKIE_VM_LFIB_TABLE, matches, null);
mdsalManager.removeFlow(dpnId, flowEntity);
int priority = DEFAULT_FIB_FLOW_PRIORITY + prefixLength;
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_FIB_TABLE, flowRef,
priority, flowRef, 0, 0,
- COOKIE_VM_FIB_TABLE, matches, customInstructions);
+ NwConstants.COOKIE_VM_FIB_TABLE, matches, customInstructions);
mdsalManager.installFlow(dpnId, flowEntity);
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_LFIB_TABLE, flowRef,
DEFAULT_FIB_FLOW_PRIORITY, flowRef, 0, 0,
- COOKIE_VM_LFIB_TABLE, matches, instructions);
+ NwConstants.COOKIE_VM_LFIB_TABLE, matches, instructions);
mdsalManager.installFlow(dpId, flowEntity);
}
public BigInteger getCookieOutboundFlow(long routerId) {
- return NatConstants.COOKIE_OUTBOUND_NAPT_TABLE.add(new BigInteger("0110001", 16)).add(
+ return NwConstants.COOKIE_OUTBOUND_NAPT_TABLE.add(new BigInteger("0110001", 16)).add(
BigInteger.valueOf(routerId));
}
public static final String FLOWID_PREFIX = "L3.";
public static final int DEFAULT_DNAT_FLOW_PRIORITY = 10;
public static final long INVALID_ID = -1;
- public static final BigInteger COOKIE_OUTBOUND_NAPT_TABLE = new BigInteger("8000008", 16);
public static final short DEFAULT_SNAT_FLOW_PRIORITY = 10;
public static final short DEFAULT_PSNAT_FLOW_PRIORITY = 5;
public static final String SNAT_FLOW_NAME = "SNAT";
static final BigInteger COOKIE_TUNNEL = new BigInteger("9000000", 16);
static final String FLOWID_PREFIX = "NAT.";
- static final BigInteger COOKIE_VM_LFIB_TABLE = new BigInteger("8000002", 16);
public VpnFloatingIpHandler(VpnRpcService vpnService, IBgpManager bgpManager, FibRpcService fibService) {
this.vpnService = vpnService;
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_LFIB_TABLE, flowRef,
10, flowRef, 0, 0,
- COOKIE_VM_LFIB_TABLE, matches, instructions);
+ NwConstants.COOKIE_VM_LFIB_TABLE, matches, instructions);
mdsalManager.installFlow(dpId, flowEntity);
Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.L3_LFIB_TABLE, flowRef,
10, flowRef, 0, 0,
- COOKIE_VM_LFIB_TABLE, matches, null);
+ NwConstants.COOKIE_VM_LFIB_TABLE, matches, null);
mdsalManager.removeFlow(dpnId, flowEntity);