Class VplsData


  • public final class VplsData
    extends java.lang.Object
    Class stores a VPLS information.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VplsData.VplsState
      States of a VPLS.
    • Method Detail

      • of

        public static VplsData of​(java.lang.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​(java.lang.String name,
                                  org.onosproject.net.EncapsulationType encapType)
        Creates a VPLS data by given name and encapsulation type.
        Parameters:
        name - the given name
        encapType - 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 java.lang.String name()
        Gets name of the VPLS.
        Returns:
        the name of the VPLS
      • interfaces

        public java.util.Set<org.onosproject.net.intf.Interface> interfaces()
      • encapsulationType

        public org.onosproject.net.EncapsulationType encapsulationType()
      • addInterfaces

        public void addInterfaces​(java.util.Collection<org.onosproject.net.intf.Interface> interfaces)
      • addInterface

        public void addInterface​(org.onosproject.net.intf.Interface iface)
      • removeInterfaces

        public void removeInterfaces​(java.util.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)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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