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


Java OFDescriptionStatistics.getSoftwareDescription方法代码示例

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


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

示例1: SwitchSyncRepresentation

import org.openflow.protocol.statistics.OFDescriptionStatistics; //导入方法依赖的package包/类
public SwitchSyncRepresentation(OFFeaturesReply fr,
                                OFDescriptionStatistics d) {
    this.dpid = fr.getDatapathId();
    this.buffers = fr.getBuffers();
    this.tables = fr.getTables();
    this.capabilities = fr.getCapabilities();
    this.actions = fr.getActions();
    this.ports = toSyncedPortList(
            ImmutablePort.immutablePortListOf(fr.getPorts()));

    this.manufacturerDescription = d.getManufacturerDescription();
    this.hardwareDescription = d.getHardwareDescription();
    this.softwareDescription = d.getSoftwareDescription();
    this.serialNumber = d.getSerialNumber();
    this.datapathDescription = d.getDatapathDescription();
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:17,代码来源:SwitchSyncRepresentation.java

示例2: setSwitchProperties

import org.openflow.protocol.statistics.OFDescriptionStatistics; //导入方法依赖的package包/类
@JsonIgnore
@Override
public void setSwitchProperties(OFDescriptionStatistics description) {
    setAttribute(IOFSwitch.SWITCH_DESCRIPTION_DATA, 
            description.getDatapathDescription());       
    // Supports Nicira role request
    setAttribute(IOFSwitch.SWITCH_SUPPORTS_NX_ROLE, true);
    setAttribute(IBetterOFSwitch.SUPPORTS_OVSDB_TUNNEL_SETUP, true);
    
    SimpleVersion minVersion = 
            new SimpleVersion(MIN_VERSION_TTL_DECREMENT);
    try {
        SimpleVersion ovsVersion = 
                new SimpleVersion(description.getSoftwareDescription());
        if (ovsVersion.compareTo(minVersion) >= 0) {
            setAttribute(IBetterOFSwitch.SUPPORTS_NX_TTL_DECREMENT, true);
        }
    } catch (IllegalArgumentException e) {
        // ignore. We didn't understand the version
        if (log.isTraceEnabled()) {
            log.trace("Could not parse version number for switch {} from" +
                    " SoftwareDescription {}", this, description);
        }
        removeAttribute(IBetterOFSwitch.SUPPORTS_NX_TTL_DECREMENT);
    }
}
 
开发者ID:opendaylight,项目名称:archived-net-virt-platform,代码行数:27,代码来源:BetterOFSwitchOVS.java


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