当前位置: 首页>>代码示例>>Java>>正文


Java OFGroup.of方法代码示例

本文整理汇总了Java中org.projectfloodlight.openflow.types.OFGroup.of方法的典型用法代码示例。如果您正苦于以下问题:Java OFGroup.of方法的具体用法?Java OFGroup.of怎么用?Java OFGroup.of使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.projectfloodlight.openflow.types.OFGroup的用法示例。


在下文中一共展示了OFGroup.of方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createL2DCOFloodOverUnicastTunnels

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-9 of index are used. Bits 10-15 are ignored.
 * @param index
 * @param tunnelId
 * @return
 */
public static OFGroup createL2DCOFloodOverUnicastTunnels(U16 index, U16 tunnelId) { //8
	return OFGroup.of(0 | (index.getRaw() & 0x03ff) 
			| (tunnelId.getRaw() << 12)
			| (L2OverlaySubType.L2_OVERLAY_FLOOD_OVER_UNICAST_TUNNELS << 10)
			| (OFDPAGroupType.L2_DATA_CENTER_OVERLAY << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:13,代码来源:OFDPAUtils.java

示例2: createL2DCOFloodOverMulticastTunnels

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-9 of index are used. Bits 10-15 are ignored.
 * @param index
 * @param tunnelId
 * @return
 */
public static OFGroup createL2DCOFloodOverMulticastTunnels(U16 index, U16 tunnelId) { //8
	return OFGroup.of(0 | (index.getRaw() & 0x03ff) 
			| (tunnelId.getRaw() << 12)
			| (L2OverlaySubType.L2_OVERLAY_FLOOD_OVER_MULTICAST_TUNNELS << 10)
			| (OFDPAGroupType.L2_DATA_CENTER_OVERLAY << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:13,代码来源:OFDPAUtils.java

示例3: createL2DCOMulticastOverUnicastTunnels

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-9 of index are used. Bits 10-15 are ignored.
 * @param index
 * @param tunnelId
 * @return
 */
public static OFGroup createL2DCOMulticastOverUnicastTunnels(U16 index, U16 tunnelId) { //8
	return OFGroup.of(0 | (index.getRaw() & 0x03ff) 
			| (tunnelId.getRaw() << 12)
			| (L2OverlaySubType.L2_OVERLAY_MULTICAST_OVER_UNICAST_TUNNELS << 10)
			| (OFDPAGroupType.L2_DATA_CENTER_OVERLAY << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:13,代码来源:OFDPAUtils.java

示例4: createL2DCOMulticastOverMulticastTunnels

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-9 of index are used. Bits 10-15 are ignored.
 * @param index
 * @param tunnelId
 * @return
 */
public static OFGroup createL2DCOMulticastOverMulticastTunnels(U16 index, U16 tunnelId) { //8
	return OFGroup.of(0 | (index.getRaw() & 0x03ff) 
			| (tunnelId.getRaw() << 12)
			| (L2OverlaySubType.L2_OVERLAY_MULTICAST_OVER_MULTICAST_TUNNELS << 10)
			| (OFDPAGroupType.L2_DATA_CENTER_OVERLAY << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:13,代码来源:OFDPAUtils.java

示例5: createL2Interface

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
public static OFGroup createL2Interface(OFPort p, VlanVid v) { //0
	return OFGroup.of(0 | p.getShortPortNumber() | (v.getVlan() << 16) | (OFDPAGroupType.L2_INTERFACE << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:4,代码来源:OFDPAUtils.java

示例6: createMPLSForwardingL2Tag

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSForwardingL2Tag(U32 index) { //10
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_L2_TAG << 24)
			| (OFDPAGroupType.MPLS_FORWARDING << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例7: createL2Flood

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
public static OFGroup createL2Flood(U16 id, VlanVid v) { //4
	return OFGroup.of(0 | id.getRaw() | (v.getVlan() << 16) | (OFDPAGroupType.L2_FLOOD << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:4,代码来源:OFDPAUtils.java

示例8: createL3Multicast

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
public static OFGroup createL3Multicast(U16 id, VlanVid v) { //6
	return OFGroup.of(0 | id.getRaw() | (v.getVlan() << 16) | (OFDPAGroupType.L3_MULTICAST << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:4,代码来源:OFDPAUtils.java

示例9: createMPLSInterfaceLabel

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSInterfaceLabel(U32 index) { //9
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_INTERFACE << 24)
			| (OFDPAGroupType.MPLS_LABEL << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例10: createMPLSL2VPNLabel

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSL2VPNLabel(U32 index) { //9
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_L2_VPN_LABEL << 24)
			| (OFDPAGroupType.MPLS_LABEL << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例11: createL2UnfilteredInterface

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
public static OFGroup createL2UnfilteredInterface(OFPort p) { //11
	return OFGroup.of(0 | p.getShortPortNumber() | (OFDPAGroupType.L2_UNFILTERED_INTERFACE << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:4,代码来源:OFDPAUtils.java

示例12: createMPLSTunnelLable1

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSTunnelLable1(U32 index) { //9
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_TUNNEL_LABEL_1 << 24)
			| (OFDPAGroupType.MPLS_LABEL << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例13: createMPLSTunnelLabel2

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSTunnelLabel2(U32 index) { //9
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_TUNNEL_LABEL_2 << 24)
			| (OFDPAGroupType.MPLS_LABEL << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例14: createMPLSSwapLabel

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSSwapLabel(U32 index) { //9
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_SWAP_LABEL << 24)
			| (OFDPAGroupType.MPLS_LABEL << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java

示例15: createMPLSForwardingFastFailover

import org.projectfloodlight.openflow.types.OFGroup; //导入方法依赖的package包/类
/**
 * Only bits 0-23 of index are used. Bits 24-31 are ignored.
 * @param index
 * @return
 */
public static OFGroup createMPLSForwardingFastFailover(U32 index) { //10
	return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) 
			| (MPLSSubType.MPLS_FAST_FAILOVER << 24)
			| (OFDPAGroupType.MPLS_FORWARDING << 28));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:OFDPAUtils.java


注:本文中的org.projectfloodlight.openflow.types.OFGroup.of方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。