Package org.onosproject.vpls.api
Interface Vpls
-
- All Known Implementing Classes:
VplsManager
public interface Vpls
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInterface(VplsData vplsData, org.onosproject.net.intf.Interface iface)Adds a network interface to a VPLS.voidaddInterfaces(VplsData vplsData, Collection<org.onosproject.net.intf.Interface> interfaces)Adds network interfaces to a VPLS.VplsDatacreateVpls(String vplsName, org.onosproject.net.EncapsulationType encapsulationType)Creates a new VPLS.Collection<VplsData>getAllVpls()Gets all VPLSs.VplsDatagetVpls(String vplsName)Retrieves a VPLS.voidremoveAllVpls()Removes all VPLSs and cleans up the VPLS configuration.org.onosproject.net.intf.InterfaceremoveInterface(VplsData vplsData, org.onosproject.net.intf.Interface iface)Removes the interface specified from a VPLS.Collection<org.onosproject.net.intf.Interface>removeInterfaces(VplsData vplsData, Collection<org.onosproject.net.intf.Interface> interfaces)Removes the interfaces specified from a VPLS.VplsDataremoveVpls(VplsData vplsData)Removes a VPLS.voidsetEncapsulationType(VplsData vplsData, org.onosproject.net.EncapsulationType encapsulationType)Sets an encapsulation type for a VPLS.
-
-
-
Method Detail
-
createVpls
VplsData createVpls(String vplsName, org.onosproject.net.EncapsulationType encapsulationType)
Creates a new VPLS.- Parameters:
vplsName- the name of the VPLSencapsulationType- 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 tointerfaces- 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 toiface- 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 setencapsulationType- 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 removedinterfaces- 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 removediface- the interface to remove- Returns:
- the interface removed
-
removeAllVpls
void removeAllVpls()
Removes all VPLSs and cleans up the VPLS configuration.
-
-