Class DistributedVplsStore

  • All Implemented Interfaces:
    org.onosproject.store.Store<VplsStoreEvent,​org.onosproject.store.StoreDelegate<VplsStoreEvent>>, VplsStore

    public class DistributedVplsStore
    extends org.onosproject.store.AbstractStore<VplsStoreEvent,​org.onosproject.store.StoreDelegate<VplsStoreEvent>>
    implements VplsStore
    Implementation of VPLSConfigurationService which reads VPLS configuration from the network configuration service.
    • Field Detail

      • coreService

        protected org.onosproject.core.CoreService coreService
      • storageService

        protected org.onosproject.store.service.StorageService storageService
      • networkConfigService

        protected org.onosproject.net.config.NetworkConfigService networkConfigService
    • Constructor Detail

      • DistributedVplsStore

        public DistributedVplsStore()
    • Method Detail

      • active

        protected void active()
      • deactive

        protected void deactive()
      • addVpls

        public void addVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Adds a VPLS to the configuration.
        Specified by:
        addVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to add
      • removeVpls

        public void removeVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Removes a VPLS from the configuration.
        Specified by:
        removeVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to remove
      • updateVpls

        public void updateVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Updates a VPLS.
        Specified by:
        updateVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to update
      • getVpls

        public VplsData getVpls​(String vplsName)
        Description copied from interface: VplsStore
        Gets a VPLS by name.
        Specified by:
        getVpls in interface VplsStore
        Parameters:
        vplsName - the VPLS name
        Returns:
        the VPLS instance if it exists; null otherwise
      • writeVplsToNetConfig

        public void writeVplsToNetConfig​(Collection<VplsData> vplsDataCollection)
        Writes all VPLS data to the network configuration store.
        Parameters:
        vplsDataCollection - the VPLSs data