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


Java OFFlowMod.OFPFC_MODIFY属性代码示例

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


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

示例1: update

public PolicyUpdateTable update(OVXFlowMod ofm) {
PlumbingFlowMod pmod = new PlumbingFlowMod(ofm, this);

// update flow table for this node
PolicyUpdateTable updateTable = this.flowTable.update(pmod);

// calculate the update table for the real switch
switch (pmod.getCommand()) {
       case OFFlowMod.OFPFC_ADD:
           return doFlowModAdd(pmod);
       case OFFlowMod.OFPFC_MODIFY:
       case OFFlowMod.OFPFC_MODIFY_STRICT:
           throw new NotImplementedException("don't allow OFPFC_MODIFY and OFPFC_MODIFY_STRICT");
       case OFFlowMod.OFPFC_DELETE:
       case OFFlowMod.OFPFC_DELETE_STRICT:
           return doFlowModDelete(pmod, updateTable);
       default:
           return null;
}
   }
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:20,代码来源:PlumbingSwitch.java

示例2: handleFlowMods

/**
 * Processes FlowMods according to command field, writing out FlowMods south
 * if needed.
 *
 * @param fm The FlowMod to apply to this table
 * @return if the FlowMod needs to be sent south during devirtualization.
 */
public boolean handleFlowMods(OVXFlowMod fm) {
    switch (fm.getCommand()) {
    case OFFlowMod.OFPFC_ADD:
        return doFlowModAdd(fm);
    case OFFlowMod.OFPFC_MODIFY:
    case OFFlowMod.OFPFC_MODIFY_STRICT:
        return doFlowModModify(fm);
    case OFFlowMod.OFPFC_DELETE:
        return doFlowModDelete(fm, false);
    case OFFlowMod.OFPFC_DELETE_STRICT:
        return doFlowModDelete(fm, true);
    default:
        /* we don't know what it is. drop. */
        return false;
    }
}
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:23,代码来源:OVXFlowTable.java

示例3: setupMinorParameters

protected void setupMinorParameters(TestConfig c, int idx) {
    switch (idx % 4) {
        case 0:
            c.doFlush = true;
            c.requestFlowRemovedNotifn = true;
            c.flowModCmd = OFFlowMod.OFPFC_ADD;
            break;
        case 1:
            c.doFlush = true;
            c.requestFlowRemovedNotifn = true;
            c.flowModCmd = OFFlowMod.OFPFC_MODIFY;
            break;
        case 2:
            c.doFlush = true;
            c.requestFlowRemovedNotifn = false;
            c.flowModCmd = OFFlowMod.OFPFC_MODIFY;
        case 3:
            c.doFlush = false;
            c.requestFlowRemovedNotifn = true;
            c.flowModCmd = OFFlowMod.OFPFC_ADD;
            break;
    }
}
 
开发者ID:opendaylight,项目名称:archived-net-virt-platform,代码行数:23,代码来源:PushRewriteRouteTest.java

示例4: update

public PolicyUpdateTable update (OVXFlowMod fm) {
switch (fm.getCommand()) {
       case OFFlowMod.OFPFC_ADD:
           return doFlowModAdd(fm);
       case OFFlowMod.OFPFC_MODIFY:
       case OFFlowMod.OFPFC_MODIFY_STRICT:
           throw new NotImplementedException("don't allow OFPFC_MODIFY and OFPFC_MODIFY_STRICT");
       case OFFlowMod.OFPFC_DELETE:
       case OFFlowMod.OFPFC_DELETE_STRICT:
           return doFlowModDelete(fm);
       default:
           return null;
       }
   }
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:14,代码来源:PolicyFlowTable.java


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