jiangrui
Committed by Gerrit Code Review

ONOS-3236 Ovsdb host's vlanid is null,it should be the default value -1.

Change-Id: Ibf1739df674d7a8ecea27496fac870dcc384b3e2
...@@ -111,7 +111,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider ...@@ -111,7 +111,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider
111 } 111 }
112 switch (event.type()) { 112 switch (event.type()) {
113 case PORT_ADDED: 113 case PORT_ADDED:
114 - HostId hostId = HostId.hostId(subject.hwAddress(), null); 114 + HostId hostId = HostId.hostId(subject.hwAddress(), VlanId.vlanId());
115 DeviceId deviceId = DeviceId.deviceId(uri(subject.dpid().value())); 115 DeviceId deviceId = DeviceId.deviceId(uri(subject.dpid().value()));
116 PortNumber portNumber = PortNumber.portNumber(subject 116 PortNumber portNumber = PortNumber.portNumber(subject
117 .portNumber().value(), subject.portName().value()); 117 .portNumber().value(), subject.portName().value());
...@@ -127,7 +127,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider ...@@ -127,7 +127,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider
127 providerService.hostDetected(hostId, hostDescription); 127 providerService.hostDetected(hostId, hostDescription);
128 break; 128 break;
129 case PORT_REMOVED: 129 case PORT_REMOVED:
130 - HostId host = HostId.hostId(subject.hwAddress(), null); 130 + HostId host = HostId.hostId(subject.hwAddress(), VlanId.vlanId());
131 providerService.hostVanished(host); 131 providerService.hostVanished(host);
132 break; 132 break;
133 default: 133 default:
......