Package org.onosproject.vpls.config
Class VplsConfig
- java.lang.Object
-
- org.onosproject.vpls.config.VplsConfig
-
public class VplsConfig extends Object
Configuration of a VPLS.
-
-
Constructor Summary
Constructors Constructor Description VplsConfig(String name, Set<String> ifaces, org.onosproject.net.EncapsulationType encap)Creates a new VPLS configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.net.EncapsulationTypeencap()The encapsulation type.booleanequals(Object obj)inthashCode()Set<String>ifaces()The name of the interfaces associated with the VPLS.protected booleanisAttached(String iface)States if a given interface is part of a VPLS.Stringname()The name of the VPLS.
-
-
-
Method Detail
-
name
public String name()
The name of the VPLS.- Returns:
- the name of the VPLS
-
ifaces
public Set<String> ifaces()
The name of the interfaces associated with the VPLS.- Returns:
- a set of interface names associated with the VPLS
-
encap
public org.onosproject.net.EncapsulationType encap()
The encapsulation type.- Returns:
- the encapsulation type, if active; null otherwise
-
isAttached
protected boolean isAttached(String iface)
States if a given interface is part of a VPLS.- Parameters:
iface- the interface attached to a VPLS- Returns:
- true if the interface is associated to the VPLS; false otherwise
-
-