Class BgpDeployerImpl
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Bgp>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>
,PeerGroupConfigLoader
public final class BgpDeployerImpl extends Object implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Bgp>, PeerGroupConfigLoader, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BgpDeployerImpl(String networkInstanceName, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider provider, org.osgi.service.blueprint.container.BlueprintContainer container, org.osgi.framework.BundleContext bundleContext, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, BGPTableTypeRegistryConsumer mappingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PeerGroup
getPeerGroup(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, String peerGroupName)
Loads Peer GROUP configuration from CONFIG DS.void
init()
void
onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<Bgp>> changes)
-
-
-
Constructor Detail
-
BgpDeployerImpl
public BgpDeployerImpl(String networkInstanceName, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider provider, org.osgi.service.blueprint.container.BlueprintContainer container, org.osgi.framework.BundleContext bundleContext, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, BGPTableTypeRegistryConsumer mappingService)
-
-
Method Detail
-
init
public void init()
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<Bgp>> changes)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getPeerGroup
public PeerGroup getPeerGroup(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, String peerGroupName)
Description copied from interface:PeerGroupConfigLoader
Loads Peer GROUP configuration from CONFIG DS.- Specified by:
getPeerGroup
in interfacePeerGroupConfigLoader
- Parameters:
bgpIid
- Protocol BGP Instance identifier.peerGroupName
- peer Group name.- Returns:
- peer group or null.
-
-