Class XconnectManager

    • Field Detail

      • netCfgService

        public org.onosproject.net.config.NetworkConfigService netCfgService
      • deviceService

        public org.onosproject.net.device.DeviceService deviceService
      • flowObjectiveService

        public org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService
      • interfaceService

        public org.onosproject.net.intf.InterfaceService interfaceService
      • cfgService

        public org.onosproject.net.config.NetworkConfigRegistry cfgService
    • Constructor Detail

      • XconnectManager

        public XconnectManager()
    • Method Detail

      • addOrUpdateXconnect

        public void addOrUpdateXconnect​(org.onosproject.net.DeviceId deviceId,
                                        org.onlab.packet.VlanId vlanId,
                                        Set<XconnectEndpoint> endpoints)
        Description copied from interface: XconnectService
        Creates or updates Xconnect.
        Specified by:
        addOrUpdateXconnect in interface XconnectService
        Parameters:
        deviceId - device ID
        vlanId - VLAN ID
        endpoints - set of endpoints
      • removeXonnect

        public void removeXonnect​(org.onosproject.net.DeviceId deviceId,
                                  org.onlab.packet.VlanId vlanId)
        Description copied from interface: XconnectService
        Deletes Xconnect.
        Specified by:
        removeXonnect in interface XconnectService
        Parameters:
        deviceId - device ID
        vlanId - VLAN ID
      • hasXconnect

        public boolean hasXconnect​(org.onosproject.net.ConnectPoint cp)
        Description copied from interface: XconnectService
        Check if there is Xconnect configured on given connect point.
        Specified by:
        hasXconnect in interface XconnectService
        Parameters:
        cp - connect point
        Returns:
        true if there is Xconnect configured on the connect point
      • getXconnectVlans

        public List<org.onlab.packet.VlanId> getXconnectVlans​(org.onosproject.net.DeviceId deviceId,
                                                              org.onosproject.net.PortNumber port)
        Description copied from interface: XconnectService
        Gives xconnect VLAN of given port of a device.
        Specified by:
        getXconnectVlans in interface XconnectService
        Parameters:
        deviceId - Device ID
        port - Port number
        Returns:
        true if given VLAN vlanId is XConnect VLAN on device deviceId.
      • isXconnectVlan

        public boolean isXconnectVlan​(org.onosproject.net.DeviceId deviceId,
                                      org.onlab.packet.VlanId vlanId)
        Description copied from interface: XconnectService
        Checks given VLAN is XConnect VLAN in given device.
        Specified by:
        isXconnectVlan in interface XconnectService
        Parameters:
        deviceId - Device ID
        vlanId - VLAN ID
        Returns:
        true if given VLAN vlanId is XConnect VLAN on device deviceId.
      • getNext

        public com.google.common.collect.ImmutableMap<XconnectKey,​Integer> getNext()
        Description copied from interface: XconnectService
        Returns the Xconnect next objective store.
        Specified by:
        getNext in interface XconnectService
        Returns:
        current contents of the xconnectNextObjStore
      • getNextId

        public int getNextId​(org.onosproject.net.DeviceId deviceId,
                             org.onlab.packet.VlanId vlanId)
        Description copied from interface: XconnectService
        Returns Xconnect next objective ID associated with group device + vlan.
        Specified by:
        getNextId in interface XconnectService
        Parameters:
        deviceId - - Device ID
        vlanId - - VLAN ID
        Returns:
        Current associated group ID
      • removeNextId

        public void removeNextId​(int nextId)
        Description copied from interface: XconnectService
        Removes given next ID from Xconnect next objective store.
        Specified by:
        removeNextId in interface XconnectService
        Parameters:
        nextId - next ID