Class VplsConfig


  • public class VplsConfig
    extends Object
    Configuration of a VPLS.
    • Constructor Detail

      • VplsConfig

        public VplsConfig​(String name,
                          Set<String> ifaces,
                          org.onosproject.net.EncapsulationType encap)
        Creates a new VPLS configuration.
        Parameters:
        name - the VPLS name
        ifaces - the interfaces associated with the VPLS
        encap - the encapsulation type if set
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object