Package org.onosproject.vpls.config
Class VplsConfig
- java.lang.Object
-
- org.onosproject.vpls.config.VplsConfig
-
public class VplsConfig extends java.lang.ObjectConfiguration of a VPLS.
-
-
Constructor Summary
Constructors Constructor Description VplsConfig(java.lang.String name, java.util.Set<java.lang.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(java.lang.Object obj)inthashCode()java.util.Set<java.lang.String>ifaces()The name of the interfaces associated with the VPLS.protected booleanisAttached(java.lang.String iface)States if a given interface is part of a VPLS.java.lang.Stringname()The name of the VPLS.
-
-
-
Constructor Detail
-
VplsConfig
public VplsConfig(java.lang.String name, java.util.Set<java.lang.String> ifaces, org.onosproject.net.EncapsulationType encap)Creates a new VPLS configuration.- Parameters:
name- the VPLS nameifaces- the interfaces associated with the VPLSencap- the encapsulation type if set
-
-
Method Detail
-
name
public java.lang.String name()
The name of the VPLS.- Returns:
- the name of the VPLS
-
ifaces
public java.util.Set<java.lang.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(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-