Interface Vpls

  • All Known Implementing Classes:
    VplsManager

    public interface Vpls
    • Method Detail

      • createVpls

        VplsData createVpls​(String vplsName,
                            org.onosproject.net.EncapsulationType encapsulationType)
        Creates a new VPLS.
        Parameters:
        vplsName - the name of the VPLS
        encapsulationType - the encapsulation type
        Returns:
        a VPLS instance if the operation is successful; null otherwise
      • removeVpls

        VplsData removeVpls​(VplsData vplsData)
        Removes a VPLS.
        Parameters:
        vplsData - the VPLS to be removed
        Returns:
        the VPLS removed if the operation is successful; null otherwise
      • addInterfaces

        void addInterfaces​(VplsData vplsData,
                           Collection<org.onosproject.net.intf.Interface> interfaces)
        Adds network interfaces to a VPLS.
        Parameters:
        vplsData - the VPLS to which the interfaces have to be added to
        interfaces - the interfaces to add
      • addInterface

        void addInterface​(VplsData vplsData,
                          org.onosproject.net.intf.Interface iface)
        Adds a network interface to a VPLS.
        Parameters:
        vplsData - the VPLS to which the interface has to be added to
        iface - the interface to add
      • setEncapsulationType

        void setEncapsulationType​(VplsData vplsData,
                                  org.onosproject.net.EncapsulationType encapsulationType)
        Sets an encapsulation type for a VPLS.
        Parameters:
        vplsData - the VPLS for which the encapsulation has to be set
        encapsulationType - the encapsulation type
      • getVpls

        VplsData getVpls​(String vplsName)
        Retrieves a VPLS.
        Parameters:
        vplsName - the name of the VPLS
        Returns:
        the VPLS instance if the VPLS exists; null otherwise
      • getAllVpls

        Collection<VplsData> getAllVpls()
        Gets all VPLSs.
        Returns:
        a collection of VPLSs
      • removeInterfaces

        Collection<org.onosproject.net.intf.Interface> removeInterfaces​(VplsData vplsData,
                                                                        Collection<org.onosproject.net.intf.Interface> interfaces)
        Removes the interfaces specified from a VPLS.
        Parameters:
        vplsData - the VPLS from which the interfaces are to be removed
        interfaces - the interfaces to remove
        Returns:
        the interfaces removed
      • removeInterface

        org.onosproject.net.intf.Interface removeInterface​(VplsData vplsData,
                                                           org.onosproject.net.intf.Interface iface)
        Removes the interface specified from a VPLS.
        Parameters:
        vplsData - the VPLS from which the interface is to be removed
        iface - the interface to remove
        Returns:
        the interface removed
      • removeAllVpls

        void removeAllVpls()
        Removes all VPLSs and cleans up the VPLS configuration.