Package org.onosproject.vpls
Class VplsManager
- java.lang.Object
-
- org.onosproject.vpls.VplsManager
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.net.host.HostServicehostServiceprotected org.onosproject.net.intf.InterfaceServiceinterfaceServiceprotected VplsOperationServiceoperationServicestatic java.lang.StringVPLS_APPprotected VplsStorevplsStore
-
Constructor Summary
Constructors Constructor Description VplsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidaddInterface(VplsData vplsData, org.onosproject.net.intf.Interface iface)Adds a network interface to a VPLS.voidaddInterfaces(VplsData vplsData, java.util.Collection<org.onosproject.net.intf.Interface> interfaces)Adds network interfaces to a VPLS.VplsDatacreateVpls(java.lang.String vplsName, org.onosproject.net.EncapsulationType encapsulationType)Creates a new VPLS.voiddeactivate()java.util.Collection<VplsData>getAllVpls()Gets all VPLSs.VplsDatagetVpls(java.lang.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.java.util.Collection<org.onosproject.net.intf.Interface>removeInterfaces(VplsData vplsData, java.util.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.
-
-
-
Field Detail
-
VPLS_APP
public static final java.lang.String VPLS_APP
- See Also:
- Constant Field Values
-
hostService
protected org.onosproject.net.host.HostService hostService
-
interfaceService
protected org.onosproject.net.intf.InterfaceService interfaceService
-
vplsStore
protected VplsStore vplsStore
-
operationService
protected VplsOperationService operationService
-
-
Method Detail
-
activate
public void activate()
-
deactivate
public void deactivate()
-
createVpls
public VplsData createVpls(java.lang.String vplsName, org.onosproject.net.EncapsulationType encapsulationType)
Description copied from interface:VplsCreates a new VPLS.- Specified by:
createVplsin interfaceVpls- Parameters:
vplsName- the name of the VPLSencapsulationType- the encapsulation type- Returns:
- a VPLS instance if the operation is successful; null otherwise
-
removeVpls
public VplsData removeVpls(VplsData vplsData)
Description copied from interface:VplsRemoves a VPLS.- Specified by:
removeVplsin interfaceVpls- Parameters:
vplsData- the VPLS to be removed- Returns:
- the VPLS removed if the operation is successful; null otherwise
-
addInterfaces
public void addInterfaces(VplsData vplsData, java.util.Collection<org.onosproject.net.intf.Interface> interfaces)
Description copied from interface:VplsAdds network interfaces to a VPLS.- Specified by:
addInterfacesin interfaceVpls- Parameters:
vplsData- the VPLS to which the interfaces have to be added tointerfaces- the interfaces to add
-
addInterface
public void addInterface(VplsData vplsData, org.onosproject.net.intf.Interface iface)
Description copied from interface:VplsAdds a network interface to a VPLS.- Specified by:
addInterfacein interfaceVpls- Parameters:
vplsData- the VPLS to which the interface has to be added toiface- the interface to add
-
setEncapsulationType
public void setEncapsulationType(VplsData vplsData, org.onosproject.net.EncapsulationType encapsulationType)
Description copied from interface:VplsSets an encapsulation type for a VPLS.- Specified by:
setEncapsulationTypein interfaceVpls- Parameters:
vplsData- the VPLS for which the encapsulation has to be setencapsulationType- the encapsulation type
-
getVpls
public VplsData getVpls(java.lang.String vplsName)
Description copied from interface:VplsRetrieves a VPLS.
-
removeInterfaces
public java.util.Collection<org.onosproject.net.intf.Interface> removeInterfaces(VplsData vplsData, java.util.Collection<org.onosproject.net.intf.Interface> interfaces)
Description copied from interface:VplsRemoves the interfaces specified from a VPLS.- Specified by:
removeInterfacesin interfaceVpls- Parameters:
vplsData- the VPLS from which the interfaces are to be removedinterfaces- the interfaces to remove- Returns:
- the interfaces removed
-
removeInterface
public org.onosproject.net.intf.Interface removeInterface(VplsData vplsData, org.onosproject.net.intf.Interface iface)
Description copied from interface:VplsRemoves the interface specified from a VPLS.- Specified by:
removeInterfacein interfaceVpls- Parameters:
vplsData- the VPLS from which the interface is to be removediface- the interface to remove- Returns:
- the interface removed
-
removeAllVpls
public void removeAllVpls()
Description copied from interface:VplsRemoves all VPLSs and cleans up the VPLS configuration.- Specified by:
removeAllVplsin interfaceVpls
-
getAllVpls
public java.util.Collection<VplsData> getAllVpls()
Description copied from interface:VplsGets all VPLSs.- Specified by:
getAllVplsin interfaceVpls- Returns:
- a collection of VPLSs
-
-