public class PhysicalPort extends Port<PhysicalSwitch,PhysicalLink>
OFPhysicalPort.OFPortConfig, OFPhysicalPort.OFPortFeatures, OFPhysicalPort.OFPortStateDB_KEY, isEdge, mac, parentSwitch, portLinkadvertisedFeatures, config, currentFeatures, hardwareAddress, MINIMUM_LENGTH, name, OFP_ETH_ALEN, peerFeatures, portNumber, state, supportedFeatures| Constructor and Description |
|---|
PhysicalPort(OFPhysicalPort port,
PhysicalSwitch sw,
boolean isEdge)
Instantiates a physical port based on an OpenFlow physical port, the
physical switch it belongs to, and and set whether the port is an edge
port or not.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyPortStatus(OVXPortStatus portstat)
Changes the attribute of this port according to a MODIFY PortStatus.
|
boolean |
equals(Object that) |
Map<String,Object> |
getDBIndex() |
String |
getDBKey() |
String |
getDBName() |
Map<String,Object> |
getDBObject() |
OVXPort |
getOVXPort(Integer tenantId,
Integer vLinkId)
Gets the virtual port that maps this physical port for the given tenant
ID and virtual link ID.
|
List<Map<Integer,OVXPort>> |
getOVXPorts(Integer tenant)
Gets list of virtual ports that map to this physical port for a given
tenant ID.
|
void |
removeOVXPort(OVXPort ovxPort)
Removes mapping between given virtual port and this physical port.
|
void |
setOVXPort(OVXPort ovxPort)
Maps the given virtual port to this physical port.
|
void |
unregister()
Unmaps this port from the global mapping and its parent switch.
|
getCurrentThroughput, getLink, getParentSwitch, hashCode, isEdge, setEdge, setHardwareAddress, setInLink, setOutLink, toDPIDandPort, toStringgetAdvertisedFeatures, getConfig, getCurrentFeatures, getHardwareAddress, getName, getPeerFeatures, getPortNumber, getState, getSupportedFeatures, readFrom, setAdvertisedFeatures, setConfig, setCurrentFeatures, setName, setPeerFeatures, setPortNumber, setState, setSupportedFeatures, writeTopublic PhysicalPort(OFPhysicalPort port, PhysicalSwitch sw, boolean isEdge)
port - the OpenFlow physical portsw - the physical switchisEdge - edge attributepublic OVXPort getOVXPort(Integer tenantId, Integer vLinkId)
tenantId - the virtual network IDvLinkId - the virtual link IDpublic void setOVXPort(OVXPort ovxPort)
ovxPort - the virtual portpublic Map<String,Object> getDBIndex()
getDBIndex in interface PersistablegetDBIndex in class Port<PhysicalSwitch,PhysicalLink>public String getDBKey()
getDBKey in interface PersistablegetDBKey in class Port<PhysicalSwitch,PhysicalLink>public String getDBName()
getDBName in interface PersistablegetDBName in class Port<PhysicalSwitch,PhysicalLink>public Map<String,Object> getDBObject()
getDBObject in interface PersistablegetDBObject in class Port<PhysicalSwitch,PhysicalLink>public void removeOVXPort(OVXPort ovxPort)
ovxPort - the virtual portpublic boolean equals(Object that)
equals in class Port<PhysicalSwitch,PhysicalLink>public List<Map<Integer,OVXPort>> getOVXPorts(Integer tenant)
tenant - the tenant IDpublic void applyPortStatus(OVXPortStatus portstat)
portstat - the port statuspublic void unregister()
Copyright © 2015. All rights reserved.