Java 类org.projectfloodlight.openflow.protocol.OFPortDescStatsRequest 实例源码

项目:athena    文件:OFChannelHandler.java   
private void sendHandshakeOFPortDescRequest() throws IOException {
    // Get port description for 1.3 switch
    OFPortDescStatsRequest preq = factory13
            .buildPortDescStatsRequest()
            .setXid(handshakeTransactionIds--)
            .build();
    channel.write(Collections.singletonList(preq));
}
项目:fresco_floodlight    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:iTAP-controller    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:SDN-Multicast    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:arscheduler    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:floodlight1.2-delay    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:floodlight-hardware    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:ACAMPController    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:fast-failover-demo    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:ravikumaran201504    文件:OFChannelHandler.java   
private void sendHandshakeOFPortDescRequest() throws IOException {
    // Get port description for 1.3 switch
    OFPortDescStatsRequest preq = factory13
            .buildPortDescStatsRequest()
            .setXid(handshakeTransactionIds--)
            .build();
    channel.write(Collections.singletonList(preq));
}
项目:floodlightLB    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:DSC    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:floodlight    文件:OFSwitchHandshakeHandlerVer13Test.java   
/** Move the channel from scratch to WAIT_CONFIG_REPLY state
 * Builds on moveToWaitFeaturesReply
 * adds testing for WAIT_FEATURES_REPLY state
 */
@Test
public void moveToWaitPortDescStatsReply() throws Exception {
    testInitState();

    switchHandler.beginHandshake();

    OFMessage msg = connection.retrieveMessage();
    assertThat(msg, CoreMatchers.instanceOf(OFPortDescStatsRequest.class));
    verifyUniqueXids(msg);

    assertThat(switchHandler.getStateForTesting(), CoreMatchers.instanceOf(OFSwitchHandshakeHandler.WaitPortDescStatsReplyState.class));
}
项目:spring-open    文件:OFChannelHandler.java   
private void sendHandshakeOFPortDescRequest() throws IOException {
    // Get port description for 1.3 switch
    OFPortDescStatsRequest preq = factory13
            .buildPortDescStatsRequest()
            .setXid(handshakeTransactionIds--)
            .build();
    channel.write(Collections.singletonList(preq));
}
项目:onos    文件:OFChannelHandler.java   
private void sendHandshakeOFPortDescRequest() throws IOException {
    log.debug("Sending OF_PORT_DESC_REQUEST to {}", channel.remoteAddress());
    // Get port description for 1.3+ switch
    OFPortDescStatsRequest preq = factory
            .buildPortDescStatsRequest()
            .setXid(handshakeTransactionIds--)
            .build();
    channel.writeAndFlush(Collections.singletonList(preq));
}