commit | 42782b52541247e585837d0f41578116dd866809 | [log] [tgz] |
---|---|---|
author | chengfan <chengfannature@gmail.com> | Fri Dec 30 15:03:55 2016 +0800 |
committer | Jonathan Hart <jono@onlab.us> | Wed Jan 11 18:01:59 2017 +0000 |
tree | da9b8d1a22bbf03d3fc1d1715d0bfcf076263edb | |
parent | 8dbbea8a16cd4b5a2b9a2f4edd8d27fe98a6cff7 [diff] |
fixbug: should use the new/update tunnel to setup tunnel use the old tunnel will miss the tunnel id property use queryTunnel to get the new tunnel to setup tunnel in provider Change-Id: I357646b2e2f49cc74c9d7c7cb1646a8c9249302f
diff --git a/incubator/net/src/main/java/org/onosproject/incubator/net/tunnel/impl/TunnelManager.java b/incubator/net/src/main/java/org/onosproject/incubator/net/tunnel/impl/TunnelManager.java index 281f1e8..a9582ab 100644 --- a/incubator/net/src/main/java/org/onosproject/incubator/net/tunnel/impl/TunnelManager.java +++ b/incubator/net/src/main/java/org/onosproject/incubator/net/tunnel/impl/TunnelManager.java
@@ -247,9 +247,10 @@ TunnelId tunnelId = store.createOrUpdateTunnel(tunnel, State.INIT); if (tunnelId != null) { Set<ProviderId> ids = getProviders(); + Tunnel newT = queryTunnel(tunnelId); for (ProviderId providerId : ids) { TunnelProvider provider = getProvider(providerId); - provider.setupTunnel(srcElementId, tunnel, path); + provider.setupTunnel(srcElementId, newT, path); } } return tunnelId;