
org.projectfloodlight.openflow.protocol.OFPortDesc Maven / Gradle / Ivy
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the source distribution
// Automatically generated by LOXI from template of_interface.java
// Do not modify
package org.projectfloodlight.openflow.protocol;
import org.projectfloodlight.openflow.protocol.*;
import org.projectfloodlight.openflow.protocol.action.*;
import org.projectfloodlight.openflow.protocol.actionid.*;
import org.projectfloodlight.openflow.protocol.bsntlv.*;
import org.projectfloodlight.openflow.protocol.errormsg.*;
import org.projectfloodlight.openflow.protocol.meterband.*;
import org.projectfloodlight.openflow.protocol.instruction.*;
import org.projectfloodlight.openflow.protocol.instructionid.*;
import org.projectfloodlight.openflow.protocol.match.*;
import org.projectfloodlight.openflow.protocol.oxm.*;
import org.projectfloodlight.openflow.protocol.queueprop.*;
import org.projectfloodlight.openflow.types.*;
import org.projectfloodlight.openflow.util.*;
import org.projectfloodlight.openflow.exceptions.*;
import java.util.Set;
import java.util.List;
import org.jboss.netty.buffer.ChannelBuffer;
public interface OFPortDesc extends OFObject {
OFPort getPortNo();
MacAddress getHwAddr();
String getName();
Set getConfig();
Set getState();
Set getCurr() throws UnsupportedOperationException;
Set getAdvertised() throws UnsupportedOperationException;
Set getSupported() throws UnsupportedOperationException;
Set getPeer() throws UnsupportedOperationException;
long getCurrSpeed() throws UnsupportedOperationException;
long getMaxSpeed() throws UnsupportedOperationException;
List getProperties() throws UnsupportedOperationException;
OFVersion getVersion();
// Additional methods
/**
* Returns true if the port is up, i.e., it's neither administratively
* down nor link down. It currently does NOT take STP state into
* consideration
* @return whether the port is up
*/
boolean isEnabled();
/**
* Returns the current generation ID of this port.
*
* The generationId is reported by the switch as a @{link OFPortDescProp} in
* @link{OFPortDescStatsReply} and @link{OFPortStatus} messages. If the
* current OFPortDesc does not contain a generation Id, returns U64.ZERO;
*
* For OpenFlow versions earlier than 1.4, always returns U64.ZERO;
*
* @return the generation ID or U64.ZERO if not reported
* @since 1.4
*/
public U64 getBsnGenerationId();
void writeTo(ChannelBuffer channelBuffer);
Builder createBuilder();
public interface Builder {
OFPortDesc build();
OFPort getPortNo();
Builder setPortNo(OFPort portNo);
MacAddress getHwAddr();
Builder setHwAddr(MacAddress hwAddr);
String getName();
Builder setName(String name);
Set getConfig();
Builder setConfig(Set config);
Set getState();
Builder setState(Set state);
Set getCurr() throws UnsupportedOperationException;
Builder setCurr(Set curr) throws UnsupportedOperationException;
Set getAdvertised() throws UnsupportedOperationException;
Builder setAdvertised(Set advertised) throws UnsupportedOperationException;
Set getSupported() throws UnsupportedOperationException;
Builder setSupported(Set supported) throws UnsupportedOperationException;
Set getPeer() throws UnsupportedOperationException;
Builder setPeer(Set peer) throws UnsupportedOperationException;
long getCurrSpeed() throws UnsupportedOperationException;
Builder setCurrSpeed(long currSpeed) throws UnsupportedOperationException;
long getMaxSpeed() throws UnsupportedOperationException;
Builder setMaxSpeed(long maxSpeed) throws UnsupportedOperationException;
List getProperties() throws UnsupportedOperationException;
Builder setProperties(List properties) throws UnsupportedOperationException;
OFVersion getVersion();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy