lishuai
Committed by li shuai

[ONOS-3664] Update the bug: the ports command for restful can not get

external port.

Change-Id: Icad4ff9647f08f174f197b3dd2378ceef22cafe3
...@@ -23,6 +23,7 @@ import org.apache.karaf.shell.commands.Option; ...@@ -23,6 +23,7 @@ import org.apache.karaf.shell.commands.Option;
23 import org.onlab.packet.IpAddress; 23 import org.onlab.packet.IpAddress;
24 import org.onlab.packet.MacAddress; 24 import org.onlab.packet.MacAddress;
25 import org.onosproject.cli.AbstractShellCommand; 25 import org.onosproject.cli.AbstractShellCommand;
26 +import org.onosproject.net.DeviceId;
26 import org.onosproject.vtnrsc.BindingHostId; 27 import org.onosproject.vtnrsc.BindingHostId;
27 import org.onosproject.vtnrsc.DefaultVirtualPort; 28 import org.onosproject.vtnrsc.DefaultVirtualPort;
28 import org.onosproject.vtnrsc.FixedIp; 29 import org.onosproject.vtnrsc.FixedIp;
...@@ -86,7 +87,7 @@ public class VirtualPortExGwUpdateCommand extends AbstractShellCommand { ...@@ -86,7 +87,7 @@ public class VirtualPortExGwUpdateCommand extends AbstractShellCommand {
86 VirtualPort.State.DOWN, 87 VirtualPort.State.DOWN,
87 MacAddress.valueOf(macAddress), 88 MacAddress.valueOf(macAddress),
88 subnet.tenantId(), 89 subnet.tenantId(),
89 - null, 90 + DeviceId.deviceId(""),
90 Sets.newHashSet(fixedGwIp), 91 Sets.newHashSet(fixedGwIp),
91 BindingHostId.bindingHostId(""), 92 BindingHostId.bindingHostId(""),
92 Sets.newHashSet(), 93 Sets.newHashSet(),
......