}
lock.writeLock().lock();
try {
ImmutablePort port =
ImmutablePort.fromOFPhysicalPort(ps.getDesc());
OFPortReason reason = OFPortReason.fromReasonCode(ps.getReason());
if (reason == null) {
throw new IllegalArgumentException("Unknown PortStatus " +
"reason code " + ps.getReason());
}