Package org.opencord.bng.impl
Class BngUtils
- java.lang.Object
-
- org.opencord.bng.impl.BngUtils
-
public final class BngUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcalculateBngAttachmentKey(String onuSerialNumber, org.onlab.packet.VlanId cTag, org.onlab.packet.VlanId sTag, org.onosproject.net.ConnectPoint oltConnectPoint, org.onlab.packet.IpAddress ipAddress, org.onlab.packet.MacAddress macAddress)Extract the BNG attachment key given some of the attachment fields.static StringcalculateBngAttachmentKey(org.opencord.bng.PppoeEventSubject eventInfo)Extract the BNG attachment key given an event subject.
-
-
-
Method Detail
-
calculateBngAttachmentKey
public static String calculateBngAttachmentKey(org.opencord.bng.PppoeEventSubject eventInfo)
Extract the BNG attachment key given an event subject.- Parameters:
eventInfo- The event subsject- Returns:
- BNG attachment ID
-
calculateBngAttachmentKey
public static String calculateBngAttachmentKey(String onuSerialNumber, org.onlab.packet.VlanId cTag, org.onlab.packet.VlanId sTag, org.onosproject.net.ConnectPoint oltConnectPoint, org.onlab.packet.IpAddress ipAddress, org.onlab.packet.MacAddress macAddress)
Extract the BNG attachment key given some of the attachment fields.- Parameters:
onuSerialNumber- Serial number of the ONUcTag- VLAN C-TagsTag- VLAN S-TagoltConnectPoint- The OLT-level connect pointipAddress- The attachment IP addressmacAddress- The attachment MAC address- Returns:
- The built attachment ID
-
-