diff options
Diffstat (limited to 'framework/src/onos/providers/ovsdb')
-rw-r--r-- | framework/src/onos/providers/ovsdb/host/src/main/java/org/onosproject/ovsdb/provider/host/OvsdbHostProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/onos/providers/ovsdb/host/src/main/java/org/onosproject/ovsdb/provider/host/OvsdbHostProvider.java b/framework/src/onos/providers/ovsdb/host/src/main/java/org/onosproject/ovsdb/provider/host/OvsdbHostProvider.java index 0e3e1564..031fda78 100644 --- a/framework/src/onos/providers/ovsdb/host/src/main/java/org/onosproject/ovsdb/provider/host/OvsdbHostProvider.java +++ b/framework/src/onos/providers/ovsdb/host/src/main/java/org/onosproject/ovsdb/provider/host/OvsdbHostProvider.java @@ -111,7 +111,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider } switch (event.type()) { case PORT_ADDED: - HostId hostId = HostId.hostId(subject.hwAddress(), null); + HostId hostId = HostId.hostId(subject.hwAddress(), VlanId.vlanId()); DeviceId deviceId = DeviceId.deviceId(uri(subject.dpid().value())); PortNumber portNumber = PortNumber.portNumber(subject .portNumber().value(), subject.portName().value()); @@ -127,7 +127,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider providerService.hostDetected(hostId, hostDescription); break; case PORT_REMOVED: - HostId host = HostId.hostId(subject.hwAddress(), null); + HostId host = HostId.hostId(subject.hwAddress(), VlanId.vlanId()); providerService.hostVanished(host); break; default: |