Class VplsConfig


  • public class VplsConfig
    extends java.lang.Object
    Configuration 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.EncapsulationType encap()
      The encapsulation type.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.util.Set<java.lang.String> ifaces()
      The name of the interfaces associated with the VPLS.
      protected boolean isAttached​(java.lang.String iface)
      States if a given interface is part of a VPLS.
      java.lang.String name()
      The name of the VPLS.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 name
        ifaces - the interfaces associated with the VPLS
        encap - 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object