Class VplsData


  • public final class VplsData
    extends Object
    Class stores a VPLS information.
    • Method Detail

      • of

        public static VplsData of​(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​(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 String name()
        Gets name of the VPLS.
        Returns:
        the name of the VPLS
      • interfaces

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

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

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

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

        public void removeInterfaces​(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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object