Class MacVrfEntryListener

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.EventListener, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<MacVrfEntry>, org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<MacVrfEntry>

    @Singleton
    public class MacVrfEntryListener
    extends org.opendaylight.serviceutils.tools.listener.AbstractAsyncDataTreeChangeListener<MacVrfEntry>
    When RT2 route (advertise of withdraw) is received from peer side. BGPManager will receive the RT2 msg. It will check if the EVPN is configured and Network is attached to EVPN or not. BGPManager will write in path (FibEntries.class).child(VrfTables.class).child(MacVrfEntry.class) which MacVrfEntryListener is listening to. When RT2 advertise route is received: add method of MacVrfEntryListener will install DMAC flows for the received dest MAC in all the DPN's (with this network footprint). When RT2 withdraw route is received: remove method of MacVrfEntryListener will remove DMAC flows for the received dest MAC in all the DPN's (with this network footprint).
    • Constructor Summary

      Constructors 
      Constructor Description
      MacVrfEntryListener​(org.opendaylight.mdsal.binding.api.DataBroker broker, EvpnMacVrfUtils evpnMacVrfUtils)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier, MacVrfEntry macVrfEntry)  
      void add​(T arg0)
      Deprecated.
      void addAfterListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)  
      void addBeforeListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)  
      void close()  
      protected org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()  
      protected org.opendaylight.serviceutils.tools.listener.DataStoreMetrics getDataStoreMetrics()  
      void init()  
      default void onDataTreeChanged​(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> arg0, org.opendaylight.serviceutils.tools.listener.DataStoreMetrics arg1)  
      void register()  
      void remove​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier, MacVrfEntry macVrfEntry)  
      void remove​(T arg0)
      Deprecated.
      void update​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier, MacVrfEntry macVrfEntry, MacVrfEntry t1)  
      void update​(T arg0, T arg1)
      Deprecated.
      • Methods inherited from class org.opendaylight.serviceutils.tools.listener.AbstractAsyncDataTreeChangeListener

        getExecutorService, onDataTreeChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener

        onInitialData
    • Constructor Detail

      • MacVrfEntryListener

        @Inject
        public MacVrfEntryListener​(org.opendaylight.mdsal.binding.api.DataBroker broker,
                                   EvpnMacVrfUtils evpnMacVrfUtils)
    • Method Detail

      • init

        public void init()
      • add

        public void add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier,
                        MacVrfEntry macVrfEntry)
      • update

        public void update​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier,
                           MacVrfEntry macVrfEntry,
                           MacVrfEntry t1)
      • remove

        public void remove​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MacVrfEntry> instanceIdentifier,
                           MacVrfEntry macVrfEntry)
      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • addBeforeListener

        public void addBeforeListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addBeforeListener in interface org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • addAfterListener

        public void addAfterListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addAfterListener in interface org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • register

        @PostConstruct
        public void register()
      • getDataBroker

        protected org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
      • getDataStoreMetrics

        protected org.opendaylight.serviceutils.tools.listener.DataStoreMetrics getDataStoreMetrics()
      • add

        @Deprecated
        public void add​(T arg0)
        Deprecated.
      • remove

        @Deprecated
        public void remove​(T arg0)
        Deprecated.
      • update

        @Deprecated
        public void update​(T arg0,
                           T arg1)
        Deprecated.
      • onDataTreeChanged

        public default void onDataTreeChanged​(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> arg0,
                                              org.opendaylight.serviceutils.tools.listener.DataStoreMetrics arg1)