Modifier and Type | Class and Description |
---|---|
class |
ShortestPath.Predecessor
This class stores the info related to a PhysicalSwitch predecessor.
|
Constructor and Description |
---|
ShortestPath()
Instantiates a new shortest path.
|
Modifier and Type | Method and Description |
---|---|
LinkedList<PhysicalLink> |
computePath(OVXPort srcPort,
OVXPort dstPort)
Gets the physical path between two virtual ports.
|
LinkedList<PhysicalLink> |
computePath(PhysicalSwitch srcSw,
PhysicalSwitch dstSw)
Gets the physical path between two physical switches.
|
void |
execute(PhysicalSwitch source)
Compute all the paths between a source switch and all the switches in the
network.
|
String |
getName()
Gets the name of the routing policy.
|
SwitchRoute |
getRoute(OVXBigSwitch vSwitch,
OVXPort srcPort,
OVXPort dstPort)
Gets the route element that represents a path between two virtual ports.
|
void |
setLinkPath(OVXLink ovxLink)
Sets end-points to a route.
|
public ShortestPath()
public void execute(PhysicalSwitch source)
source
- the source switchpublic LinkedList<PhysicalLink> computePath(OVXPort srcPort, OVXPort dstPort)
computePath
in interface Routable
srcPort
- the virtual source portdstPort
- the virtual destination portpublic LinkedList<PhysicalLink> computePath(PhysicalSwitch srcSw, PhysicalSwitch dstSw)
srcSw
- the physical source switchdstSw
- the physical destination switchpublic SwitchRoute getRoute(OVXBigSwitch vSwitch, OVXPort srcPort, OVXPort dstPort)
public String getName()
Routable
public void setLinkPath(OVXLink ovxLink) throws PortMappingException
Routable
setLinkPath
in interface Routable
ovxLink
- The link representing the end-points of a routePortMappingException
Copyright © 2015. All rights reserved.