use of org.openkilda.messaging.info.event.PortChangeType in project open-kilda by telstra.
the class IPortImpl method makePorChangetMessage.
public InfoMessage makePorChangetMessage() throws IOException {
PortChangeType type = isActive ? PortChangeType.UP : PortChangeType.DOWN;
PortInfoData data = new PortInfoData(sw.getDpid().toString(), number, type);
return new InfoMessage(data, Instant.now().toEpochMilli(), UUID.randomUUID().toString(), null);
}
Aggregations