jiangrui
Committed by Gerrit Code Review

ONOS-3481 Fix bug of setting tunnel dst ip.

Change-Id: I979587077d35b72bf54b1b8794f34eb214fc0ff3
...@@ -68,10 +68,10 @@ public class OvsdbTunnelConfig extends AbstractHandlerBehaviour ...@@ -68,10 +68,10 @@ public class OvsdbTunnelConfig extends AbstractHandlerBehaviour
68 public boolean createTunnelInterface(BridgeName bridgeName, TunnelDescription tunnel) { 68 public boolean createTunnelInterface(BridgeName bridgeName, TunnelDescription tunnel) {
69 Map<String, String> options = ((DefaultAnnotations) tunnel.annotations()).asMap(); 69 Map<String, String> options = ((DefaultAnnotations) tunnel.annotations()).asMap();
70 if (tunnel.src() != null) { 70 if (tunnel.src() != null) {
71 - options.put(OPTION_LOCAL_IP, tunnel.src().toString()); 71 + options.put(OPTION_LOCAL_IP, ((IpTunnelEndPoint) tunnel.src()).ip().toString());
72 } 72 }
73 if (tunnel.dst() != null) { 73 if (tunnel.dst() != null) {
74 - options.put(OPTION_REMOTE_IP, tunnel.dst().toString()); 74 + options.put(OPTION_REMOTE_IP, ((IpTunnelEndPoint) tunnel.dst()).ip().toString());
75 } 75 }
76 76
77 DriverHandler handler = handler(); 77 DriverHandler handler = handler();
......