public class AccessAgentData extends Object
| Constructor and Description |
|---|
AccessAgentData(org.onosproject.net.DeviceId deviceId,
Map<org.onosproject.net.ConnectPoint,org.onlab.packet.MacAddress> oltMacInfo,
org.onlab.packet.MacAddress agentMac,
Optional<org.onosproject.net.ConnectPoint> vtnLocation)
Constructs an agent configuration for a given device.
|
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.DeviceId |
deviceId()
Retrieves the access device ID.
|
org.onlab.packet.MacAddress |
getAgentMac()
Returns the agent's MAC address.
|
Optional<org.onosproject.net.ConnectPoint> |
getOltConnectPoint(org.onosproject.net.ConnectPoint agentConnectPoint)
Returns the point where the OLT is connected to the fabric given a
connect point on the agent device.
|
Map<org.onosproject.net.ConnectPoint,org.onlab.packet.MacAddress> |
getOltMacInfo()
Returns the mapping of OLT chips to MAC addresses.
|
Optional<org.onosproject.net.ConnectPoint> |
getVtnLocation()
Returns the location of the agent.
|
String |
toString() |
public AccessAgentData(org.onosproject.net.DeviceId deviceId,
Map<org.onosproject.net.ConnectPoint,org.onlab.packet.MacAddress> oltMacInfo,
org.onlab.packet.MacAddress agentMac,
Optional<org.onosproject.net.ConnectPoint> vtnLocation)
deviceId - access device IDoltMacInfo - a map of olt chips and their mac addressagentMac - the MAC address of the agentvtnLocation - the location of the agentpublic org.onosproject.net.DeviceId deviceId()
public Map<org.onosproject.net.ConnectPoint,org.onlab.packet.MacAddress> getOltMacInfo()
public org.onlab.packet.MacAddress getAgentMac()
public Optional<org.onosproject.net.ConnectPoint> getVtnLocation()
public Optional<org.onosproject.net.ConnectPoint> getOltConnectPoint(org.onosproject.net.ConnectPoint agentConnectPoint)
agentConnectPoint - connect point on the agent deviceCopyright © 2016. All rights reserved.