public enum PortConfig extends Enum<PortConfig> implements OfpBitmapEnum
Port
to describe the
current configuration. Used in OfmPortMod
messages to configure
the port's behavior.Enum Constant and Description |
---|
NO_FLOOD
Do not include this port when flooding; Since 1.0; Removed at 1.1.
|
NO_FWD
Drop packets forwarded to port; Since 1.0.
|
NO_PACKET_IN
Do not send packet-in messages for port; Since 1.0.
|
NO_RECV
Drop all packets received by port; Since 1.0.
|
NO_RECV_STP
Drop Received 802.1D STP packets; Since 1.0; Removed at 1.1.
|
NO_STP
Disable 802.1D spanning tree on port; Since 1.0; Removed at 1.1.
|
PORT_DOWN
Port is administratively down; Since 1.0.
|
Modifier and Type | Method and Description |
---|---|
int |
getBit(ProtocolVersion pv)
Returns the bit value for the constant, under the given protocol
version.
|
String |
toDisplayString()
Returns a string representation of this constant suitable for
display.
|
String |
toString() |
static PortConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortConfig PORT_DOWN
public static final PortConfig NO_STP
public static final PortConfig NO_RECV
In 1.0 the meaning of this value is: Drop all packets except 802.1D spanning tree packets.
public static final PortConfig NO_RECV_STP
public static final PortConfig NO_FLOOD
public static final PortConfig NO_FWD
public static final PortConfig NO_PACKET_IN
public static PortConfig[] values()
for (PortConfig c : PortConfig.values()) System.out.println(c);
public static PortConfig valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getBit(ProtocolVersion pv)
OfpBitmapEnum
getBit
in interface OfpBitmapEnum
pv
- the protocol versionpublic String toString()
toString
in class Enum<PortConfig>
public String toDisplayString()
NO_PACKET_IN.toDisplayString()
returns:
"No Packet-In"
toDisplayString
in interface OfpBitmapEnum
Copyright © 2015. All Rights Reserved.