Package org.onosproject.vpls.api
Class VplsData
- java.lang.Object
-
- org.onosproject.vpls.api.VplsData
-
public final class VplsData extends Object
Class stores a VPLS information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVplsData.VplsStateStates of a VPLS.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterface(org.onosproject.net.intf.Interface iface)voidaddInterfaces(Collection<org.onosproject.net.intf.Interface> interfaces)org.onosproject.net.EncapsulationTypeencapsulationType()voidencapsulationType(org.onosproject.net.EncapsulationType encapType)booleanequals(Object obj)inthashCode()Set<org.onosproject.net.intf.Interface>interfaces()Stringname()Gets name of the VPLS.static VplsDataof(String name)Creates a VPLS data by given name.static VplsDataof(String name, org.onosproject.net.EncapsulationType encapType)Creates a VPLS data by given name and encapsulation type.static VplsDataof(VplsData vplsData)Creates a copy of VPLS data.voidremoveInterface(org.onosproject.net.intf.Interface iface)voidremoveInterfaces(Collection<org.onosproject.net.intf.Interface> interfaces)VplsData.VplsStatestate()voidstate(VplsData.VplsState state)StringtoString()
-
-
-
Method Detail
-
of
public static VplsData of(String name)
Creates a VPLS data by given name. The encapsulation type of the VPLS will be NONE.- Parameters:
name- the given name- Returns:
- the VPLS data
-
of
public static VplsData of(String name, org.onosproject.net.EncapsulationType encapType)
Creates a VPLS data by given name and encapsulation type.- Parameters:
name- the given nameencapType- the encapsulation type- Returns:
- the VPLS data
-
of
public static VplsData of(VplsData vplsData)
Creates a copy of VPLS data.- Parameters:
vplsData- the VPLS data- Returns:
- the copy of the VPLS data
-
name
public String name()
Gets name of the VPLS.- Returns:
- the name of the VPLS
-
interfaces
public Set<org.onosproject.net.intf.Interface> interfaces()
-
encapsulationType
public org.onosproject.net.EncapsulationType encapsulationType()
-
addInterfaces
public void addInterfaces(Collection<org.onosproject.net.intf.Interface> interfaces)
-
addInterface
public void addInterface(org.onosproject.net.intf.Interface iface)
-
removeInterfaces
public void removeInterfaces(Collection<org.onosproject.net.intf.Interface> interfaces)
-
removeInterface
public void removeInterface(org.onosproject.net.intf.Interface iface)
-
encapsulationType
public void encapsulationType(org.onosproject.net.EncapsulationType encapType)
-
state
public VplsData.VplsState state()
-
state
public void state(VplsData.VplsState state)
-
-