public class OVXNetworkManager extends Object
Constructor and Description |
---|
OVXNetworkManager(Map<String,Object> vnet) |
Modifier and Type | Method and Description |
---|---|
OVXNetwork |
createNetwork()
Create the OVX network based on persistent storage.
|
Integer |
getLinkCount() |
Integer |
getPortCount() |
boolean |
getStatus() |
Integer |
getSwitchCount() |
Integer |
getTenantId() |
void |
registerLink(DPIDandPortPair dpp)
Registers the given link, ensuring the virtual network is spawned
only after the link is online.
|
void |
registerPort(DPIDandPort port)
Registers the given port, ensuring the virtual network is spawned
only after the port is online.
|
void |
registerSwitch(Long dpid)
Registers switch identified by the given DPID, ensuring
the virtual network is spawned only after the switch is online.
|
void |
setLink(DPIDandPortPair dpp)
Change link from offline to single direction state, or from single
direction to online.
|
void |
setPort(DPIDandPort port)
Changes link from offline to single direction state, or from single
direction to online.
|
void |
setSwitch(Long dpid)
Changes switch from offline to online state.
|
void |
unsetLink(DPIDandPortPair dpp)
Changes link from online to offline state.
|
void |
unsetPort(DPIDandPort port)
Changes link from online to offline state.
|
void |
unsetSwitch(Long dpid)
Change.
|
public OVXNetworkManager(Map<String,Object> vnet) throws IndexOutOfBoundException, DuplicateIndexException
public Integer getTenantId()
public Integer getSwitchCount()
public Integer getLinkCount()
public Integer getPortCount()
public boolean getStatus()
public OVXNetwork createNetwork()
public void registerSwitch(Long dpid)
dpid
- the switch DPIDpublic void registerLink(DPIDandPortPair dpp)
dpp
- the link as a pair of DPID and port numberpublic void registerPort(DPIDandPort port)
port
- the port given as DPID and port numberpublic void setSwitch(Long dpid)
dpid
- the switch DPID.public void unsetSwitch(Long dpid)
dpid
- unique datapath idpublic void setLink(DPIDandPortPair dpp)
dpp
- physical link given as pair of DPID and portpublic void unsetLink(DPIDandPortPair dpp)
dpp
- physical link given as pair of DPID and portpublic void setPort(DPIDandPort port)
key
- Unique linkpublic void unsetPort(DPIDandPort port)
key
- Unique linkCopyright © 2015. All rights reserved.