public class CfgHello extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CfgHello.Behavior
Mock switch's behavior in sending the HELLO message.
|
Constructor and Description |
---|
CfgHello(CfgHello.Behavior sendHow,
ProtocolVersion... pvs)
Configures the mock-switch outbound HELLO message.
|
Modifier and Type | Method and Description |
---|---|
OfmHello |
createHelloMsg()
Creates the HELLO message to send to the controller, based on the
configuration.
|
CfgHello.Behavior |
getBehavior()
Returns the required behavior of the switch when sending its HELLO.
|
ProtocolVersion |
getMaxVersion()
Returns the highest protocol version configured.
|
Set<ProtocolVersion> |
getVersions()
Returns the set of supported versions.
|
boolean |
isLegacy()
Returns true if the legacy flag is latched.
|
CfgHello |
legacy()
Latch HELLO to be the "legacy" format; that is, not the
1.3.1 structure with versionBitmap.
|
String |
toString() |
public CfgHello(CfgHello.Behavior sendHow, ProtocolVersion... pvs)
sendHow
- HELLO sending behaviorpvs
- protocol versions reported as supportedpublic CfgHello legacy()
IllegalStateException
- if more than one version was specified
in the constructorpublic OfmHello createHelloMsg()
public ProtocolVersion getMaxVersion()
public CfgHello.Behavior getBehavior()
public Set<ProtocolVersion> getVersions()
public boolean isLegacy()
Copyright © 2015. All Rights Reserved.