Java Code Examples for org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology#getTopologyId()
The following examples show how to use
org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology#getTopologyId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TunnelProviderDeployer.java From bgpcep with Eclipse Public License 1.0 | 6 votes |
private synchronized void createTunnelTopologyProvider(final Topology topology) { if (!filterPcepTopologies(topology.getTopologyTypes())) { return; } final TopologyId topologyId = topology.getTopologyId(); if (this.pcepTunnelServices.containsKey(topology.getTopologyId())) { LOG.warn("Tunnel Topology {} already exist. New instance won't be created", topologyId); return; } LOG.debug("Create Tunnel Topology {}", topologyId); final PcepTunnelTopologyConfig config = topology.augmentation(PcepTunnelTopologyConfig.class); final String pcepTopoID = StringUtils .substringBetween(config.getPcepTopologyReference().getValue(), "=\"", "\""); final InstanceIdentifier<Topology> pcepTopoRef = InstanceIdentifier.builder(NetworkTopology.class) .child(Topology.class, new TopologyKey(new TopologyId(pcepTopoID))).build(); final PCEPTunnelClusterSingletonService tunnelTopoCss = new PCEPTunnelClusterSingletonService(this.dependencies, pcepTopoRef, topologyId); this.pcepTunnelServices.put(topology.getTopologyId(), tunnelTopoCss); }
Example 2
Source File: PCEPTopologyDeployerImpl.java From bgpcep with Eclipse Public License 1.0 | 6 votes |
private synchronized void createTopologyProvider(final Topology topology) { if (!filterPcepTopologies(topology.getTopologyTypes())) { return; } final TopologyId topologyId = topology.getTopologyId(); if (this.pcepTopologyServices.containsKey(topology.getTopologyId())) { LOG.warn("Topology Provider {} already exist. New instance won't be created", topologyId); return; } LOG.info("Creating Topology {}", topologyId); LOG.trace("Topology {}.", topology); final SessionConfig config = topology.augmentation(PcepTopologyTypeConfig.class).getSessionConfig(); final InstructionScheduler instructionScheduler = this.instructionSchedulerFactory .createInstructionScheduler(topologyId.getValue()); final PCEPTopologyConfiguration dependencies = new PCEPTopologyConfiguration(config, topology); final PCEPTopologyProviderBean pcepTopologyProviderBean = (PCEPTopologyProviderBean) this.container .getComponentInstance(PCEPTopologyProviderBean.class.getSimpleName()); this.pcepTopologyServices.put(topologyId, pcepTopologyProviderBean); pcepTopologyProviderBean.start(dependencies, instructionScheduler); }
Example 3
Source File: TunnelProviderDeployer.java From bgpcep with Eclipse Public License 1.0 | 5 votes |
private synchronized void updateTunnelTopologyProvider(final Topology topology) { if (!filterPcepTopologies(topology.getTopologyTypes())) { return; } final TopologyId topologyId = topology.getTopologyId(); final PCEPTunnelClusterSingletonService previous = this.pcepTunnelServices.remove(topology.getTopologyId()); closeTopology(previous, topologyId); createTunnelTopologyProvider(topology); }
Example 4
Source File: TunnelProviderDeployer.java From bgpcep with Eclipse Public License 1.0 | 5 votes |
private synchronized void removeTunnelTopologyProvider(final Topology topo) { if (!filterPcepTopologies(topo.getTopologyTypes())) { return; } final TopologyId topologyId = topo.getTopologyId(); final PCEPTunnelClusterSingletonService topology = this.pcepTunnelServices.remove(topologyId); closeTopology(topology, topologyId); }
Example 5
Source File: PCEPTopologyDeployerImpl.java From bgpcep with Eclipse Public License 1.0 | 5 votes |
private synchronized void updateTopologyProvider(final Topology topology) { if (!filterPcepTopologies(topology.getTopologyTypes())) { return; } final TopologyId topologyId = topology.getTopologyId(); LOG.info("Updating Topology {}", topologyId); final PCEPTopologyProviderBean previous = this.pcepTopologyServices.remove(topology.getTopologyId()); closeTopology(previous, topologyId); createTopologyProvider(topology); }
Example 6
Source File: PCEPTopologyDeployerImpl.java From bgpcep with Eclipse Public License 1.0 | 5 votes |
private synchronized void removeTopologyProvider(final Topology topology) { if (!filterPcepTopologies(topology.getTopologyTypes())) { return; } final TopologyId topologyId = topology.getTopologyId(); closeTopology(this.pcepTopologyServices.remove(topologyId), topologyId); }