Java 类org.projectfloodlight.openflow.protocol.ver10.OFFactoryVer10 实例源码

项目:ravikumaran201504    文件:OpenFlowLinkProviderTest.java   
private OFPortStatus portStatus(boolean up, int port) {
    OFPortDesc desc = portDesc(port, up);
    OFPortStatus status = OFFactoryVer10.INSTANCE.buildPortStatus()
            .setDesc(desc)
            .setReason(up ? OFPortReason.ADD : OFPortReason.DELETE).build();
    return status;

}
项目:ravikumaran201504    文件:OpenFlowLinkProviderTest.java   
private static OFPortDesc portDesc(int port, boolean up) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));
    if (!up) {
        builder.setConfig(Collections.singleton(OFPortConfig.PORT_DOWN));
    }
    return builder.build();
}
项目:athena    文件:OpenFlowDeviceProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}
项目:athena    文件:OpenFlowPacketProvider.java   
private OFPortDesc portDesc(PortNumber port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of((int) port.toLong()));

    return builder.build();
}
项目:athena    文件:OpenFlowPacketProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}
项目:ravikumaran201504    文件:OpenFlowDeviceProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}
项目:ravikumaran201504    文件:OpenFlowPacketProvider.java   
private OFPortDesc portDesc(PortNumber port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of((int) port.toLong()));

    return builder.build();
}
项目:ravikumaran201504    文件:OpenFlowPacketProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}
项目:Engine    文件:NetIDEPacketProvider.java   
private OFPortDesc portDesc(PortNumber port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of((int) port.toLong()));

    return builder.build();
}
项目:onos    文件:OpenFlowDeviceProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}
项目:onos    文件:OpenFlowPacketProvider.java   
private OFPortDesc portDesc(PortNumber port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of((int) port.toLong()));

    return builder.build();
}
项目:onos    文件:OpenFlowPacketProviderTest.java   
private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
}