public final class LinkUpdateContext extends Object
LinkUpdateContext describes runtime information for updating
inter-switch links in the MD-SAL datastore.
Note that this class is not synchronized.
| Modifier and Type | Field and Description |
|---|---|
static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey |
OF_TOPOLOGY_KEY
A MD-SAL topology key which specifies the network topology for
OpenFlow network.
|
| Constructor and Description |
|---|
LinkUpdateContext(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx,
InventoryReader reader)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VtnLink |
addVtnLink(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkId lid,
SalPort src,
SalPort dst)
Add the given inter-switch link information detected by topology-manager
into the VTN inventory data.
|
void |
recordLogs(org.slf4j.Logger log)
Record logs for updated links.
|
void |
resolveIgnoredLinks()
Try to resolve ignored inter-switch links.
|
VtnPort |
restoreVtnLinks(SalPort sport,
VtnPort vport)
Restore inter-switch links on the given switch port from the MD-SAL
network topology.
|
void |
updateStaticTopology(SalPort sport,
VtnPort vport)
Update static network topology configured to the given switch port.
|
public static final org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey OF_TOPOLOGY_KEY
public LinkUpdateContext(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx,
InventoryReader reader)
tx - A ReadWriteTransaction instance.reader - A InventoryReader instance.public VtnLink addVtnLink(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkId lid, SalPort src, SalPort dst) throws VTNException
lid - The identifier of the created link.src - A SalPort instance corresponding to the source
of the created link.dst - A SalPort instance corresponding to the
destination of the created link.VtnLink instance if the given link was added.
null if not added.VTNException - An error occurred.public void resolveIgnoredLinks()
throws VTNException
VTNException - An error occurred.public void updateStaticTopology(SalPort sport, VtnPort vport) throws VTNException
Note that this method never resolves ignored links even if one or more static links are removed.
sport - A SalPort instance which specifies the target
port.vport - A VtnPort associated with sport.VTNException - An error occurred.public VtnPort restoreVtnLinks(SalPort sport, VtnPort vport) throws VTNException
The caller must guarantee that all the following conditions are met.
VtnPort.
sport - A SalPort instance which indicates the target
switch port.vport - A VtnPort associated with sport.VtnPort instance which contains the latest
information about the port specified by sport.VTNException - An error occurred.public void recordLogs(org.slf4j.Logger log)
log - A Logger instance.Copyright © 2018 OpenDaylight. All rights reserved.