Class BngUtils


  • public final class BngUtils
    extends Object
    • 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 ONU
        cTag - VLAN C-Tag
        sTag - VLAN S-Tag
        oltConnectPoint - The OLT-level connect point
        ipAddress - The attachment IP address
        macAddress - The attachment MAC address
        Returns:
        The built attachment ID