use of org.onosproject.incubator.net.tunnel.TunnelProvider in project onos by opennetworkinglab.
the class TunnelManager method updateTunnel.
@Override
public void updateTunnel(Tunnel tunnel, Path path) {
store.createOrUpdateTunnel(tunnel);
if (tunnel.providerId() != null) {
TunnelProvider provider = getProvider(tunnel.providerId());
if (provider != null) {
provider.updateTunnel(tunnel, path);
}
} else {
Set<ProviderId> ids = getProviders();
for (ProviderId providerId : ids) {
TunnelProvider provider = getProvider(providerId);
provider.updateTunnel(tunnel, path);
}
}
}
Aggregations